For the complete documentation index, see llms.txt. This page is also available as Markdown.

Client

Client-side events and exports exposed by rcore_police. Call them from other resources running in the same client.

🚔 Actions

Job Menu

Open job menu (F6) via event.

TriggerEvent("rcore_police:client:api:openJobMenu")
Cuff

Cuffs the closest player to the initiator.

TriggerEvent("rcore_police:client:api:Cuff")
Escort

Escort the closest player to the initiator.

TriggerEvent("rcore_police:client:api:Escort")
Licenses

Allows to show Licenses of closest player to the initiator.

TriggerEvent("rcore_police:client:api:Licenses")
InVehicle

Allows to put closest player to closest vehicle seat.

TriggerEvent("rcore_police:client:api:InVehicle")
FromVehicle

Allows to get closest player from closest vehicle seat.

Jail

Allows to open Jail dialog for closest player if supported jail is running.

Emergency

Allows to call panic button.

Fine

Allows to Fine closest player to you.

Impound

Allows to Impound closest vehicle to you.

UnlockVehicle

Allows to unlock closest vehicle to you.

VehicleInfo

Allows to get VehicleInfo of closest vehicle to you.

Radar

Allows to get in editor mode and place speed camera.

🪝 Hooks

rcore_police:tackle:registerHook

Registers a custom hook to define logic that affects tackling behavior in the rcore_police system.

🔍 Player State

IsPlayerCuffed

Checks if a player is cuffed. Call without a playerId to check the initiator.

Check any player on client:

IsPlayerEscorted

Checks if a player is escorted. Call without a playerId to check the initiator.

IsPlayerHeadBagged

Checks if a player has a paper bag on their head. Call without a playerId to check the initiator.

IsPlayerDead
IsPlayerHandsup

👮 General

GetPoliceOnline

Returns the number of police officers currently online.

OpenInvoiceMenu

🔧 Wheel Clamp

PlaceWheelClamp

Places a wheel clamp on the closest vehicle wheel bone.

RemoveWheelClamp

Removes a wheel clamp from the closest vehicle wheel bone.

DoesVehicleHaveWheelClamp

Checks if a vehicle has a wheel clamp. By default checks the closest vehicle; an entityId can be passed optionally. Useful for disabling interaction with vehicles when clamped.

Last updated