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:openJobMenu

  • Example:

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

Cuff

  • Cuffs the closest player to the initiator.

  • Event Name: rcore_police:client:api:Cuff

  • Example:

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

Escort

  • Escort the closest player to the initiator.

  • Event Name: rcore_police:client:api:Escort

  • Example:

Licenses

  • Allows to show Licenses of closest player to the initiator.

  • Event Name: rcore_police:client:api:Licenses

  • Example:

InVehicle

  • Allows to put closest player to closest vehicle seat.

  • Event Name: rcore_police:client:api:InVehicle

  • Example:

FromVehicle

  • Allows to get closest player from closest vehicle seat.

  • Event Name: rcore_police:client:api:FromVehicle

  • Example:

  • Allows to search closest player if supported inventory is running

  • Event Name: rcore_police:client:api:Search

  • Example:

Jail

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

  • Event Name: rcore_police:client:api:Jail

  • Example:

Emergency

  • Allows to call panic button

  • Event Name: rcore_police:client:api:Emergency

  • Example:

Fine

  • Allows to Fine closest player to you

  • Event Name: rcore_police:client:api:Fine

  • Example:

Impound

  • Allows to Impound closest vehicle to you

  • Event Name: rcore_police:client:api:Impound

  • Example:

UnlockVehicle

  • Allows to UnlockVehicle closest vehicle to you

  • Event Name: rcore_police:client:api:UnlockVehicle

  • Example:

VehicleInfo

  • Allows to get VehicleInfo of closest vehicle to you

  • Event Name: rcore_police:client:api:VehicleInfo

  • Example:

Radar

  • Allows to get in editor mode and place speed camera.

  • Event Name: rcore_police:client:api:Radar

  • Example:

registerHook

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

chevron-rightrcore_police:tackle:registerHookhashtag
  • Type: boolean

  • Default value: false

  • Example:

Exports (States)

IsPlayerCuffed

  • Used for checking if player is cuffed

chevron-rightIsPlayerCuffedhashtag
  • Type: boolean

  • Default value: false

Check initiator if cuffed

  • Params:

    • None

  • Returns:

    • boolean: true if player is cuffed, otherwise false.

  • Example:

Check any player on client

  • Params:

    Name
    Type
    Description

    playerId

    number

    ID of player which you want to get state of cuffed

  • Returns:

    • boolean: true if player is cuffed, otherwise false.

  • Example:

IsPlayerEscorted

  • Used for checking if player is escorted

chevron-rightIsPlayerEscortedhashtag
  • Type: boolean

  • Default value: false

Check initiator if escorted

  • Params:

    • None

  • Returns:

    • boolean: true if player is escorted, otherwise false.

  • Example:

Check any player on client

  • Params:

    Name
    Type
    Description

    playerId

    number

    ID of player which you want to get state of escorted

  • Returns:

    • boolean: true if player is escorted, otherwise false.

  • Example:

IsPlayerHeadBagged

chevron-rightIsPlayerHeadBaggedhashtag
  • Type: boolean

  • Default value: false

Check initiator if IsPlayerHeadBagged

  • Params:

    • None

  • Returns:

    • boolean: true if player is IsPlayerHeadBagged, otherwise false.

  • Example:

Check any player on client

  • Params:

    Name
    Type
    Description

    playerId

    number

    ID of player which you want to get state of IsPlayerHeadBagged

  • Returns:

    • boolean: true if player is IsPlayerHeadBagged, otherwise false.

  • Example:

Exports (General)

GetPoliceOnline

  • Used for getting all police officers online

chevron-rightGetPoliceOnlinehashtag
  • Type: number

  • Default value:: 0

  • Returns:

    • 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.

chevron-rightPlaceWheelClamphashtag
  • Type: void

  • Returns: nothing

  • Example:

RemoveWheelClamp

  • Function for removing wheel clamp from closest vehicle wheel bone.

chevron-rightRemoveWheelClamphashtag
  • Type: void

  • Returns: nothing

  • Example:

DoesVehicleHaveWheelClamp

  • Function for checking if a vehicle has a wheel clamp.

  • By default, it automatically checks the closest vehicle.

  • An entityId can be passed optionally.

  • Useful for disabling interaction with vehicles when clamped.

chevron-rightDoesVehicleHaveWheelClamphashtag
  • Type: (boolean, string)

  • Returns:

    • boolean retvaltrue if the vehicle has a wheel clamp, false otherwise

    • string 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.

chevron-rightIsPlayerDeadhashtag
  • Type: (boolean)

  • Returns:

    • boolean

  • Example:

IsPlayerHandsup

chevron-rightIsPlayerHandsuphashtag
  • Type: (boolean)

  • Returns:

    • boolean

  • Example:

OpenInvoiceMenu

chevron-rightOpenInvoiceMenuhashtag
  • Type: (boolean)

  • Returns:

    • boolean

  • Example:

Last updated