The Lab
GRAPHICS native

SET_GRASS_CULL_SPHERE

returns int5 paramsbuild 1207

Creates a sphere in which grass is not rendered and returns its handle.

Signature

C
int SET_GRASS_CULL_SPHERE(float x, float y, float z, float p3, int p4); // 0x27219300C36A8D40 b1207

Parameters

#NameType
1xfloat
2yfloat
3zfloat
4p3float
5p4int

Facts

Facts about SET_GRASS_CULL_SPHERE
Name
SET_GRASS_CULL_SPHERE
Hash
0x27219300C36A8D40
Namespace
Returns
int
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x27219300C36A8D40, -- SET_GRASS_CULL_SPHERE
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0, -- float p3
  0, -- int p4
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x27219300C36A8D40", // SET_GRASS_CULL_SPHERE
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float p3
  0, // int p4
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x27219300C36A8D40, // SET_GRASS_CULL_SPHERE
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f, // float p3
  0 // int p4
);
All GRAPHICS natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.