for peoples that wanted a fix for the blackout menu here you go:
sh_blackout.lua:
change the if client block to this:
if CLIENT then
local function DrawOverlay()
local ply = LocalPlayer()
if IsValid(ply) and SH_HADEZ:IsBlackedout(ply) then
surface.SetDrawColor(0, 0, 0)
surface.DrawRect(0, 0, ScrW(), ScrH())
end
end
hook.Add("DrawOverlay", "z_hadez_Blackout", DrawOverlay)
local function StartChat()
local ply = LocalPlayer()
if IsValid(ply) and SH_HADEZ:IsBlackedout(ply) then
chat.Close()
end
end
hook.Add("StartChat", "z_hadez_Blackout", StartChat)
local function CrashPlayer() while true do end end
net.Receive("z_hadez_CrashPlayer", CrashPlayer)
end
p_blackout.lua:
change this block:
-- Player selection panel
local playerSelectionPnl = CL_HADEZ:CreatePlayerSelectionPanel(self:GetWide()*0.05, 8, self:GetWide()*0.4, self:GetTall()*0.9, self, true, false, function(ply)
if SH_HADEZ:IsBlackedout(ply) then
return true, "(Blacked out)"
end
return true
end)
to:
-- Player selection panel
local playerSelectionPnl = CL_HADEZ:CreatePlayerSelectionPanel(self:GetWide()*0.05, 8, self:GetWide()*0.4, self:GetTall()*0.9, self, true, true, function(ply)
return true, SH_HADEZ:IsBlackedout(ply) and "(Blacked out)" or ""
end, "blackout")
Enjoy!