mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
Feat(Dail): Getting source and identifier from phoneNumber
This commit is contained in:
1 parent
4fde35eb32
commit
d8ee5af1a0
2 files changed
+59
No files matched your search
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user