terraingridActivate
TERRAINGRID_ACTIVATE0xA356990E161C9E65The GTA V native TERRAINGRID_ACTIVATE of the GRAPHICS namespace, as LS:MP client scripts call it: the global function terraingridActivate, in JavaScript and in Lua.
terraingridActivate(toggle: boolean): voidterraingridActivate(toggle: boolean)Usage
JavaScript
terraingridActivate(toggle);Lua
terraingridActivate(toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
toggle | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
This native enables/disables the gold putting grid display.
This requires these two natives to be called as well to configure the grid: terraingridSetParams and terraingridSetColours.
Reference
- Namespace
- Graphics GRAPHICS
- In the game
void TERRAINGRID_ACTIVATE(BOOL toggle)- Hash
0xA356990E161C9E65