Skip to content

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

@CritteRo

Description

@CritteRo

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwontfixThis will not be worked on

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions