Changing commands name

How to properly change commands name or disable them.

Object

To change name or disable command headover to the /shared/config.lua and find:

Config.Commands = {
    ['logout'] = {
        use = true,
        commandName = 'logout',
    },
    ['setcharacterslots'] = {
        use = true,
        commandName = 'setcharacterslots'
    }, ['addcharacterslots'] = {
        use = true,
        commandName = 'addcharacterslots'
    },
}

In such object you find sub-tables with commands.

Disabling command

All you need to do is to change in specific sub table by switching use = true to use = false.

Changing name

For that you need to change parameter commandName. We will use as an example logout command and change the name to relog:

Last updated