taskHandsUp
TASK_HANDS_UP0xF2EAB31979A7F910The GTA V native TASK_HANDS_UP of the TASK namespace, as LS:MP client scripts call it: the global function taskHandsUp, in JavaScript and in Lua.
taskHandsUp(
ped: Ped,
duration: number,
facingPed: Ped,
timeToFacePed: number,
flags: number
): voidtaskHandsUp(
ped: Ped,
duration: integer,
facingPed: Ped,
timeToFacePed: integer,
flags: integer
)Usage
JavaScript
taskHandsUp(ped, duration, facingPed, timeToFacePed, flags);Lua
taskHandsUp(ped, duration, facingPed, timeToFacePed, flags)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
duration | int | number | integer |
facingPed | Ped | number | integer |
timeToFacePed | int | number | integer |
flags | 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.
In the scripts, p3 was always -1.
p3 seems to be duration or timeout of turn animation.
Also facingPed can be 0 or -1 so ped will just raise hands up.
Reference
- Namespace
- Tasks TASK
- In the game
void TASK_HANDS_UP(Ped ped, int duration, Ped facingPed, int timeToFacePed, int flags)- Hash
0xF2EAB31979A7F910