mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(client/zones): force debug colour values to be integers
for some reason scripts not using oal treat any float above 0 as 255 when used as a colour value
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 { 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
|
self.debugColour = bool and { r = glm.tointeger(colour?.r or self.debugColour?.r or 255), g = glm.tointeger(colour?.g or self.debugColour?.g or 42), b = glm.tointeger(colour?.b or self.debugColour?.b or 24), a = glm.tointeger(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