# CFX::SET_PLAYER_CULLING_RADIUS

- **Hash:** `0x8A2FBAD4`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `SetPlayerCullingRadius`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/SET_PLAYER_CULLING_RADIUS

## Signature

```c
void SET_PLAYER_CULLING_RADIUS(char* playerSrc, float radius);
```

## Parameters

- `playerSrc` (`char*`) — The player to set the culling radius for.
- `radius` (`float`) — The radius.

## Returns

`void`

## Description

*Source: Cfx.re native reference*

Sets the culling radius for the specified player.
Set to `0.0` to reset.

**WARNING**: Culling natives are deprecated and have known, [unfixable issues](https://forum.cfx.re/t/issue-with-culling-radius-and-server-side-entities/4900677/4)

## Usage

### Lua

```lua
SetPlayerCullingRadius(playerSrc, radius)

-- always available, by hash
Citizen.InvokeNative(0x8a2fbad4, playerSrc, radius)
```

### JavaScript

```js
SetPlayerCullingRadius(playerSrc, radius);

// by hash
Citizen.invokeNative('0x8a2fbad4', playerSrc, radius + 0.0000001);
```

### C#

```csharp
Function.Call((Hash)0x8a2fbad4, playerSrc, radius);
```

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

*Sources: Cfx.re native reference.*
