GraphicsClient

grassbatchEnableFlatteningInSphere

GRASSBATCH_ENABLE_FLATTENING_IN_SPHERE0x6D955F6A9E0295B1

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

SignatureJavaScript
grassbatchEnableFlatteningInSphere(
  x: number,
  y: number,
  z: number,
  radius: number,
  p4: number,
  p5: number,
  p6: number
): void
SignatureLua
grassbatchEnableFlatteningInSphere(
  x: number,
  y: number,
  z: number,
  radius: number,
  p4: number,
  p5: number,
  p6: number
)

Usage

JavaScript
grassbatchEnableFlatteningInSphere(x, y, z, radius, p4, p5, p6);
Lua
grassbatchEnableFlatteningInSphere(x, y, z, radius, p4, p5, p6)

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
grassbatchEnableFlatteningInSphere(pos, radius, p4, p5, p6);
Lua · with vectors
grassbatchEnableFlatteningInSphere(pos, radius, p4, p5, p6)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
radiusfloatnumbernumber
p4floatnumbernumber
p5floatnumbernumber
p6floatnumbernumber

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.

Wraps grassbatchEnableFlatteningExtInSphere with FLT_MAX as p7

Reference

Namespace
Graphics GRAPHICS
In the game
void GRASSBATCH_ENABLE_FLATTENING_IN_SPHERE(float x, float y, float z, float radius, float p4, float p5, float p6)
Hash
0x6D955F6A9E0295B1
Formerly
_GRASS_LOD_SHRINK_SCRIPT_AREAS

Open in the interactive natives reference