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

Player::disableFiring

Материал из RAGE MP Wiki Archive
Версия от 23:18, 26 октября 2020; imported>Faczz (Example)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Inhibits the player from using any method of combat including melee and firearms.

NOTE: Only disables the firing for one frame

Syntax

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

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> mp.game.player.disableFiring(true); </syntaxhighlight>

See also