Player::disableFiring: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
mp.game.player.disableFiring(true);
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Player_function_c}}
{{Player_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 23:18, 26 October 2020

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

NOTE: Only disables the firing for one frame

Syntax

player.disableFiring(toggle);

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

mp.game.player.disableFiring(true);

See also