Fix issue with chat command not working properly

This commit is contained in:
Linventif 2024-01-17 03:44:18 +01:00
parent 0be3a8bd55
commit b2962a06a5

View File

@ -81,6 +81,7 @@ hook.Add("OnPlayerChat", "gmInteChatCommands", function(ply, text, teamChat, isD
if (ply != LocalPlayer()) then return end if (ply != LocalPlayer()) then return end
text = string.lower(text) text = string.lower(text)
text = string.sub(text, 2) text = string.sub(text, 2)
if (text == "screen") then if (text == "screen") then
gmInte.SendNet(4) gmInte.SendNet(4)
end end