Player::taskCrawl

From RAGE Multiplayer Wiki
Revision as of 18:29, 25 December 2024 by Shr0x (talk | contribs) (Created page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Makes the player crawl on the ground in a prone position. === Syntax === <syntaxhighlight lang="javascript"> player.taskCrawl(isOnBack); </syntaxhighlight> === Required Parameters === * '''isOnBack:''' {{RageType|bool}} - Set to `true` to crawl on the back, or `false` to crawl face-down. === Return Value === * '''undefined''' === Example === <syntaxhighlight lang="javascript"> // Make the local player crawl fac...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax


Summary

Makes the player crawl on the ground in a prone position.

Syntax

player.taskCrawl(isOnBack);

Required Parameters

  • isOnBack: bool - Set to `true` to crawl on the back, or `false` to crawl face-down.

Return Value

  • undefined

Example

// Make the local player crawl face-down
mp.players.local.taskCrawl(false);
mp.gui.chat.push("The player is now crawling.");


See Also