RedM Natives

SET_GRASS_CULL_SPHERE

Returns handle to be used with REMOVE_GRASS_CULL_SPHERE

Hash0x27219300C36A8D40
Runtime nameSetGrassCullSphere
NamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xBE197EAA669238F4

Signature

int SET_GRASS_CULL_SPHERE(float x, float y, float z, float p3, int p4);

Parameters

NameTypeDescription
xfloat—
yfloat—
zfloat—
p3float—
p4int—

Returns int

Description

Returns handle to be used with REMOVE_GRASS_CULL_SPHERE

Usage

Lua
local retval = SetGrassCullSphere(x, y, z, p3, p4)

-- always works, by hash
local retval = Citizen.InvokeNative(0x27219300C36A8D40, x, y, z, p3, p4, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = SetGrassCullSphere(x, y, z, p3, p4);

// by hash
const retval = Citizen.invokeNative('0x27219300C36A8D40', x + 0.0000001, y + 0.0000001, z + 0.0000001, p3 + 0.0000001, p4, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x27219300C36A8D40, x, y, z, p3, p4);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.