Client
This page lists all the available client-side events and exports.
Events (General)
Job Menu
Open job menu (F6) via event.
Event Name:
rcore_police:client:api:openJobMenuExample:
TriggerEvent("rcore_police:client:api:openJobMenu")Cuff
Cuffs the closest player to the initiator.
Event Name:
rcore_police:client:api:CuffExample:
TriggerEvent("rcore_police:client:api:Cuff")Escort
Escort the closest player to the initiator.
Event Name:
rcore_police:client:api:EscortExample:
Licenses
Allows to show Licenses of closest player to the initiator.
Event Name:
rcore_police:client:api:LicensesExample:
InVehicle
Allows to put closest player to closest vehicle seat.
Event Name:
rcore_police:client:api:InVehicleExample:
FromVehicle
Allows to get closest player from closest vehicle seat.
Event Name:
rcore_police:client:api:FromVehicleExample:
Search
Allows to search closest player if supported inventory is running
Event Name:
rcore_police:client:api:SearchExample:
Jail
Allows to open Jail dialog for closest player if supported jail is running
Event Name:
rcore_police:client:api:JailExample:
Emergency
Allows to call panic button
Event Name:
rcore_police:client:api:EmergencyExample:
Fine
Allows to Fine closest player to you
Event Name:
rcore_police:client:api:FineExample:
Impound
Allows to Impound closest vehicle to you
Event Name:
rcore_police:client:api:ImpoundExample:
UnlockVehicle
Allows to UnlockVehicle closest vehicle to you
Event Name:
rcore_police:client:api:UnlockVehicleExample:
VehicleInfo
Allows to get VehicleInfo of closest vehicle to you
Event Name:
rcore_police:client:api:VehicleInfoExample:
Radar
Allows to get in editor mode and place speed camera.
Event Name:
rcore_police:client:api:RadarExample:
registerHook
Registers a custom hook to define logic that affects tackling behavior in the
rcore_policesystem.
Exports (States)
IsPlayerCuffed
Used for checking if player is cuffed
IsPlayerCuffed
Type:
booleanDefault value:
false
Check initiator if cuffed
Params:
None
Returns:
boolean:trueif player is cuffed, otherwisefalse.
Example:
Check any player on client
Params:
NameTypeDescriptionplayerIdnumberID of player which you want to get state of cuffed
Returns:
boolean:trueif player is cuffed, otherwisefalse.
Example:
IsPlayerEscorted
Used for checking if player is escorted
IsPlayerEscorted
Type:
booleanDefault value:
false
Check initiator if escorted
Params:
None
Returns:
boolean:trueif player is escorted, otherwisefalse.
Example:
Check any player on client
Params:
NameTypeDescriptionplayerIdnumberID of player which you want to get state of escorted
Returns:
boolean:trueif player is escorted, otherwisefalse.
Example:
IsPlayerHeadBagged
IsPlayerHeadBagged
Type:
booleanDefault value:
false
Check initiator if IsPlayerHeadBagged
Params:
None
Returns:
boolean:trueif player is IsPlayerHeadBagged, otherwisefalse.
Example:
Check any player on client
Params:
NameTypeDescriptionplayerIdnumberID of player which you want to get state of IsPlayerHeadBagged
Returns:
boolean:trueif player is IsPlayerHeadBagged, otherwisefalse.
Example:
Exports (General)
GetPoliceOnline
Used for getting all police officers online
GetPoliceOnline
Type:
numberDefault value::
0Returns:
number: Number of officers online, by default returns 0 when not any online
Example:
Wheel Clamp
PlaceWheelClamp
Function for placing wheel clamp on closest vehicle wheel bone.
RemoveWheelClamp
Function for removing wheel clamp from closest vehicle wheel bone.
DoesVehicleHaveWheelClamp
Function for checking if a vehicle has a wheel clamp.
By default, it automatically checks the closest vehicle.
An
entityIdcan be passed optionally.Useful for disabling interaction with vehicles when clamped.
DoesVehicleHaveWheelClamp
Type:
(boolean, string)Returns:
boolean retval→trueif the vehicle has a wheel clamp,falseotherwisestring statusCode→ status/result message
Example:
IsPlayerDead
⚠️ Experimental: This export is experimental and is not guaranteed to work. It is used internally by rcore_police and no support is provided for external usage.
IsPlayerHandsup
OpenInvoiceMenu
Last updated