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.

The local player's job must already be registered through the server-side registerInteractionJobs export and have the required capability. Police jobs from Config.Jobs are registered automatically. Triggering one of these events does not bypass the shared whitelist, duty policy, item checks, or server validation.

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:useCuffPlayerCompatibility alias for the cuff action; uses the same whitelist.
sky_policejob:client:useUncuffPlayerCompatibility alias for the uncuff action; uses the same whitelist.
sky_policejob:client:useHeadBagUse a head bag on the nearest player through the shared whitelist.
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

Compatibility aliases for the regular cuff and uncuff events. They use the same registered-job access policy and server checks. 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 through the shared registered-job access policy.

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