Skip to content

Commit

Permalink
feat: mapvote system
Browse files Browse the repository at this point in the history
  • Loading branch information
dotCore-off authored Nov 21, 2022
1 parent d9d3ecc commit 2d429c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gamemode/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
timer.Remove("CheckHookTimes")

0 comments on commit 2d429c5

Please sign in to comment.