πŸ”§Misc

AirplaneModeEnabled

---@return boolean
exports.yseries:AirplaneModeEnabled()

StreamerModeEnabled

---@return boolean
exports.yseries:StreamerModeEnabled()

UpdateStreamerMode

---@param enabled boolean on/off the phone's steamer mode
---@param updateUI boolean whether to send an update to the UI to update the settings
exports.yseries:UpdateStreamerMode(enabled, updateUI)

ToggleFlashlight

---@param enabled boolean on/off the phone's flashlight
exports.yseries:ToggleFlashlight(enabled)

GetFlashlightState

---@return boolean
exports.yseries: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.

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.

Last updated