Fivem Native
If you are new developer in fivem, you can read the FiveM Documentation to get a good help.
RegisterCommand("myCommand", function(source, args, rawCommand)
-- normal function handling here
end, true) -- set this to false to allow anyone.