START_SHAPE_TEST_BOX
Hash
0xFE466162C4401D18Runtime name
StartShapeTestBoxNamespaceSHAPETEST
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xFE466162C4401D18Signature
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
| Name | Type | Description |
|---|---|---|
posX | float | — |
posY | float | — |
posZ | float | — |
dimensionsX | float | — |
dimensionsY | float | — |
dimensionsZ | float | — |
rotX | float | — |
rotY | float | — |
rotZ | float | — |
rotationOrder | int | — |
flags | int | — |
entityToIgnore | Entity | — |
options | int | — |
Returns ScrHandle
Usage
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#
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());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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Enums and flags
- eEulerRotationOrder 6 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.