Player::isFreeAiming: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
mNo edit summary
 
Line 1: Line 1:
Gets a value indicating whether the specified player is currently aiming freely.
Gets a value indicating whether the specified player is currently aiming freely.
==Syntax==
==Syntax==
<pre>player.isFreeAiming();</pre>
<pre>mp.game.player.isFreeAiming();</pre>
=== Required Arguments ===
=== Required Arguments ===
===Return value===
===Return value===

Latest revision as of 00:27, 28 March 2019

Gets a value indicating whether the specified player is currently aiming freely.

Syntax

mp.game.player.isFreeAiming();

Required Arguments

Return value

  • Boolean

Example

Outputs the current "FreeAiming" state into the chatbox

let freeAiming = mp.game.player.isFreeAiming();
mp.gui.chat.push("Freeaiming is " + (freeAiming ? "active" : "inactive"))

See also