Exports
Lua code examples for Client Side
local phoneIsUseNow = exports["sfphone"]:phoneIsUseNow()
print(phoneIsUseNow) -- return true or falselocal mycgroup = exports["sfphone"]:cgroupPlayer()
if mycgroup > 0 then
print("Your id group is "..mycgroup)
else
print("You havent a group")
endUse if the phone stops working
TriggerEvent("nuifix") -- if the NUI breaks.Lua code examples for Server Side
local src = source
exports["sfphone"]:createCgroup(src) -- creates a group in cGroups applocal id_group = 5 -- for e.g
exports["sfphone"]:removeCgroup(id_group) -- remove a group in cGroups appIf you want to block the SIM card and make a duplicate
If you want to install apps on your phone with an external script
Example of sending SMS for players from other your scripts
As an administrator, you can create a sim card with any number you want
If you do not have permission this function will not work
Example of sending SMS for group players from application cGroups
Example of sending SMS for online players
Example of retrieving a player's current phone number
Custom notification for player
Last updated