require 'lib.moonloader'
local e = require 'lib.samp.events'
local status = false
function main()
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand('rp', function() status = not status printStringNow(status and 'RPChat ~g~ON' or 'RPChat ~r~OFF', 1000) end)...