TASK_ROB_PED
Signature
void TASK_ROB_PED(Ped ped, Ped target, float p2, int flag, int p4);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
target | Ped | — |
p2 | float | — |
flag | int | — |
p4 | int | — |
Returns void
Usage
TaskRobPed(ped, target, p2, flag, p4)
-- always works, by hash
Citizen.InvokeNative(0x7BB967F85D8CCBDB, ped, target, p2, flag, p4)JavaScript and C#
TaskRobPed(ped, target, p2, flag, p4);
// by hash
Citizen.invokeNative('0x7BB967F85D8CCBDB', ped, target, p2 + 0.0000001, flag, p4);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.