[ERROR] addons/killerinfo/lua/autorun/server/sv_killmsg.lua:14: attempt to call method 'GetRoleString' (a nil value)
1. fn - addons/killerinfo/lua/autorun/server/sv_killmsg.lua:14
2. unknown - addons/ulib/lua/ulib/shared/hook.lua:109
hook.Add("DoPlayerDeath", "KillMessage", function(vic, atk, inf)
net.Start("killmessages")
net.WriteEntity(atk)
net.WriteEntity(vic)
if atk:IsPlayer() and atk:GetRoleString() == "traitor" or "innocent" or "detective" and vic:GetRoleString() == "traitor" or "innocent" or "detective" then
net.WriteString(tostring(inf))
net.WriteString(inf:GetDamageType())
net.WriteString(atk:GetRoleString())
net.WriteString(vic:GetRoleString())
net.WriteString(vic:LastHitGroup())
else
net.WriteString(tostring(inf))
net.WriteString(inf:GetDamageType())
net.WriteString("world")
net.WriteString(vic:GetRoleString())
net.WriteString(vic:LastHitGroup())
end
end)
so why is GetRoleString nil now if i die on falldamage or the nether in minecraft_b5?