I'm searching for command processor and adding my own commands on , so you will do a big favor for me.
Here some .
commands = {} function commands.help() msg("ayyy") end local command = "help" func = loadstring("commands."..command.."()") func()
helpto whatever you want and change the local
commandparameter to the same thing.
commands = {} function commands.thisisashittyfunction() msg("hey look at me") end local command = "thisisashittyfunction" func = loadstring("commands."..command.."()") func()
LUA ERROR:20: attempt to call global 'func' (a nil value)