CritteRo / scalePhone

GTAPhone for FiveM, using scaleforms.
20 stars 7 forks source link

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

Open CritteRo opened 3 years ago

CritteRo commented 3 years ago

https://github.com/CritteRo/scalePhone/blob/319a31ae0dac7163e07e18594da0b27af9d6bdfd/client/cl_phone_events.lua#L3-L8

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 commented 3 years ago

Workaround in e427a9b.