и /invite заменит на /inviteite
local sampev = require('lib.samp.events')
local cmds = {
['inv'] = 'invite',
['gr'] = 'giverank',
}
function sampev.onSendCommand(text)
local cmd, params = text:match('^/(%S+)%s*(.*)')
if cmd then
cmd = cmd:lower()
for k, v in...