The Lab
VOLUME native

_ADD_VOLUME_TO_VOLUME_AGGREGATE

returns void11 paramsbuild 1207

Adds a shape of type typeHash with the given position, rotation and scale to the aggregate volume aggregate.

Signature

C
void _ADD_VOLUME_TO_VOLUME_AGGREGATE(Volume aggregate, Hash typeHash, float x, float y, float z, float rotX, float rotY, float rotZ, float scaleX, float scaleY, float scaleZ); // 0x12FCAA23F2320422 b1207

Parameters

#NameType
1aggregateVolume
2typeHashHash
3xfloat
4yfloat
5zfloat
6rotXfloat
7rotYfloat
8rotZfloat
9scaleXfloat
10scaleYfloat
11scaleZfloat

Facts

Facts about _ADD_VOLUME_TO_VOLUME_AGGREGATE
Name
_ADD_VOLUME_TO_VOLUME_AGGREGATE
Hash
0x12FCAA23F2320422
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(0x12FCAA23F2320422, -- _ADD_VOLUME_TO_VOLUME_AGGREGATE
  0, -- Volume aggregate
  GetHashKey("name"), -- Hash typeHash
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0, -- float rotX
  0.0, -- float rotY
  0.0, -- float rotZ
  0.0, -- float scaleX
  0.0, -- float scaleY
  0.0 -- float scaleZ
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x12FCAA23F2320422", // _ADD_VOLUME_TO_VOLUME_AGGREGATE
  0, // Volume aggregate
  GetHashKey("name"), // Hash typeHash
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float rotX
  0.0, // float rotY
  0.0, // float rotZ
  0.0, // float scaleX
  0.0, // float scaleY
  0.0 // float scaleZ
);
C#
Function.Call((Hash)0x12FCAA23F2320422, // _ADD_VOLUME_TO_VOLUME_AGGREGATE
  0, // Volume aggregate
  (uint)API.GetHashKey("name"), // Hash typeHash
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f, // float rotX
  0.0f, // float rotY
  0.0f, // float rotZ
  0.0f, // float scaleX
  0.0f, // float scaleY
  0.0f // float scaleZ
);
All VOLUME natives

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