From cb38d275d13b8727c2b39ec896152d7c1d4e0145 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Sun, 18 May 2025 16:32:29 +0100 Subject: [PATCH] People were asking how to remove a print I kept getting people asking how to remove prints because it "was filling up their f8 menu and looked like errors" So I've made the "success" coreloader prints to be debugmode only. --- starter.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/starter.lua b/starter.lua index b0616e1..8ed3ba9 100644 --- a/starter.lua +++ b/starter.lua @@ -89,7 +89,9 @@ for Type, ScriptTable in pairs(filesToLoad) do --print("^5CoreLoader^7: '"..scriptName.."/"..file.."' ^2into ^7'"..GetCurrentResourceName().."' ...") local fileLoader = assert(load(LoadResourceFile(scriptName, (file)), ('@@'..scriptName..'/'..file))) fileLoader() - debugPrint("^5CoreLoader^7: ^2loaded ^1Core ^2file^7: ^3"..scriptName.."^7/^3"..(file):gsub("/", "^7/^3"):gsub("%.lua", "^7.lua").." ^2into ^7'"..GetCurrentResourceName().."'") + if debugMode then + print("^5CoreLoader^7: ^2loaded ^1Core ^2file^7: ^3"..scriptName.."^7/^3"..(file):gsub("/", "^7/^3"):gsub("%.lua", "^7.lua").." ^2into ^7'"..GetCurrentResourceName().."'") + end end end