GraphicsClient

grassbatchEnableFlatteningExtInSphere

GRASSBATCH_ENABLE_FLATTENING_EXT_IN_SPHERE0xAAE9BE70EC7C69AB

The GTA V native GRASSBATCH_ENABLE_FLATTENING_EXT_IN_SPHERE of the GRAPHICS namespace, as LS:MP client scripts call it: the global function grassbatchEnableFlatteningExtInSphere, in JavaScript and in Lua.

SignatureJavaScript
grassbatchEnableFlatteningExtInSphere(
  x: number,
  y: number,
  z: number,
  p3: any,
  p4: number,
  p5: number,
  p6: number,
  scale: number
): void
SignatureLua
grassbatchEnableFlatteningExtInSphere(
  x: number,
  y: number,
  z: number,
  p3: any,
  p4: number,
  p5: number,
  p6: number,
  scale: number
)

Usage

JavaScript
grassbatchEnableFlatteningExtInSphere(x, y, z, p3, p4, p5, p6, scale);
Lua
grassbatchEnableFlatteningExtInSphere(x, y, z, p3, p4, p5, p6, scale)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
grassbatchEnableFlatteningExtInSphere(pos, p3, p4, p5, p6, scale);
Lua · with vectors
grassbatchEnableFlatteningExtInSphere(pos, p3, p4, p5, p6, scale)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
p3Anyanyany
p4floatnumbernumber
p5floatnumbernumber
p6floatnumbernumber
scalefloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Graphics GRAPHICS
In the game
void GRASSBATCH_ENABLE_FLATTENING_EXT_IN_SPHERE(float x, float y, float z, Any p3, float p4, float p5, float p6, float scale)
Hash
0xAAE9BE70EC7C69AB
Introduced
Game build 1290 legacy numbering

Open in the interactive natives reference