We cannot get the phone message to any emergency jobs, we tried almost any post about this, we updated parts of the code but still we dont get message to any “job”
TriggerServerEvent(‘esx_addons_gcphone:startCall’, ‘ambulance’, _U(‘distress_message’), PlayerCoords, {
We are currently trying to change the startCall on the distress message trigger,
Calls on an unregistered service => number : ambulance
…
When i insert the client/main.lua stuff it breaks on me, and when i buy the phone item from the shop and try open the phone, it doesn’t work. When i remove that small script the phone works again. Any ideas?
mine is setup at the min to for police to get ambulance call’s soo iv’e had to change it from ambulance/police to emergency services to contact both would be ideal if someone could help me get the police to get there own alerts and not both
Does anyone get this error in their rcon with Kashacters when having this phone? Anyone know how to fix it? It is giving me a database error for the ‘owner’ identifier. I think it wants me to switch it to where it’s identifier and says the steam/char- IDs. But I am not certain how to fix it. Any help would be greatly appreciated.
Just switching it to identifier from owner in the Database is not the fix, it has to be in the code itself.
Where i put this code
function getPhoneRandomNumber()
local numBase0 = math.random(100,999)
local numBase1 = math.random(0,9999)
local num = string.format("%03d-%04d", numBase0, numBase1 )
return num
end
Now my register not working. Database phone_number is empty