mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(client/zones): store debug colours as a table
This commit is contained in:
@@ -265,7 +265,7 @@ local function setDebug(self, bool, colour)
|
|||||||
insideZones[self.id] = nil
|
insideZones[self.id] = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
self.debugColour = bool and vec4(colour?.r or self.debugColour?.r or 255, colour?.g or self.debugColour?.g or 42, colour?.b or self.debugColour?.b or 24, colour?.a or self.debugColour?.a or 100) or nil
|
self.debugColour = bool and { r = colour?.r or self.debugColour?.r or 255, g = colour?.g or self.debugColour?.g or 42, b = colour?.b or self.debugColour?.b or 24, a = colour?.a or self.debugColour?.a or 100 } or nil
|
||||||
|
|
||||||
if not bool and self.debug then
|
if not bool and self.debug then
|
||||||
self.triangles = nil
|
self.triangles = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user