Native referenceFiveM

GET_SHAPE_TEST_RESULT

0x3D87450E15D98694 SHAPETEST
FUNCTION SIGNATURE
int GET_SHAPE_TEST_RESULT(int shapeTestHandle, BOOL* hit, Vector3* endCoords, Vector3* surfaceNormal, Entity* entityHit);
Property Value
Native Name GET_SHAPE_TEST_RESULT
Hash 0x3D87450E15D98694
Return Type int
Parameters shapeTestHandle (int), hit (BOOL*), endCoords (Vector3*), surfaceNormal (Vector3*), entityHit (Entity*)

Description: Returns the result of a shape test.

When used with an asynchronous shape test, this native should be looped until returning 0 or 2, after which the handle is invalidated.

Unless the return value is 2, the other return values are undefined.

Parameters

  • shapeTestHandle (int) — A shape test handle.
  • hit (BOOL*) — Whether or not the shape test hit any collisions.
  • endCoords (Vector3*) — The resulting coordinates where the shape test hit a collision.
  • surfaceNormal (Vector3*) — The surface normal of the hit position.
  • entityHit (Entity*) — Any dynamic entity hit by the shape test.
Back to SHAPETEST