Fix custom scoreboard icons

This commit is contained in:
fed
2022-11-10 21:47:09 +01:00
parent 7b686b3f66
commit 7a5798d247
2 changed files with 17 additions and 0 deletions

View File

@ -22,3 +22,14 @@ LUI.mp_hud.Scoreboard.DetermineIfSingleTeamGameType = function()
return Game.GetPlayerTeam() == Teams.free
end
local updateicon = LUI.FactionIcon.Update
LUI.FactionIcon.Update = function(element, icon, a3)
local scale = LUI.FactionIcon.BackgroundScale
if (game:isdefaultmaterial(icon .. "_soft")) then
LUI.FactionIcon.BackgroundScale = 0
end
updateicon(element, icon, a3)
LUI.FactionIcon.BackgroundScale = scale
end