mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Feat(client): Adding contacts | simple stuff
This commit is contained in:
1 parent
39e6c5be2c
commit
2335d2e6df
2 files changed
+10
-5
No files matched your search
@@ -19,3 +19,10 @@ AddEventHandler('phone:sendContacts', function()
|
|||||||
)
|
)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
RegisterNUICallback('contacts:add', function(data)
|
||||||
|
local display = data.name
|
||||||
|
local number = data.number
|
||||||
|
TriggerServerEvent('phone:addContacts', display, number)
|
||||||
|
TriggerEvent('phone:sendContacts')
|
||||||
|
end)
|
||||||
@@ -8,15 +8,13 @@ Citizen.CreateThread(function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
RegisterCommand('phone:close', function(source, args, rawCommand)
|
RegisterCommand('phone:close', function(source, args, rawCommand)
|
||||||
SendNUIMessage( -- Hides phone
|
SendNUIMessage({
|
||||||
{
|
|
||||||
app = 'PHONE',
|
app = 'PHONE',
|
||||||
method = 'setVisibility',
|
method = 'setVisibility',
|
||||||
data = false
|
data = false
|
||||||
}
|
})
|
||||||
)
|
|
||||||
SetNuiFocus(false, false)
|
SetNuiFocus(false, false)
|
||||||
end)
|
end, false)
|
||||||
-----
|
-----
|
||||||
--END OF ESX
|
--END OF ESX
|
||||||
-----
|
-----
|
||||||
|
|||||||
Reference in new issue
Block a user