grassbatchEnableFlatteningInSphere
GRASSBATCH_ENABLE_FLATTENING_IN_SPHERE0x6D955F6A9E0295B1The 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.
grassbatchEnableFlatteningInSphere(
x: number,
y: number,
z: number,
radius: number,
p4: number,
p5: number,
p6: number
): voidgrassbatchEnableFlatteningInSphere(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
x | float | number | number |
y | float | number | number |
z | float | number | number |
radius | float | number | number |
p4 | float | number | number |
p5 | float | number | number |
p6 | float | number | number |
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