Adding commands

How to add commands to your server.

Visit /client/commands/commands.lua and create your command, here's the example of one.

RegisterCommand('twt', function(src, args, _)
    local argsOutput = _Lib.ConvertArgumentsToString(args) -- converting arguments to text ((args[n]))
    Chat.CreateMessage('fab fa-twitter', argsOutput, '#64A6FD', false, false)
end)

Chat.CreateMessage Layout

Chat.CreateMessage(icon, message, color, anonymous, proximity, header)

Last updated