exports / triggers
Client Exports / Triggers
exports.brutal_policejob:getAvailableCopsCount()
Number of police officers on duty on the server.
exports.brutal_policejob:IsHandcuffed()
true / false
TriggerEvent('brutal_policejob:client:UseHandCuffKeyItem')
You can remove the nearest player's handcuff with this event.
TriggerServerEvent('brutal_policejob:server:policeMenuEvent', TARGET_ID, 'jail', TIME, REASON)
To send the player jail.
TriggerServerEvent('brutal_policejob:server:policeMenuEvent', TARGET_ID, 'cuff', MY_ID)
Cuff trigger.
TriggerServerEvent('brutal_policejob:server:policeMenuEvent', TARGET_ID, 'uncuff', MY_ID)
Uncuff trigger
TriggerServerEvent('brutal_policejob:server:policeMenuEvent', TARGET_ID, 'drag', MY_ID)
Drag trigger.
x,y,z = table.unpack(GetEntityCoords(PlayerPedId()))
streetLabel = GetStreetNameFromHashKey(GetStreetNameAtCoord(x,y,z)) TriggerServerEvent('brutal_policejob:server:citizencall', 'create', text, {x,y,z}, streetLabel)
ONLY FROM client side. With this event you can export to the mdt citizen calls.
TriggerEvent('brutal_policejob:client:ToggleDuty')
Switch between the duty status. ON/FALSE
For example:
Server Events
Last updated