Please add
`if SERVER then
-- modify roles table of rolesetup addon
hook.Add("TTTAModifyRolesTable", "ModifyRoleInfToInno", function(rolesTable)
local infected = rolesTable[ROLE_INFECTED]
if not infected then return end
rolesTable[ROLE_INNOCENT] = rolesTable[ROLE_INNOCENT] + infected
rolesTable[ROLE_INFECTED] = 0
end)
end`
that you don't see if there is an infected if you are using the rolesetup addon
Please add `if SERVER then -- modify roles table of rolesetup addon hook.Add("TTTAModifyRolesTable", "ModifyRoleInfToInno", function(rolesTable) local infected = rolesTable[ROLE_INFECTED]
end` that you don't see if there is an infected if you are using the rolesetup addon