# GRAPHICS::SET_GRASS_CULL_SPHERE

- **Hash:** `0x27219300C36A8D40`
- **Namespace:** GRAPHICS
- **Runtime name (Lua/JS):** `SetGrassCullSphere`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/GRAPHICS/SET_GRASS_CULL_SPHERE

## Signature

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

## Parameters

- `x` (`float`)
- `y` (`float`)
- `z` (`float`)
- `p3` (`float`)
- `p4` (`int`)

## Returns

`int`

## Description

Returns handle to be used with REMOVE_GRASS_CULL_SPHERE

## Usage

### Lua

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

-- always available, by hash
local retval = Citizen.InvokeNative(0x27219300C36A8D40, x, y, z, p3, p4, Citizen.ResultAsInteger())
```

### JavaScript

```js
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#

```csharp
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

- [GRAPHICS::REMOVE_GRASS_CULL_SPHERE](https://natives.borderlinerp.com/natives/GRAPHICS/REMOVE_GRASS_CULL_SPHERE.md)

*Sources: alloc8or RDR3 NativeDB.*
