Exports

Lua code examples for Client Side

local phoneIsUseNow = exports["sfphone"]:phoneIsUseNow()
print(phoneIsUseNow) -- return true or false
local mycgroup = exports["sfphone"]:cgroupPlayer()
if mycgroup > 0 then
    print("Your id group is "..mycgroup)
else
    print("You havent a group")
end

Use 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 app
local id_group = 5 -- for e.g
exports["sfphone"]:removeCgroup(id_group) -- remove a group in cGroups app

If 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

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