-- @param imei - The IMEI of the phone.exports.yseries:GetContacts(imei)
Set phone disabled state for a player
Sets the phone disabled state bag for a player.
lua
-- @param sourceId number Player source ID-- @param disabled boolean Whether the phone should be disabled-- @return boolean Success statusexports.yseries:ToggleDisabled(sourceId, disabled)
Example:
lua
-- Disable phone for player (e.g., when handcuffed)exports.yseries:ToggleDisabled(source, true)-- Enable phone for playerexports.yseries:ToggleDisabled(source, false)
Get phone disabled state for a player
Gets the current phone disabled state for a player from the state bag.
lua
-- @param sourceId number Player source ID-- @return boolean|nil Disabled state or nil if player not foundexports.yseries:IsDisabled(sourceId)
Example:
lua
-- Check if player's phone is disabledlocal isDisabled = exports.yseries:IsDisabled(source)if isDisabled then print("Player's phone is disabled")end