The Lab
TASK native

TASK_ROB_PED

returns void5 paramsbuild 1207

Tasks ped to rob target.

Signature

C
void TASK_ROB_PED(Ped ped, Ped target, float p2, int flag, int p4); // 0x7BB967F85D8CCBDB b1207

Parameters

#NameType
1pedPed
2targetPed
3p2float
4flagint
5p4int

Facts

Facts about TASK_ROB_PED
Name
TASK_ROB_PED
Hash
0x7BB967F85D8CCBDB
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x7BB967F85D8CCBDB, -- TASK_ROB_PED
  PlayerPedId(), -- Ped ped
  PlayerPedId(), -- Ped target
  0.0, -- float p2
  0, -- int flag
  0 -- int p4
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x7BB967F85D8CCBDB", // TASK_ROB_PED
  PlayerPedId(), // Ped ped
  PlayerPedId(), // Ped target
  0.0, // float p2
  0, // int flag
  0 // int p4
);
C#
Function.Call((Hash)0x7BB967F85D8CCBDB, // TASK_ROB_PED
  API.PlayerPedId(), // Ped ped
  API.PlayerPedId(), // Ped target
  0.0f, // float p2
  0, // int flag
  0 // int p4
);
All TASK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.