GetShapeTestResult — FiveM Natives
0x3D87450E15D98694 · SHAPETEST · all
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
| Name | Type | Description |
|---|---|---|
| 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. |
Returns
int