Browse docs
Client Events
Client-side events provided by the Sky Police Job resource.
Client Events
These events can be triggered from other resources to interact with the police job on the client side. They mirror the client exports for resources that prefer events over export calls.
| Event | Description |
|---|---|
sky_policejob:client:cuffPlayer | Toggle the cuff state for the nearest player as an officer. |
sky_policejob:client:uncuffPlayer | Remove cuffs from the nearest player as an officer. |
sky_policejob:client:useCuffPlayer | Civilian cuff variant; respects Config.CivilianUse. |
sky_policejob:client:useUncuffPlayer | Civilian uncuff variant; respects Config.CivilianUse. |
sky_policejob:client:useHeadBag | Use a head bag on the nearest player; respects Config.CivilianUse.headBag. |
sky_policejob:client:escortToggle | Start or stop escorting the nearest player. |
sky_policejob:client:escortPutInVehicle | Put the escorted player into the closest vehicle. |
sky_policejob:client:escortTakeOutVehicle | Take the escorted player out of a vehicle. |
sky_policejob:client:cuffPlayer
Toggles the cuff state for the nearest player. Accepts an optional cuff type.
client.lua
TriggerEvent("sky_policejob:client:cuffPlayer") -- cuffs
TriggerEvent("sky_policejob:client:cuffPlayer", "zipties")
sky_policejob:client:uncuffPlayer
Removes cuffs or zipties from the nearest player.
client.lua
TriggerEvent("sky_policejob:client:uncuffPlayer")
sky_policejob:client:useCuffPlayer / sky_policejob:client:useUncuffPlayer
The civilian variants — they do not require the player to be a police officer and follow the Config.CivilianUse rules. Failures show a notification to the player.
client.lua
TriggerEvent("sky_policejob:client:useCuffPlayer", "cuffs") -- or "zipties"
TriggerEvent("sky_policejob:client:useUncuffPlayer")
sky_policejob:client:useHeadBag
Uses a head bag on the nearest player. Respects Config.CivilianUse.headBag.
client.lua
TriggerEvent("sky_policejob:client:useHeadBag")
sky_policejob:client:escortToggle
Starts or stops escorting the nearest player.
client.lua
TriggerEvent("sky_policejob:client:escortToggle")
sky_policejob:client:escortPutInVehicle
Puts the currently escorted player into the closest vehicle.
client.lua
TriggerEvent("sky_policejob:client:escortPutInVehicle")
sky_policejob:client:escortTakeOutVehicle
Takes the escorted player out of a vehicle.
client.lua
TriggerEvent("sky_policejob:client:escortTakeOutVehicle")
Support
Need help? Our support team is always ready to assist
Join Discord