Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions client/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down