accept any gamemode string

This commit is contained in:
Jonny_Bro (Nikita) 2023-09-08 17:49:37 +05:00
parent cd6452c1ec
commit 58abf24f8a

View file

@ -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