taskAchieveHeading
TASK_ACHIEVE_HEADING0x93B93A37987F1F3DThe GTA V native TASK_ACHIEVE_HEADING of the TASK namespace, as LS:MP client scripts call it: the global function taskAchieveHeading, in JavaScript and in Lua.
taskAchieveHeading(ped: Ped, heading: number, timeout: number): voidtaskAchieveHeading(ped: Ped, heading: number, timeout: integer)Usage
JavaScript
taskAchieveHeading(ped, heading, timeout);Lua
taskAchieveHeading(ped, heading, timeout)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
heading | float | number | number |
timeout | int | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
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.
Reference
- Namespace
- Tasks TASK
- In the game
void TASK_ACHIEVE_HEADING(Ped ped, float heading, int timeout)- Hash
0x93B93A37987F1F3D