RedM Natives

TASK_ROB_PED

Hash0x7BB967F85D8CCBDB
Runtime nameTaskRobPed
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

void TASK_ROB_PED(Ped ped, Ped target, float p2, int flag, int p4);

Parameters

NameTypeDescription
pedPed—
targetPed—
p2float—
flagint—
p4int—

Returns void

Usage

Lua
TaskRobPed(ped, target, p2, flag, p4)

-- always works, by hash
Citizen.InvokeNative(0x7BB967F85D8CCBDB, ped, target, p2, flag, p4)
JavaScript and C#
JavaScript
TaskRobPed(ped, target, p2, flag, p4);

// by hash
Citizen.invokeNative('0x7BB967F85D8CCBDB', ped, target, p2 + 0.0000001, flag, p4);
C#
Function.Call((Hash)0x7BB967F85D8CCBDB, ped, target, p2, flag, p4);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

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