The Lab
TASK native

TASK_SET_SPHERE_DEFENSIVE_AREA

returns void5 paramsbuild 1207

Sets a spherical defensive area for ped centered on (p1, p2, p3) with radius p4.

Signature

C
void TASK_SET_SPHERE_DEFENSIVE_AREA(Ped ped, float p1, float p2, float p3, float p4); // 0x933C06518B52A9A4 b1207

Parameters

#NameType
1pedPed
2p1float
3p2float
4p3float
5p4float

Facts

Facts about TASK_SET_SPHERE_DEFENSIVE_AREA
Name
TASK_SET_SPHERE_DEFENSIVE_AREA
Hash
0x933C06518B52A9A4
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(0x933C06518B52A9A4, -- TASK_SET_SPHERE_DEFENSIVE_AREA
  PlayerPedId(), -- Ped ped
  0.0, -- float p1
  0.0, -- float p2
  0.0, -- float p3
  0.0 -- float p4
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x933C06518B52A9A4", // TASK_SET_SPHERE_DEFENSIVE_AREA
  PlayerPedId(), // Ped ped
  0.0, // float p1
  0.0, // float p2
  0.0, // float p3
  0.0 // float p4
);
C#
Function.Call((Hash)0x933C06518B52A9A4, // TASK_SET_SPHERE_DEFENSIVE_AREA
  API.PlayerPedId(), // Ped ped
  0.0f, // float p1
  0.0f, // float p2
  0.0f, // float p3
  0.0f // float p4
);
All TASK natives

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