Skip to main content

Player::taskCrawlToCoords

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Client-side JavaScript). Calling it does nothing or throws.

Client-side function

JavaScript​

Summary​

Directs the player to crawl to specified coordinates.

Syntax​

player.taskCrawlToCoords(pos, isOnBack, timeout);

Required Parameters​

  • pos: mp.Vector3 - The target coordinates.
  • isOnBack: bool - Set to true to crawl on the back, or false to crawl face-down.
  • timeout: number - The time (in milliseconds) after which the task will stop.

Return Value​

  • undefined

Example​

// Make the local player crawl to a specific location
const targetPos = new mp.Vector3(100, 100, 72);
mp.players.local.taskCrawlToCoords(targetPos, false, 5000);
mp.gui.chat.push("The player is crawling to the specified location.");