SERVER EXPORTS
Generate Phone Number
Generates a new, unique, random phone number formatted according to the server's configuration.
local newNumber = exports["17mov_Phone"]:GeneratePhoneNumber()Returns:
string: The generated phone number.
Get Identifier From Number
Retrieves the player identifier (license) associated with a specific phone number. This function works even if the player is offline, as it checks the database.
local identifier = exports["17mov_Phone"]:GetIdentifierFromNumber(number)Returns:
string: The identifier assigned to the given phone number.
number
number | string
โ
A target phone number
Get Number From Player
Retrieves the phone number currently active on a player's device using their Server ID (Source).
local phoneNumber = exports["17mov_Phone"]:GetNumberFromPlayer(src)Returns:
string: The active phone number of the player.
src
number
โ
The player's server ID (source).
Get Player Source From Number
Retrieves the Server ID (Source) of an online player currently using the specified phone number.
local src = exports["17mov_Phone"]:GetPlayerSrcFromActiveNumber(number)Returns:
number|nil: The player's server ID if they are online and using the number, otherwisenil.
number
number | string
โ
A target phone number
Set Phone Block State
Blocks or unblocks a player from using their phone. When blocked, the player cannot open the phone interface. This is useful for situations like being handcuffed, unconscious, or in a restricted zone.
exports["17mov_Phone"]:SetPlayerPhoneBlockState(src, state)src
number
โ
The player's server ID (source).
state
boolean
โ
true to block the phone, false to unblock.
Last updated