Oh well, I turned on the marker and it does not show up or work. No errors in console, it says it is started, but appears to not be loading. One last question. If I get this working, is there a way to get the actual detector machine at the pd?
I have the script in my ESX folder. If that matters.
I got working with the coordinates, I can see the marker and everything. When a normal player goes through it with a weapon it tells them on the bottom center of the screen âYou had a weapon on you, the police have been informedâ but it dosenât make a sound? Any fix?
Hi, great script, I have a problem when I pass the detector as a civilian he says Someone walked through the sensor and had a weapon while I am not a policeman
with the option of pressing [e] to have a mark on the map
How to remove this message for civilians.
Whenever someone goes through the detector, it gives the alert to police, but when you press e to take the call the mark on the map is in some random location, Not at Mission Row for instance
Could you help me, please?
When the player passes through the PD door he is informed that he is armed and the police will be informed
Plus my cops are not getting the notification
if HasPedGotWeapon(playerPed, weaponHash, false) then
if CurrentAction == âdetectorâ then
ânothings happens if police
if PlayerData.job ~= nil and PlayerData.job.name == âpoliceâ then
â
else
if PlayerData.job ~= nil and PlayerData.job.name == âsheriffâ then
â
else
--prints name and weapon in client
print(Config.Weapons[i].name .. ' - ' .. GetPlayerName(id))
--sends message to client
sendNotification(_U('busted'), 'error', 5000)
--makes sound to everyone around him
TriggerServerEvent("InteractSound_SV:PlayWithinDistance", 55, "detector", 1.0)
Wait(5000)
--sends message to police
TriggerServerEvent('esx_phone:send', 'police', _U('police_message'), true, {}, true)
TriggerServerEvent('esx_phone:send', 'sheriff', _U('sheriff_message'), true, {}, true)
end
end