Data sharing

Client side

You can use it if you want to pull data to other scripts.

You can get data with callbacks at the bottom.

ESX.TriggerServerCallback
QBCore.Functions.TriggerCallback
Triggers
Required Values
return

s4-burnerphone:getDarkchat

none

Returns all darkchat

s4-burnerphone:getNumberFromUsername

[username=string]

Returns username from number

s4-burnerphone:getGallery

none

Returns Gallery list

s4-burnerphone:getContact

none

Returns Contact list

s4-burnerphone:checkNumber

[number=number]

Checks is number exist a illegal phone user

s4-burnerphone:GetAllChat

none

Returns All Messages - also have chat_id's

s4-burnerphone:LoadChatFromId

[chat_id=number]

Retuns Chat Messages from chat_id

Example using;

Framework.TriggerServerCallback("s4-burnerphone:getGallery", function(galleryData)  
     -- galleryData
end)

Last updated