SET_PLAYER_CULLING_RADIUS
Sets the culling radius for the specified player.
Signature
void SET_PLAYER_CULLING_RADIUS(char* playerSrc, float radius);Parameters
| Name | Type | Description |
|---|---|---|
playerSrc | char* | The player to set the culling radius for. |
radius | float | The radius. |
Returns void
Description
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
SetPlayerCullingRadius(playerSrc, radius)
-- always works, by hash
Citizen.InvokeNative(0x8a2fbad4, playerSrc, radius)JavaScript and C#
SetPlayerCullingRadius(playerSrc, radius);
// by hash
Citizen.invokeNative('0x8a2fbad4', playerSrc, radius + 0.0000001);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.