mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
updated lua files for PR feedback
This commit is contained in:
1 parent
1e8758fb01
commit
7eedec2229
3 files changed
+26
-37
No files matched your search
@@ -149,6 +149,18 @@ function noPhone()
|
||||
ESX.ShowNotification('Oi Mate, No El Telephono')
|
||||
end
|
||||
|
||||
function sendPhoneConfig()
|
||||
ESX.TriggerServerCallback('phone:phoneConfig', function(config)
|
||||
SendNUIMessage(
|
||||
{
|
||||
app = "PHONE",
|
||||
method = "phoneConfig",
|
||||
data = config
|
||||
}
|
||||
)
|
||||
end)
|
||||
end
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
while true do
|
||||
Citizen.Wait(0)
|
||||
@@ -158,17 +170,6 @@ Citizen.CreateThread(function()
|
||||
end
|
||||
end)
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
ESX.TriggerServerCallback('phone:phoneConfig', function(config)
|
||||
SendNUIMessage(
|
||||
{
|
||||
app = "PHONE",
|
||||
method = "phoneConfig",
|
||||
data = config
|
||||
}
|
||||
)
|
||||
end, searchValue)
|
||||
end)
|
||||
|
||||
function Phone() --Open/close phone
|
||||
if Config.PhoneAsItem == true then
|
||||
@@ -190,6 +191,7 @@ function Phone() --Open/close phone
|
||||
data = true
|
||||
}
|
||||
)
|
||||
sendPhoneConfig()
|
||||
SetNuiFocus(true, true)
|
||||
else
|
||||
isPhoneOpen = false
|
||||
@@ -225,6 +227,7 @@ function Phone() --Open/close phone
|
||||
data = true
|
||||
}
|
||||
)
|
||||
sendPhoneConfig()
|
||||
SetNuiFocus(true, true)
|
||||
else
|
||||
isPhoneOpen = false
|
||||
|
||||
Reference in new issue
Block a user