Fivem Commands Lua пример
RegisterCommand('car', function(source, args)
-- TODO: make a vehicle! fun!
TriggerEvent('chat:addMessage', {
args = { 'I wish I could spawn this ' .. (args[1] or 'adder') .. ' but my owner was too lazy. :(' }
})
end, false)
Zuntie