🔧 Misc
AirplaneModeEnabled
StreamerModeEnabled
UpdateStreamerMode
ToggleFlashlight
GetFlashlightState
SendAppMessage
ToggleLandscape
IsAppInstalled
Check if an app is installed on the current phone. You can refer to config/config.json for the app keys.
GetCurrentAppId
Returns the ID of the currently opened app, or checks if a specific app is open.
Without arguments: Returns the current app ID (e.g. 'messages', 'home', 'banking', or custom app key). Returns nil when the phone is closed.
With appId argument: Returns true if that app is currently open, false otherwise.
Modify Nui focus input
Useful when working on custom apps and dealing with input fields. By default, when an input field is focused in a custom app embedded in the phone, game keybinds (like WASD movement) will still trigger. Use this export to block game input while the user is typing.
Example of how to trigger the NUI callback from the UI of your custom app.
Add the NUI callback to the client side of your custom app resource. This is necessary to allow the phone resource to control the focus of the input field.