GetShapeTestResultIncludingMaterial — FiveM Natives
0x4301E10C · CFX · client
Returns the result of a shape test, also returning the material of any touched surface. 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. |
| materialHash | Hash* | hash of the hit material or surface type, see materialFX.dat |
| entityHit | Entity* | Any dynamic entity hit by the shape test. |
Returns
int