diff --git a/gamemode/init.lua b/gamemode/init.lua index bd61994..2710935 100644 --- a/gamemode/init.lua +++ b/gamemode/init.lua @@ -32,6 +32,9 @@ elseif (PB.Config.SlidingEnabled) then AddCSLuaFile("sh_sliding.lua") elseif (PB.Config.EnableHelpMenu) then resource.AddWorkshop("2551039439") +elseif (PB.Config.MapvoteEnabled) then + include("librairies/sh_mapvote.lua") + AddCSLuaFile("librairies/sh_mapvote.lua") end // Localize stuff we'll use or use often @@ -417,4 +420,4 @@ resource.AddWorkshop(table.KeyFromValue(PB.Config.AvailableMaps, game.GetMap())) // A few GMOD related optimizations hook.Remove("PlayerTick", "TickWidgets") widgets.PlayerTick = function() end -timer.Remove("CheckHookTimes") \ No newline at end of file +timer.Remove("CheckHookTimes")