[THIS IS IN MY server.lua]
-------POLICE-------
local onduty = ‘ARPM.cop’
RegisterCommand(“onduty”, function(source, args, raw)
local player = source
if (player > 0) then
TriggerClientEvent(“ARPM:policeduty”, source)
CancelEvent()
end
end, false)
[THIS IS IN MY client.lua]
local policeduty = false
– Police
RegisterNetEvent(“ARPM:policeduty”)
AddEventHandler(“ARPM:policeduty”, function()
local duty = nil
policeduty = not policeduty
if policeduty then
duty = " on duty as a COP"
local models = GetHashKey(“s_m_y_cop_01”)
RequestModel(models)
while not HasModelLoaded(models) do
RequestModel(models)
Citizen.Wait(0)
end
inServiceCops = true
peds = GetPlayerPed(-1)
ids = GetPlayerServerId(PlayerId())
print(ids…" -your server id")
TriggerServerEvent(“eblips:add”, {name = “POLICE”, src = ids, color = 3})
print(inServiceCops)
local playerPed = GetPlayerPed(-1)
else
duty = " off duty"
inServiceCops = false
print(ids…" -your server id2")
TriggerServerEvent(“eblips:remove”, ids)
end
exports[‘mythic_notify’]:SendAlert(‘inform’, “you are now”…duty…“.”)
end)
[WHERE I GOT THE EMERGENCY BLIPS SCRIPT]