GraphicsClient

terraingridActivate

TERRAINGRID_ACTIVATE0xA356990E161C9E65

The 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.

SignatureJavaScript
terraingridActivate(toggle: boolean): void
SignatureLua
terraingridActivate(toggle: boolean)

Usage

JavaScript
terraingridActivate(toggle);
Lua
terraingridActivate(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

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

Open in the interactive natives reference