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.

EventDescription
sky_policejob:client:cuffPlayerToggle the cuff state for the nearest player as an officer.
sky_policejob:client:uncuffPlayerRemove cuffs from the nearest player as an officer.
sky_policejob:client:useCuffPlayerCivilian cuff variant; respects Config.CivilianUse.
sky_policejob:client:useUncuffPlayerCivilian uncuff variant; respects Config.CivilianUse.
sky_policejob:client:useHeadBagUse a head bag on the nearest player; respects Config.CivilianUse.headBag.
sky_policejob:client:escortToggleStart or stop escorting the nearest player.
sky_policejob:client:escortPutInVehiclePut the escorted player into the closest vehicle.
sky_policejob:client:escortTakeOutVehicleTake 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