h1-mod/data/ui_scripts/patches/disable_useless_things.lua
ジョク アーウェント 272094f76d Disable useless things (#153)
2022-07-03 11:19:57 -05:00

18 lines
361 B
Lua

-- Disable CP
Engine.SetDvarInt("ui_enable_cp", 0)
-- Disable CP store
Engine.SetDvarInt("ui_show_store", 0)
-- Remove CoD account button
if Engine.IsMultiplayer() then
LUI.removemenubutton("pc_controls", 4)
end
-- Remove social button
LUI.MenuBuilder.m_definitions["online_friends_widget"] = function()
return {
type = "UIElement"
}
end