TerraingridSetParams — FiveM Natives
0x1C4FC5752BCD8E48 · GRAPHICS · all
This native is used along with these two natives: TERRAINGRID_ACTIVATE and TERRAINGRID_SET_COLOURS. This native configures the location, size, rotation, normal height, and the difference ratio between min, normal and max. All those natives combined they will output something like this: https://i.imgur.com/TC6cku6.png
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | Grid center x coord. |
| y | float | Grid center y coord. |
| z | float | Grid center z coord. |
| p3 | float | Not sure, but seems to be the amount of lines top/bottom there are in the grid. -1.0 works best. |
| rotation | float | Grid rotation (keep between 0.0 and 1.0). |
| p5 | float | Offset top/bottom (? not sure about this one, seems weird). |
| width | float | Grid width (usually 15.0). |
| height | float | Grid height (usually 15.0). |
| p8 | float | Not sure, but seems to be the amount of lines left/right there are in the grid. -1.0 works best. |
| scale | float | Zoom / scale (higher values = smaller (more) squares) (lower values = bigger (less) squares). |
| glowIntensity | float | glow intensity / opacity (40.0 is fine for daylight, 15.0 is fine for night time). |
| normalHeight | float | The z coord for 'normal' height (white grid lines level). |