mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
Feat(Contacts): Add contacts
This commit is contained in:
1 parent
5ae9f99f42
commit
328ab9b0d0
5 files changed
+88
-11
No files matched your search
@@ -0,0 +1,21 @@
|
||||
ESX = nil
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
while ESX == nil do
|
||||
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
|
||||
Citizen.Wait(0)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent('phone:sendContacts')
|
||||
AddEventHandler('phone:sendContacts', function()
|
||||
ESX.TriggerServerCallback('phone:getContacts', function(contacts)
|
||||
SendNUIMessage(
|
||||
{
|
||||
app = 'BANK',
|
||||
method = 'setContacts',
|
||||
data = contacts
|
||||
}
|
||||
)
|
||||
end)
|
||||
end)
|
||||
Reference in new issue
Block a user