Перейти к содержанию

Player::isPlayerBeingArrested

Материал из RAGE MP Wiki Archive

Return true while player is being arrested / busted.

If atArresting is set to 1, this function will return 1 when player is being arrested (while player is putting his hand up, but still have control)

If atArresting is set to 0, this function will return 1 only when the busted screen is shown.

Syntax

<syntaxhighlight lang="javascript">mp.game.player.isPlayerBeingArrested(atArresting);</syntaxhighlight>

Required Arguments

  • atArresting: Boolean

Return value

  • Boolean

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also