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

Player::setCanDoDriveBy

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

Set whether this player should be able to do drive-bys.

'A drive-by is when a ped is aiming/shooting from vehicle. This includes middle finger taunts. By setting this value to false I confirm the player is unable to do all that. Tested on tick.' - THEAETIK

Syntax

<syntaxhighlight lang="javascript">player.setCanDoDriveBy(toggle);</syntaxhighlight>

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

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

See also