TASK_REACT
Tasks ped to react to reactingTo or the position, using the reaction reactionName.
Signature
void TASK_REACT(Ped ped, Entity reactingTo, float x, float y, float z, const char* reactionName, float p6, float p7, int p8); // 0xC4C32C31920E1B70 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | reactingTo | Entity |
| 3 | x | float |
| 4 | y | float |
| 5 | z | float |
| 6 | reactionName | const char* |
| 7 | p6 | float |
| 8 | p7 | float |
| 9 | p8 | int |
Facts
| Name | TASK_REACT |
|---|---|
| Hash | 0xC4C32C31920E1B70 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xC4C32C31920E1B70, -- TASK_REACT
PlayerPedId(), -- Ped ped
PlayerPedId(), -- Entity reactingTo
0.0, -- float x
0.0, -- float y
0.0, -- float z
"text", -- const char* reactionName
0.0, -- float p6
0.0, -- float p7
0 -- int p8
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xC4C32C31920E1B70", // TASK_REACT
PlayerPedId(), // Ped ped
PlayerPedId(), // Entity reactingTo
0.0, // float x
0.0, // float y
0.0, // float z
"text", // const char* reactionName
0.0, // float p6
0.0, // float p7
0 // int p8
);Function.Call((Hash)0xC4C32C31920E1B70, // TASK_REACT
API.PlayerPedId(), // Ped ped
API.PlayerPedId(), // Entity reactingTo
0.0f, // float x
0.0f, // float y
0.0f, // float z
"text", // const char* reactionName
0.0f, // float p6
0.0f, // float p7
0 // int p8
);Related TASK natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.