Player::isFalling: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
mNo edit summary
 
Line 7: Line 7:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
mp.events.add('render', () => {
    if (mp.players.local.isFalling()) {
        // your code
    }
});
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==

Latest revision as of 11:05, 25 October 2019

Syntax

player.isFalling();

Required Arguments

Return value

  • Boolean

Example

mp.events.add('render', () => {
    if (mp.players.local.isFalling()) {
        // your code
    }
});

See also