mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +00:00
18 lines
362 B
Lua
18 lines
362 B
Lua
ESX = nil
|
|
|
|
Citizen.CreateThread(function()
|
|
while ESX == nil do
|
|
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
|
|
Citizen.Wait(0)
|
|
end
|
|
end)
|
|
|
|
RegisterNUICallback('phone:startCall', function(data)
|
|
print('Calling ' .. data.number)
|
|
local phoneNumber = data.number
|
|
TriggerServerEvent('phone:initalizeCall', phoneNumber)
|
|
end)
|
|
|
|
|
|
|