GetShapeTestResult — RedM Natives
0xEDE8AC7C5108FB1D · SHAPETEST · all
`` Returns the result of a shape test: 0 if the handle is invalid, 1 if the shape test is still pending, or 2 if the shape test has completed, and the handle should be invalidated. When used with an asynchronous shape test, this native should be looped until returning 0 or 2, after which the handle is invalidated. enum eShapeTestStatus { SHAPETEST_STATUS_NONEXISTENT, SHAPETEST_STATUS_RESULTS_NOTREADY, SHAPETEST_STATUS_RESULTS_READY }; ``
Parameters
| Name | Type |
|---|---|
| shapeTestHandle | ScrHandle |
| hit | BOOL* |
| endCoords | Vector3* |
| surfaceNormal | Vector3* |
| entityHit | Entity* |
Returns
int