[solved] Culling natives not working properly

Hey!

  1. Client: FiveM Canary (ver. 5056)
    Server Build: 5022 (Windows)
    Game Build: 2372

  2. I’ve been trying to do some magic with culling natives I found on docs
    SetPlayerCullingRadius - Natives @ Cfx.re Docs + SetEntityDistanceCullingRadius - Natives @ Cfx.re Docs (both seem to have the same issue when used on player)

  3. Overriding culling distance seems to work for everyone but player that has been on the location first.
    Got 2 poorly recorded videos that might help you getting a better image of the ?issue?
    (onesync culling 1 and onesync culling 2)

  4. Here’s the code snippet I’ve used:

SetPlayerCullingRadius(2, 5.0) -- param1: source, param2: testing radius

It’s really simple, as there isn’t much information about this, so I don’t know whether I’m using them right.

Some repro resource I’ve tested too and the issue persists. (PolyZone resource needed) → this resource just switches your culling distance when you enter defined poly
culling.rar (1.1 KB)

PS: Saw some talk about this native on cfx.re discord, but the issue didn’t seem to be there. Bubble said that using this is not recommended, but I think that being able to do such thing would be really apprecated.

Thanks for your time!

This player is owning the grid

Why do you ‘think’ such, even - what are you trying to accomplish here?

Yeah well, missed this when I was looking into source. Thanks for pointing that out

1 Like