RedM Natives

SET_PLAYER_CULLING_RADIUS

Sets the culling radius for the specified player.

Hash0x8A2FBAD4
Runtime nameSetPlayerCullingRadius
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SET_PLAYER_CULLING_RADIUS(char* playerSrc, float radius);

Parameters

NameTypeDescription
playerSrcchar*

The player to set the culling radius for.

radiusfloat

The radius.

Returns void

Description

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

Usage

Lua
SetPlayerCullingRadius(playerSrc, radius)

-- always works, by hash
Citizen.InvokeNative(0x8a2fbad4, playerSrc, radius)
JavaScript and C#
JavaScript
SetPlayerCullingRadius(playerSrc, radius);

// by hash
Citizen.invokeNative('0x8a2fbad4', playerSrc, radius + 0.0000001);
C#
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

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