RedM Natives

START_SHAPE_TEST_BOX

Hash0xFE466162C4401D18
Runtime nameStartShapeTestBox
NamespaceSHAPETEST
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xFE466162C4401D18

Signature

ScrHandle START_SHAPE_TEST_BOX(float posX, float posY, float posZ, float dimensionsX, float dimensionsY, float dimensionsZ, float rotX, float rotY, float rotZ, int rotationOrder, int flags, Entity entityToIgnore, int options);

Parameters

NameTypeDescription
posXfloat—
posYfloat—
posZfloat—
dimensionsXfloat—
dimensionsYfloat—
dimensionsZfloat—
rotXfloat—
rotYfloat—
rotZfloat—
rotationOrderint—
flagsint—
entityToIgnoreEntity—
optionsint—

Returns ScrHandle

Usage

Lua
local retval = StartShapeTestBox(posX, posY, posZ, dimensionsX, dimensionsY, dimensionsZ, rotX, rotY, rotZ, rotationOrder, flags, entityToIgnore, options)

-- always works, by hash
local retval = Citizen.InvokeNative(0xFE466162C4401D18, posX, posY, posZ, dimensionsX, dimensionsY, dimensionsZ, rotX, rotY, rotZ, rotationOrder, flags, entityToIgnore, options, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = StartShapeTestBox(posX, posY, posZ, dimensionsX, dimensionsY, dimensionsZ, rotX, rotY, rotZ, rotationOrder, flags, entityToIgnore, options);

// by hash
const retval = Citizen.invokeNative('0xFE466162C4401D18', posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001, dimensionsX + 0.0000001, dimensionsY + 0.0000001, dimensionsZ + 0.0000001, rotX + 0.0000001, rotY + 0.0000001, rotZ + 0.0000001, rotationOrder, flags, entityToIgnore, options, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xFE466162C4401D18, posX, posY, posZ, dimensionsX, dimensionsY, dimensionsZ, rotX, rotY, rotZ, rotationOrder, flags, entityToIgnore, options);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Enums and flags

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.