Skip to content

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.

lua
ESX.TriggerServerCallback
QBCore.Functions.TriggerCallback
TriggersRequired Valuesreturn
s4-burnerphone:getDarkchatnoneReturns all darkchat
s4-burnerphone:getNumberFromUsername[username=string]Returns username from number
s4-burnerphone:getGallerynoneReturns Gallery list
s4-burnerphone:getContactnoneReturns Contact list
s4-burnerphone:checkNumber[number=number]Checks is number exist a illegal phone user
s4-burnerphone:GetAllChatnoneReturns All Messages - also have chat_id's
s4-burnerphone:LoadChatFromId[chat_id=number]Retuns Chat Messages from chat_id

Example using;

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