GraphicsClientChecked by LS:MP

procgrassEnableCullsphere

PROCGRASS_ENABLE_CULLSPHERE0xAE51BC858F32BA66

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

SignatureJavaScript
procgrassEnableCullsphere(
  handle: number,
  x: number,
  y: number,
  z: number,
  scale: number
): void
SignatureLua
procgrassEnableCullsphere(
  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

ParameterTypeJavaScriptLua
handleintnumberinteger
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
scalefloatnumbernumber

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

Open in the interactive natives reference