The Lab
VEHICLE native

_0x331CBD247FC5DAA8

returns int6 paramsbuild 1207

This VEHICLE native has no community name yet, so it is known by its hash 0x331CBD247FC5DAA8. It takes 6 parameters (configHash as Hash, x as float, y as float, z as float, direction as BOOL, p5 as BOOL) and returns an int.

Signature

C
int _0x331CBD247FC5DAA8(Hash configHash, float x, float y, float z, BOOL direction, BOOL p5); // 0x331CBD247FC5DAA8 b1207

Parameters

#NameType
1configHashHash
2xfloat
3yfloat
4zfloat
5directionBOOL
6p5BOOL

Facts

Facts about _0x331CBD247FC5DAA8
Name
_0x331CBD247FC5DAA8
Hash
0x331CBD247FC5DAA8
Namespace
Returns
int
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0x331CBD247FC5DAA8, -- _0x331CBD247FC5DAA8
  GetHashKey("name"), -- Hash configHash
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  false, -- BOOL direction
  false, -- BOOL p5
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x331CBD247FC5DAA8", // _0x331CBD247FC5DAA8
  GetHashKey("name"), // Hash configHash
  0.0, // float x
  0.0, // float y
  0.0, // float z
  false, // BOOL direction
  false, // BOOL p5
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x331CBD247FC5DAA8, // _0x331CBD247FC5DAA8
  (uint)API.GetHashKey("name"), // Hash configHash
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  false, // BOOL direction
  false // BOOL p5
);
All VEHICLE natives

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