Interactions

forceUncuff

Force uncuff player through script.

exports['p_policejob']:forceUncuff(playerId)
  • playerId: number

    • Existing player id


draggingPlayer

Get the player you are currently dragging or other player dragging.

Player(playerId).state.draggingPlayer
  • playerId: number

    • Existing player server id

Return:

  • state: boolean or nil


draggedBy

Get the player which currently dragging you or other player.

Player(playerId).state.draggedBy
  • playerId: number

    • Existing player server id

Return:

  • state: boolean or nil


carryingPlayer

Get the player you are currently carrying or other player carrying.

Player(playerId).state.carryingPlayer
  • playerId: number

    • Existing player server id

Return:

  • state: boolean or nil


carriedBy

Get the player which currently carry you or other player.

Player(playerId).state.draggedBy
  • playerId: number

    • Existing player server id

Return:

  • state: boolean or nil


isCuffed

Get the player cuff state.

Player(playerId).state.isCuffed
  • playerId: number

    • Existing player server id

Return:

  • state: boolean or nil


cuffType

Get the player cuff type.

Player(playerId).state.cuffType
  • playerId: number

    • Existing player server id

Return:

  • type: "cuffs" / "rope" or "none"


hasHeadBag

Check if player has headbag on head.

Player(playerId).state.hasHeadBag
  • playerId: number

    • Existing player server id

Return:

  • state: boolean or nil

Last updated