_SET_PED_DEFENSIVE_SPHERE_ATTACHED_TO_ENTITY
Restricts ped to a defensive sphere of radius attached to entity at the given offset.
Signature
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 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | entity | Entity |
| 3 | x | float |
| 4 | y | float |
| 5 | z | float |
| 6 | radius | float |
| 7 | p6 | int |
| 8 | p7 | BOOL |
Facts
| 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.
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
)// 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
);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
);Related PED natives
- _SET_PED_DEFENSIVE_AREA_TO_ANGLED_AREA
- _SET_PED_TO_BE_REMOVED
- _SET_PED_TO_DISABLE_RAGDOLL
- SET_PED_SPHERE_DEFENSIVE_AREA
- _SET_PED_DESIRED_LOCO_FOR_MODEL
- _SET_PED_DESIRED_LOCO_MOTION_TYPE
- _SET_PED_DESIRES_GROUP
- _SET_PED_DAMAGE_CLEANLINESS
- _SET_PED_DAMAGED
- _SET_PED_DIRT_CLEANED
- _SET_PED_DISABLE_KICK_MOVE
- _SET_PED_DRUNKNESS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.