Events
Client
ak47_policejob:cuff:near
Cuffs the nearest player from the front.
TriggerEvent('ak47_policejob:cuff:near')ak47_policejob:backcuff:near
Cuffs the nearest player from behind.
TriggerEvent('ak47_policejob:backcuff:near')ak47_policejob:uncuff:near
Removes handcuffs from the nearest cuffed player.
TriggerEvent('ak47_policejob:uncuff:near')ak47_policejob:escort:near
Toggles escorting the nearest restrained player.
TriggerEvent('ak47_policejob:escort:near')ak47_policejob:tie:near
Ties the nearest player using rope.
TriggerEvent('ak47_policejob:tie:near')ak47_policejob:untie:near
Unties the nearest restrained player.
TriggerEvent('ak47_policejob:untie:near')ak47_policejob:putinvehicle:near
Places the nearest escorted player into a vehicle seat.
TriggerEvent('ak47_policejob:putinvehicle:near')ak47_policejob:pulloutvehicle:near
Pulls a player out of the nearest vehicle.
TriggerEvent('ak47_policejob:pulloutvehicle:near')ak47_policejob:setblindfold:near
Places a blindfold on the nearest player.
TriggerEvent('ak47_policejob:setblindfold:near')ak47_policejob:removeblindfold:near
Removes the blindfold from the nearest player.
TriggerEvent('ak47_policejob:removeblindfold:near')ak47_policejob:impoundvehicle:near
Sends the nearest vehicle to the police impound lot.
TriggerEvent('ak47_policejob:impoundvehicle:near')ak47_policejob:depotvehicle:near
Sends the nearest vehicle to the police depot.
TriggerEvent('ak47_policejob:depotvehicle:near')ak47_policejob:seizevehicle:near
Seizes the nearest vehicle into police custody.
TriggerEvent('ak47_policejob:seizevehicle:near')ak47_policejob:checkplate:near
Queries registration information for the nearest vehicle plate.
TriggerEvent('ak47_policejob:checkplate:near')ak47_policejob:getintrunk:near
Forces the local player to enter the nearest vehicle trunk.
TriggerEvent('ak47_policejob:getintrunk:near')ak47_policejob:putintrunk:near
Places the nearest escorted player into the vehicle trunk.
TriggerEvent('ak47_policejob:putintrunk:near')ak47_policejob:pullouttrunk:near
Pulls a player out of the nearest vehicle trunk.
TriggerEvent('ak47_policejob:pullouttrunk:near')ak47_policejob:jailplayer
Applies prison sentence parameters to the local player.
TriggerEvent('ak47_policejob:jailplayer', time)| Parameter | Type | Required | Description |
|---|---|---|---|
time |
number | Yes | Sentence duration in minutes |
ak47_policejob:unjailplayer
Releases the local player from prison.
TriggerEvent('ak47_policejob:unjailplayer')ak47_policejob:comsplayer
Assigns community service tasks to the local player.
TriggerEvent('ak47_policejob:comsplayer', taskAmount)| Parameter | Type | Required | Description |
|---|---|---|---|
taskAmount |
number | Yes | Number of cleaning tasks to complete |
ak47_policejob:uncomplayer
Releases the local player from community service.
TriggerEvent('ak47_policejob:uncomplayer')ak47_policejob:openmanageoutfit
Opens the department outfit management UI.
TriggerEvent('ak47_policejob:openmanageoutfit')ak47_policejob:openwardrobe
Opens the department wardrobe locker UI.
TriggerEvent('ak47_policejob:openwardrobe')Server
ak47_policejob:jailplayer
Sentences a player to prison. Requires police job or admin permissions.
TriggerServerEvent('ak47_policejob:jailplayer', targetServerId, time, reason)| Parameter | Type | Required | Description |
|---|---|---|---|
targetServerId |
number | Yes | Target player server ID |
time |
number | Yes | Sentence duration in minutes |
reason |
string | No | Reason for imprisonment |
ak47_policejob:unjailplayer
Releases a player from prison. Requires police job or admin permissions.
TriggerServerEvent('ak47_policejob:unjailplayer', targetServerId)| Parameter | Type | Required | Description |
|---|---|---|---|
targetServerId |
number | Yes | Target player server ID |
ak47_policejob:comsplayer
Sentences a player to community service. Requires police job or admin permissions.
TriggerServerEvent('ak47_policejob:comsplayer', targetServerId, taskAmount, reason)| Parameter | Type | Required | Description |
|---|---|---|---|
targetServerId |
number | Yes | Target player server ID |
taskAmount |
number | Yes | Number of service tasks |
reason |
string | No | Reason for sentence |
ak47_policejob:uncomplayer
Releases a player from community service. Requires police job or admin permissions.
TriggerServerEvent('ak47_policejob:uncomplayer', targetServerId)| Parameter | Type | Required | Description |
|---|---|---|---|
targetServerId |
number | Yes | Target player server ID |