Player::isPlayerBeingArrested: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Return true while player is being arrested / busted.<br><br>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)<br><br>If atArresting is set to 0, this function will return 1 only when the busted screen is shown.
Return true while player is being arrested / busted.<br><br>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)<br><br>If atArresting is set to 0, this function will return 1 only when the busted screen is shown.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.isPlayerBeingArrested(atArresting);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.player.isPlayerBeingArrested(atArresting);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''atArresting:''' Boolean
*'''atArresting:''' Boolean
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Player_function_c}}
{{Player_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:30, 6 May 2017

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

mp.game.player.isPlayerBeingArrested(atArresting);

Required Arguments

  • atArresting: Boolean

Return value

  • Boolean

Example

// todo

See also