TASK_HANDS_UP
In the scripts, p3 was always -1.
Signature
void TASK_HANDS_UP(Ped ped, int duration, Ped facingPed, int p3, BOOL p4);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
duration | int | — |
facingPed | Ped | — |
p3 | int | — |
p4 | BOOL | — |
Returns void
Description
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.This is the server-side RPC native equivalent of the client native TASK_HANDS_UP.
Usage
TaskHandsUp(ped, duration, facingPed, p3, p4)
-- always works, by hash
Citizen.InvokeNative(0x8dcc19c5, ped, duration, facingPed, p3, p4)JavaScript and C#
TaskHandsUp(ped, duration, facingPed, p3, p4);
// by hash
Citizen.invokeNative('0x8dcc19c5', ped, duration, facingPed, p3, p4);Function.Call((Hash)0x8dcc19c5, ped, duration, facingPed, p3, p4);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.