Skip to main content

Player::taskAchieveHeading

Makes the specified ped achieve the specified heading.

pedHandle: The handle of the ped to assign the task to. heading: The desired heading. timeout: The time, in milliseconds, to allow the task to complete. If the task times out, it is cancelled, and the ped will stay at the heading it managed to reach in the time.

Syntax

```js player.taskAchieveHeading(heading, timeout); ```

Required Arguments

  • heading: float
  • timeout: int

Return value

  • Undefined

Example

```js // todo ```

See also