procgrassEnableCullsphere
PROCGRASS_ENABLE_CULLSPHERE0xAE51BC858F32BA66The GTA V native PROCGRASS_ENABLE_CULLSPHERE of the GRAPHICS namespace, as LS:MP client scripts call it: the global function procgrassEnableCullsphere, in JavaScript and in Lua.
procgrassEnableCullsphere(
handle: number,
x: number,
y: number,
z: number,
scale: number
): voidprocgrassEnableCullsphere(
handle: integer,
x: number,
y: number,
z: number,
scale: number
)Usage
JavaScript
procgrassEnableCullsphere(handle, x, y, z, scale);Lua
procgrassEnableCullsphere(handle, x, y, z, 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
procgrassEnableCullsphere(handle, pos, scale);Lua · with vectors
procgrassEnableCullsphere(handle, pos, scale)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
handle | int | number | integer |
x | float | number | number |
y | float | number | number |
z | float | number | number |
scale | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
On LS:MP
ℹ
Checked by LS:MP
handle must be between 0 and 7; x, y, z, scale must be finite numbers. Otherwise the call is ignored: nothing reaches the game, and no error is raised.
Reference
- Namespace
- Graphics GRAPHICS
- In the game
void PROCGRASS_ENABLE_CULLSPHERE(int handle, float x, float y, float z, float scale)- Hash
0xAE51BC858F32BA66