#
console
Responsible for managing the console system within the cheat.
#
Functions
console.log(text: string, log_type: number, display_date: boolean)
- Logs a message onto a custom console with the specified text and log type.
- 0 = Success
- 1 = Warning
- 2 = Error
- 3 = Message
- 4 = Note
console.add_command(name: string, description: string, func: function)
- Creates a custom console command with the specified name and description, which executes the provided function when invoked.
secret.console.add_command("my_command", "This is a custom command", function(args)
print("Received arguments:", args)
secret.console.log("my_command executed!", 0, false)
end)
console.remove_command(name: string)
- Removes an existing custom console command with the specified name.
console.get_command_list(): table
- Retrieves a list of available commands.
local commandList = secret.get_command_list()
for _, commandName in ipairs(commandList) do
print(commandName)
end
console.execute_command(name: string, args: string)
- Executes a command with the specified name and optional argument.
Currently only 1 argument is supported.