|
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.
scalePhone/client/cl_phone_events.lua
Lines 3 to 8 in 319a31a
This most likely happens because I'm not waiting enough (or not waiting for the correct thing) on the
isForcedcheck to load the phone scaleform.One idea would be to not use the
/phonecommand, and instead, generate and set the phone directly.