The Lab
PED native

_SET_PED_DEFENSIVE_SPHERE_ATTACHED_TO_ENTITY

returns void8 paramsbuild 1207

Restricts ped to a defensive sphere of radius attached to entity at the given offset.

Signature

C
void _SET_PED_DEFENSIVE_SPHERE_ATTACHED_TO_ENTITY(Ped ped, Entity entity, float x, float y, float z, float radius, int p6, BOOL p7); // 0x1854217C640B39EC b1207

Parameters

#NameType
1pedPed
2entityEntity
3xfloat
4yfloat
5zfloat
6radiusfloat
7p6int
8p7BOOL

Facts

Facts about _SET_PED_DEFENSIVE_SPHERE_ATTACHED_TO_ENTITY
Name
_SET_PED_DEFENSIVE_SPHERE_ATTACHED_TO_ENTITY
Hash
0x1854217C640B39EC
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(0x1854217C640B39EC, -- _SET_PED_DEFENSIVE_SPHERE_ATTACHED_TO_ENTITY
  PlayerPedId(), -- Ped ped
  PlayerPedId(), -- Entity entity
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0, -- float radius
  0, -- int p6
  false -- BOOL p7
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x1854217C640B39EC", // _SET_PED_DEFENSIVE_SPHERE_ATTACHED_TO_ENTITY
  PlayerPedId(), // Ped ped
  PlayerPedId(), // Entity entity
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float radius
  0, // int p6
  false // BOOL p7
);
C#
Function.Call((Hash)0x1854217C640B39EC, // _SET_PED_DEFENSIVE_SPHERE_ATTACHED_TO_ENTITY
  API.PlayerPedId(), // Ped ped
  API.PlayerPedId(), // Entity entity
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f, // float radius
  0, // int p6
  false // BOOL p7
);
All PED natives

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