From ea37f41db16aedd7534f16581caaf350efa3e994 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Wed, 29 Jul 2026 14:35:44 -0500 Subject: [PATCH] Check r[3] instead of table.getn in rgbhex Replace table.getn(r) >= 3 with r[3] ~= nil in api/api.lua --- api/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api.lua b/api/api.lua index 740f1a03..6b38c820 100644 --- a/api/api.lua +++ b/api/api.lua @@ -1040,7 +1040,7 @@ function pfUI.api.rgbhex(r, g, b, a) if type(r) == "table" then if r.r then _r, _g, _b, _a = r.r, r.g, r.b, (r.a or 1) - elseif table.getn(r) >= 3 then + elseif r[3] ~= nil then _r, _g, _b, _a = r[1], r[2], r[3], (r[4] or 1) end elseif tonumber(r) then