The Lab
PED native

_ATTACH_VOLUME_TO_ENTITY

returns void10 paramsbuild 1207

Attaches volume to entity at the given offset and rotation, so it moves with the entity.

Signature

C
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 b1207

Parameters

#NameType
1volumeVolume
2entityEntity
3offsetXfloat
4offsetYfloat
5offsetZfloat
6rotXfloat
7rotYfloat
8rotZfloat
9p8int
10p9BOOL

Facts

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

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

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