Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

force opening an app won't work without opening the phone at least once. #4

Open
CritteRo opened this issue Aug 23, 2021 · 1 comment
Assignees
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@CritteRo
Copy link
Owner

AddEventHandler('scalePhone.OpenApp', function(appID, isForced)
if isPhoneActive or isForced ~= nil then
if isForced == true and isPhoneActive == false then
ExecuteCommand('phone')
Citizen.Wait(1)
end

This most likely happens because I'm not waiting enough (or not waiting for the correct thing) on the isForced check to load the phone scaleform.

One idea would be to not use the /phone command, and instead, generate and set the phone directly.

@CritteRo CritteRo added the bug Something isn't working label Aug 23, 2021
@CritteRo CritteRo self-assigned this Aug 23, 2021
@CritteRo
Copy link
Owner Author

Workaround in e427a9b.

@CritteRo CritteRo added the wontfix This will not be worked on label Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant