The Lab
SHAPETEST native

START_SHAPE_TEST_BOX

returns ScrHandle13 paramsbuild 1207

Starts an asynchronous shape test with a rotated box of size dimensionsX/Y/Z centered on (posX, posY, posZ). Returns a handle to read with GET_SHAPE_TEST_RESULT.

Signature

C
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); // 0xFE466162C4401D18 b1207

Parameters

#NameType
1posXfloat
2posYfloat
3posZfloat
4dimensionsXfloat
5dimensionsYfloat
6dimensionsZfloat
7rotXfloat
8rotYfloat
9rotZfloat
10rotationOrderint
11flagsint
12entityToIgnoreEntity
13optionsint

Facts

Facts about START_SHAPE_TEST_BOX
Name
START_SHAPE_TEST_BOX
Hash
0xFE466162C4401D18
Namespace
Returns
ScrHandle
Game build
1207

Examples

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

Lua
local scrHandle = Citizen.InvokeNative(0xFE466162C4401D18, -- START_SHAPE_TEST_BOX
  0.0, -- float posX
  0.0, -- float posY
  0.0, -- float posZ
  0.0, -- float dimensionsX
  0.0, -- float dimensionsY
  0.0, -- float dimensionsZ
  0.0, -- float rotX
  0.0, -- float rotY
  0.0, -- float rotZ
  0, -- int rotationOrder
  0, -- int flags
  PlayerPedId(), -- Entity entityToIgnore
  0, -- int options
  Citizen.ResultAsInteger()
)
print(scrHandle)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const scrHandle = Citizen.invokeNative("0xFE466162C4401D18", // START_SHAPE_TEST_BOX
  0.0, // float posX
  0.0, // float posY
  0.0, // float posZ
  0.0, // float dimensionsX
  0.0, // float dimensionsY
  0.0, // float dimensionsZ
  0.0, // float rotX
  0.0, // float rotY
  0.0, // float rotZ
  0, // int rotationOrder
  0, // int flags
  PlayerPedId(), // Entity entityToIgnore
  0, // int options
  Citizen.resultAsInteger()
);
console.log(scrHandle)
C#
int scrHandle = Function.Call<int>((Hash)0xFE466162C4401D18, // START_SHAPE_TEST_BOX
  0.0f, // float posX
  0.0f, // float posY
  0.0f, // float posZ
  0.0f, // float dimensionsX
  0.0f, // float dimensionsY
  0.0f, // float dimensionsZ
  0.0f, // float rotX
  0.0f, // float rotY
  0.0f, // float rotZ
  0, // int rotationOrder
  0, // int flags
  API.PlayerPedId(), // Entity entityToIgnore
  0 // int options
);
All SHAPETEST natives

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