CLIENT EXPORTS

Open Phone

Opens the phone interface for the local player.

exports["17mov_Phone"]:OpenPhone()

Close Phone

Closes the phone interface for the local player.

exports["17mov_Phone"]:ClosePhone()

Set Phone Block State

Blocks or unblocks the local player from using their phone. When blocked, the player cannot open the phone interface.

exports["17mov_Phone"]:SetPlayerPhoneBlockState(state)
Argument
Type
Optional
Explanation

state

boolean

โŒ

true to block the phone, false to unblock.

Has Phone Item

Checks if the player currently has the required phone item in their inventory.

local hasPhone = exports["17mov_Phone"]:HasPhoneItem()

Returns:

  • boolean: true if the player has the phone item, false otherwise.

Is Phone Open

Checks if the phone interface is currently visible (open) for the player.

Returns:

  • boolean: true if the phone is open.

Create Notification

Sends a custom notification to the player's phone. Supports locale keys and dynamic replacements.

Notification Structure

Toggle Flashlight

Toggles the phone's flashlight mode.

Argument
Type
Optional
Explanation

state

boolean

โŒ

true to turn on, false to turn off.

Get Flashlight State

Checks if the flashlight is currently active.

Returns:

  • boolean: true if the flashlight is on.

Set Streamer Mode State

Toggles the Streamer Mode setting. Streamer Mode hides sensitive information (like phone numbers or explicit images) from the UI.

Argument
Type
Optional
Explanation

state

boolean

โŒ

true to enable Streamer Mode.

Get Streamer Mode State

Checks whether Streamer Mode is currently enabled.

Returns:

  • boolean: true if enabled.

Open App

Opens a specific application on the phone programmatically.

Argument
Type
Optional
Explanation

appName

string

โŒ

The internal name of the app (e.g., "messages", "camera").

Close App

Closes a currently open application on the phone.

Argument
Type
Optional
Explanation

appName

string

โŒ

The internal name of the app to close.

GetSignalTowers

Returns a table with all Signal Towers from config

Returns:

  • {coords: vector3, radius: number}[]

GetSignalLevelForCoords

Returns a 0-4 value that represent signal strenght for given coordinates

Argument
Type
Optional
Explanation

coords

vector3

โŒ

Coords to check signal

Returns:

  • number (0-4)

GetPlayerSignalLevel

Returns a current player signal strenght

Returns:

  • number (0-4)

Last updated