diff --git a/client/utils.lua b/client/utils.lua index 6d17993..6a98297 100644 --- a/client/utils.lua +++ b/client/utils.lua @@ -108,6 +108,10 @@ function utils.drawZoneSprites(dict, texture) local spriteColour = zone.colour or colour if zone.drawSprite ~= false then + -- This is a stupid dist check because of weird sprite popups + local dist = #(GetEntityCoords(cache.ped) - zone.coords.xyz) + if dist >= zone.distance or 2.5 then return end + SetDrawOrigin(zone.coords.x, zone.coords.y, zone.coords.z) DrawSprite(dict, texture, 0, 0, width, height, 0, spriteColour.r, spriteColour.g, spriteColour.b, spriteColour.a)