GetGroundZFor3dCoord — FiveM Natives
0xC906A7DAB05C8D2B · MISC · all
This native gets the ground level (ground elevation) and returns the Z coordinate that represents it. Note: This native can only calculate the elevation when the coordinates are within the render distance of the client. `` NativeDB Added Parameter 6: BOOL p5 ``
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | Position on the X-axis to get ground elevation. |
| y | float | Position on the Y-axis to get ground elevation. |
| z | float | Position on the Z-axis to get ground elevation. |
| groundZ | float* | |
| includeWater | BOOL | Determines if the top water level at the specified position should be considered the ground elevation. (It would only matter if the specified position is located above or under the water) |
Returns
BOOL