START_SHAPE_TEST_BOX
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
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 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | posX | float |
| 2 | posY | float |
| 3 | posZ | float |
| 4 | dimensionsX | float |
| 5 | dimensionsY | float |
| 6 | dimensionsZ | float |
| 7 | rotX | float |
| 8 | rotY | float |
| 9 | rotZ | float |
| 10 | rotationOrder | int |
| 11 | flags | int |
| 12 | entityToIgnore | Entity |
| 13 | options | int |
Facts
| 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.
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)// 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)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
);Related SHAPETEST natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.