The Lab
VOLUME native

CREATE_VOLUME_CYLINDER

returns Volume9 paramsbuild 1207

Creates a cylinder volume with the given position, rotation and scale and returns its handle.

Signature

C
Volume CREATE_VOLUME_CYLINDER(float x, float y, float z, float rotX, float rotY, float rotZ, float scaleX, float scaleY, float scaleZ); // 0x0522D4774B82E3E6 b1207

Parameters

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

Facts

Facts about CREATE_VOLUME_CYLINDER
Name
CREATE_VOLUME_CYLINDER
Hash
0x0522D4774B82E3E6
Namespace
Returns
Volume
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local volume = Citizen.InvokeNative(0x0522D4774B82E3E6, -- CREATE_VOLUME_CYLINDER
  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
  Citizen.ResultAsInteger()
)
print(volume)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const volume = Citizen.invokeNative("0x0522D4774B82E3E6", // CREATE_VOLUME_CYLINDER
  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
  Citizen.resultAsInteger()
);
console.log(volume)
C#
int volume = Function.Call<int>((Hash)0x0522D4774B82E3E6, // CREATE_VOLUME_CYLINDER
  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.