updated lua files for PR feedback

This commit is contained in:
erik-sn committed 2020-10-03 23:20:19 -04:00
1 parent 1e8758fb01
commit 7eedec2229
3 files changed
+26 -37

No files matched your search

+14 -11
View File
@@ -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