🔧 Misc
Get the contacts list of a player's phone
lua-- @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 status exports.yseries:ToggleDisabled(sourceId, disabled)
Example:
lua-- Disable phone for player (e.g., when handcuffed) exports.yseries:ToggleDisabled(source, true) -- Enable phone for player exports.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 found exports.yseries:IsDisabled(sourceId)
Example:
lua-- Check if player's phone is disabled local isDisabled = exports.yseries:IsDisabled(source) if isDisabled then print("Player's phone is disabled") end