From 7a4745c0da7be6a9f5de3c8ff7638667601ec0b6 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Tue, 10 May 2022 15:29:07 +1000 Subject: [PATCH] chore(zones): adjust debug rgba --- fxmanifest.lua | 2 +- imports/zones/client.lua | 38 +++++++++++++++++++------------------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/fxmanifest.lua b/fxmanifest.lua index df8ba486e..5ec1253c6 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -23,7 +23,7 @@ game 'gta5' --[[ Resource Information ]]-- name 'ox_lib' author 'Linden' -version '2.2.1' +version '2.3.0' repository 'https://github.com/overextended/ox_lib' description 'A library of shared functions to utilise in other resources.' diff --git a/imports/zones/client.lua b/imports/zones/client.lua index f17df7d5d..4cd2edd45 100644 --- a/imports/zones/client.lua +++ b/imports/zones/client.lua @@ -266,15 +266,15 @@ local function debugPoly(self) if self.triangles then for i = 1, #self.triangles do local triangle = self.triangles[i] - DrawPoly(triangle[1], triangle[2], triangle[3], 255, 0, 0, 50) - DrawPoly(triangle[2], triangle[1], triangle[3], 255, 0, 0, 50) + DrawPoly(triangle[1], triangle[2], triangle[3], 255, 42, 24, 100) + DrawPoly(triangle[2], triangle[1], triangle[3], 255, 42, 24, 100) end else local polygon = self.polygon for i = 2, #self.polygon - 1 do - DrawPoly(polygon[1], polygon[i], polygon[i + 1], 255, 0, 0, 50) - DrawPoly(polygon[i], polygon[1], polygon[i + 1], 255, 0, 0, 50) + DrawPoly(polygon[1], polygon[i], polygon[i + 1], 255, 42, 24, 100) + DrawPoly(polygon[i], polygon[1], polygon[i + 1], 255, 42, 24, 100) end end end @@ -282,24 +282,24 @@ end local DrawLine = DrawLine local function debugBox(self) - DrawLine(self.vertices[1], self.vertices[2], 255, 0, 0, 150) - DrawLine(self.vertices[2], self.vertices[3], 255, 0, 0, 150) - DrawLine(self.vertices[3], self.vertices[4], 255, 0, 0, 150) - DrawLine(self.vertices[4], self.vertices[1], 255, 0, 0, 150) - - DrawLine(self.vertices[5], self.vertices[6], 255, 0, 0, 150) - DrawLine(self.vertices[6], self.vertices[7], 255, 0, 0, 150) - DrawLine(self.vertices[7], self.vertices[8], 255, 0, 0, 150) - DrawLine(self.vertices[8], self.vertices[5], 255, 0, 0, 150) - - DrawLine(self.vertices[1], self.vertices[7], 255, 0, 0, 150) - DrawLine(self.vertices[2], self.vertices[8], 255, 0, 0, 150) - DrawLine(self.vertices[3], self.vertices[5], 255, 0, 0, 150) - DrawLine(self.vertices[4], self.vertices[6], 255, 0, 0, 150) + DrawLine(self.vertices[1], self.vertices[2], 255, 42, 24, 225) + DrawLine(self.vertices[2], self.vertices[3], 255, 42, 24, 225) + DrawLine(self.vertices[3], self.vertices[4], 255, 42, 24, 225) + DrawLine(self.vertices[4], self.vertices[1], 255, 42, 24, 225) + + DrawLine(self.vertices[5], self.vertices[6], 255, 42, 24, 225) + DrawLine(self.vertices[6], self.vertices[7], 255, 42, 24, 225) + DrawLine(self.vertices[7], self.vertices[8], 255, 42, 24, 225) + DrawLine(self.vertices[8], self.vertices[5], 255, 42, 24, 225) + + DrawLine(self.vertices[1], self.vertices[7], 255, 42, 24, 225) + DrawLine(self.vertices[2], self.vertices[8], 255, 42, 24, 225) + DrawLine(self.vertices[3], self.vertices[5], 255, 42, 24, 225) + DrawLine(self.vertices[4], self.vertices[6], 255, 42, 24, 225) end local function debugSphere(self) - DrawMarker(28, self.coords.x, self.coords.y, self.coords.z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, self.radius, self.radius, self.radius, 255, 0, 0, 50, false, false, false, true, false, false, false) + DrawMarker(28, self.coords.x, self.coords.y, self.coords.z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, self.radius, self.radius, self.radius, 255, 42, 24, 100, false, false, false, true, false, false, false) end local glm_polygon_contains = glm.polygon.contains