RedM Natives

TASK_HANDS_UP

In the scripts, p3 was always -1.

Hash0x8DCC19C5
Runtime nameTaskHandsUp
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void TASK_HANDS_UP(Ped ped, int duration, Ped facingPed, int p3, BOOL p4);

Parameters

NameTypeDescription
pedPed—
durationint—
facingPedPed—
p3int—
p4BOOL—

Returns void

Description

Cfx.re native reference

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

Lua
TaskHandsUp(ped, duration, facingPed, p3, p4)

-- always works, by hash
Citizen.InvokeNative(0x8dcc19c5, ped, duration, facingPed, p3, p4)
JavaScript and C#
JavaScript
TaskHandsUp(ped, duration, facingPed, p3, p4);

// by hash
Citizen.invokeNative('0x8dcc19c5', ped, duration, facingPed, p3, p4);
C#
Function.Call((Hash)0x8dcc19c5, ped, duration, facingPed, p3, p4);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.