The Lab
TASK native

TASK_REACT

returns void9 paramsbuild 1207

Tasks ped to react to reactingTo or the position, using the reaction reactionName.

Signature

C
void TASK_REACT(Ped ped, Entity reactingTo, float x, float y, float z, const char* reactionName, float p6, float p7, int p8); // 0xC4C32C31920E1B70 b1207

Parameters

#NameType
1pedPed
2reactingToEntity
3xfloat
4yfloat
5zfloat
6reactionNameconst char*
7p6float
8p7float
9p8int

Facts

Facts about TASK_REACT
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.

Lua
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
)
JavaScript
// 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
);
C#
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
);
All TASK natives

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