Client side
π§Ώ General
ToggleOpen
IsOpen
IsDisabled
ToggleDisabled
Custom apps
These exports run on the client. See Custom apps for registration fields, a complete setup example, UI messaging and keypad controls.
AddCustomApp
Register or replace an app by key. Replacing an app also unhides it. Apps registered through this export are removed when the calling resource stops.
RemoveCustomApp
Unregister an app. Returns false if the key does not exist.
HideCustomApp
Hide the launcher icon. Eligible players can still use OpenCustomApp. Register the app again to unhide it.
OpenCustomApp
Select a registered app. Returns false if the app is unknown or the player fails its job/admin rules. Use ToggleOpen(true) separately if you also need to show the phone.
SendAppMessage
Send a payload to the app iframe through window.postMessage. Returns false if the app is unknown, unavailable to the player, or the payload is not a table. Messages queue until the iframe is ready; true confirms acceptance, not delivery.
ReevaluateCustomAppsForJob
Reapply job restrictions and asynchronously refresh admin status. QBox, QBCore and ESX job updates already trigger reevaluation automatically.
CloseApp
Return from the current app to the home screen.
GetDataLoaded
Read whether the phone's player data has loaded.