So, I'm remaking one of my gamemodes, and I'm starting from scratch redoing everything. I've now run into an issue with setting teams.
-- Create Teams From Database
function CreateTeams()
local CreateTeamInfoAll = sql.Query( "SELECT * FROM apple_tdm_teamcreation19" )
if CreateTeamInfoAll == nil then return end
for k, v in pairs( CreateTeamInfoAll ) do
team.SetUp(tonumber(v['ID']), tostring(v['Name']), Color(tonumber(v['CRed']),tonumber(v['CGreen']),tonumber(v['CBlue']),255), true)
util.PrecacheModel( tostring(v['Models']) )
end
PrintTable(team.GetAllTeams( ))
end
Basically in there, it grabs the teams from the database, and turns it into teams. Well that works all fine and well, but when I try to set team to one of the IDs, it works fine which you're most likely thinking well then what's the issue? Well the issue here is that the team doesn't really "set" or something, it shows it set the team, I made a command to check what team, and name of team I am on, and that works, but it's not setting colour, or name of team IG (sui_scoreboard or chattags addon), but in console its showing I'm in that team...
Any suggestions?