Hi
Can someone explain me how it works?
In my control.lua, I set up :
commands.add_command("clearDb","input db to clear",
function(db)
if not db or db=="trains" then
global.trains={}
end
if not db or db=="trainstations" then
global.trainStations={}
end
end
)
Then, I call it in the lua console :
/c commands.clearDb()
But it says that the key "clearDb" doesn't exist... why!!!???
THanks
Hermios
LuaCommandProcessing
Re: LuaCommandProcessing
You don't do /c commands.clearDb
You just do
/clearDb
You just do
/clearDb
If you want to get ahold of me I'm almost always on Discord.