--- @return table | nil # A table containing gang information (name, label, grade) or nil if no gang is detected or integration is not available. function GetCustomGang() if Cfg.Gang == 'none' then return nil end if Cfg.Gang == 'rcore_gangs' then local ok, gang = pcall(function() return exports['rcore_gangs']:GetPlayerGang() end) if not ok or type(gang) ~= 'table' then return nil end return { name = gang.name:lower(), label = gang.name, grade = tonumber(gang.rank) } elseif Cfg.Gang == 'av_gangs' then local ok, gang = pcall(function() return exports['av_gangs']:getGang() end) if not ok or type(gang) ~= 'table' then return nil end return { name = gang.name, label = gang.label, grade = tonumber(gang.level) } elseif Cfg.Gang == 'other' then -- Add custom gang integration here end return nil end