_ATTACH_VOLUME_TO_ENTITY
Attaches volume to entity at the given offset and rotation, so it moves with the entity.
Signature
void _ATTACH_VOLUME_TO_ENTITY(Volume volume, Entity entity, float offsetX, float offsetY, float offsetZ, float rotX, float rotY, float rotZ, int p8, BOOL p9); // 0x7C00CFC48A782DC0 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | volume | Volume |
| 2 | entity | Entity |
| 3 | offsetX | float |
| 4 | offsetY | float |
| 5 | offsetZ | float |
| 6 | rotX | float |
| 7 | rotY | float |
| 8 | rotZ | float |
| 9 | p8 | int |
| 10 | p9 | BOOL |
Facts
| Name | _ATTACH_VOLUME_TO_ENTITY |
|---|---|
| Hash | 0x7C00CFC48A782DC0 |
| 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(0x7C00CFC48A782DC0, -- _ATTACH_VOLUME_TO_ENTITY
0, -- Volume volume
PlayerPedId(), -- Entity entity
0.0, -- float offsetX
0.0, -- float offsetY
0.0, -- float offsetZ
0.0, -- float rotX
0.0, -- float rotY
0.0, -- float rotZ
0, -- int p8
false -- BOOL p9
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x7C00CFC48A782DC0", // _ATTACH_VOLUME_TO_ENTITY
0, // Volume volume
PlayerPedId(), // Entity entity
0.0, // float offsetX
0.0, // float offsetY
0.0, // float offsetZ
0.0, // float rotX
0.0, // float rotY
0.0, // float rotZ
0, // int p8
false // BOOL p9
);Function.Call((Hash)0x7C00CFC48A782DC0, // _ATTACH_VOLUME_TO_ENTITY
0, // Volume volume
API.PlayerPedId(), // Entity entity
0.0f, // float offsetX
0.0f, // float offsetY
0.0f, // float offsetZ
0.0f, // float rotX
0.0f, // float rotY
0.0f, // float rotZ
0, // int p8
false // BOOL p9
);Related PED natives
- _DETACH_VOLUME_FROM_ENTITY
- _SET_PED_DEFENSIVE_SPHERE_ATTACHED_TO_ENTITY
- _ADD_PED_STAY_OUT_VOLUME
- _ADD_PED_SUBSCRIBE_TO_LEGENDARY_BLIPS
- _ADD_SCENARIO_BLOCKING_VOLUME
- _APPLY_PED_DAMAGE_PACK_TO_BONE
- _APPLY_SHOP_ITEM_TO_PED
- _GET_FIRST_ENTITY_PED_IS_CARRYING
- _GET_LAST_VEHICLE_DRAFT_HORSE_WAS_ATTACHED_TO
- _GET_PED_DEFENSIVE_VOLUME
- _GET_VEHICLE_DRAFT_HORSE_IS_ATTACHED_TO
- _REMOVE_PED_STAY_OUT_VOLUME
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.