Код взят от сюда https://www.blast.hk/threads/157906/
require 'lib.moonloader'
local active = false
function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('gate',function()
active = not active
sampAddChatMessage('[gate]: ' .. (active and...