mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 06:28:51 +00:00
21 lines
503 B
Lua
21 lines
503 B
Lua
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) |