SET_GRASS_CULL_SPHERE
Creates a sphere in which grass is not rendered and returns its handle.
Signature
int SET_GRASS_CULL_SPHERE(float x, float y, float z, float p3, int p4); // 0x27219300C36A8D40 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
| 4 | p3 | float |
| 5 | p4 | int |
Facts
| 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.
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)// 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)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
);Related GRAPHICS natives
- REMOVE_GRASS_CULL_SPHERE
- SET_ARTIFICIAL_LIGHTS_STATE
- SET_CHECKPOINT_RGBA
- SET_CHECKPOINT_RGBA2
- SET_DISABLE_PETROL_DECALS_IGNITING_THIS_FRAME
- SET_HIDOF_OVERRIDE
- SET_PARTICLE_FX_AMBIENT_COLOUR
- SET_PARTICLE_FX_BULLET_IMPACT_LODRANGE_SCALE
- SET_PARTICLE_FX_BULLET_IMPACT_SCALE
- SET_PARTICLE_FX_FOOT_LODRANGE_SCALE
- SET_PARTICLE_FX_LOOPED_ALPHA
- SET_PARTICLE_FX_LOOPED_COLOUR
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.