tttdamagelogs
tttdamagelogs copied to clipboard
Forcing a role does not work with tttdamagelogs
Forcing / changing a role will not change the cached role in tttdamagelogs.
Change
... Damagelog:StrRole(v.role)
into
local tmp = player.GetBySteamID64(v.steamid64)
... Damagelog:StrRole(IsValid(tmp) and tmp:GetRole() or v.role)
Or change networking! Do not cache steamid64, but the player object instead