taskTurnPedToFaceCoord
TASK_TURN_PED_TO_FACE_COORD0x1DDA930A0AC38571The GTA V native TASK_TURN_PED_TO_FACE_COORD of the TASK namespace, as LS:MP client scripts call it: the global function taskTurnPedToFaceCoord, in JavaScript and in Lua.
taskTurnPedToFaceCoord(
ped: Ped,
x: number,
y: number,
z: number,
duration: number
): voidtaskTurnPedToFaceCoord(
ped: Ped,
x: number,
y: number,
z: number,
duration: integer
)Usage
JavaScript
taskTurnPedToFaceCoord(ped, x, y, z, duration);Lua
taskTurnPedToFaceCoord(ped, x, y, z, duration)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
JavaScript · with vectors
taskTurnPedToFaceCoord(ped, pos, duration);Lua · with vectors
taskTurnPedToFaceCoord(ped, pos, duration)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
x | float | number | number |
y | float | number | number |
z | float | number | number |
duration | 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.
duration in milliseconds
Reference
- Namespace
- Tasks TASK
- In the game
void TASK_TURN_PED_TO_FACE_COORD(Ped ped, float x, float y, float z, int duration)- Hash
0x1DDA930A0AC38571