Hey,
Thank you for your help CptMercury
I did as said use "local", however I had to miss somewhere because I have as error "line 72: attempt to call global 'checkMod'
local function autoMenu()
API.clearTable()
API.setTable("Automatic", autoMode, "", 3, 13, 6, 6)
API.setTable("Manual", manualMode, "", 15, 25, 6, 6)
if steamReactor then
API.setTable("Reactor", reactorMenu, "", 5, 18, 19, 19)
API.setTable("Turbine", turbineMenu, "", 22, 35, 19, 19)
end
API.screen()
checkMode() <-- on this line
menuMode()
end