From 58abf24f8a29de9ad9e7ba12faeb0adb03002418 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Fri, 8 Sep 2023 17:49:37 +0500 Subject: [PATCH] accept any gamemode string --- beatrun/gamemodes/beatrun/gamemode/sv/ToggleGamemodes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beatrun/gamemodes/beatrun/gamemode/sv/ToggleGamemodes.lua b/beatrun/gamemodes/beatrun/gamemode/sv/ToggleGamemodes.lua index 57a6a85..a202024 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sv/ToggleGamemodes.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sv/ToggleGamemodes.lua @@ -3,7 +3,7 @@ util.AddNetworkString("Beatrun_ToggleGamemode") net.Receive("Beatrun_ToggleGamemode", function(_, ply) if not ply:IsAdmin() then return end - local gm = net.ReadString() + local gm = string.lower(net.ReadString()) if gm == "datatheft" then if not GetGlobalBool("GM_DATATHEFT") then