lua/lua/gmod_integration/shared/sh_main.lua

16 lines
429 B
Lua
Raw Normal View History

2023-09-25 09:14:42 +00:00
//
2023-08-09 05:04:43 +00:00
// Functions
2023-09-25 09:14:42 +00:00
//
2023-09-25 09:27:57 +00:00
// Log
2023-08-09 05:04:43 +00:00
function gmInte.log(msg, debug)
2023-11-05 02:01:55 +00:00
if (debug && !gmInte.debug) then return end
2023-09-23 01:14:20 +00:00
print("[" .. os.date("%Y-%m-%d %H:%M:%S") .. "] [Gmod Integration] " .. msg)
2023-09-25 09:27:57 +00:00
end
// Log Error
function gmInte.logError(msg, debug)
2023-11-05 02:01:55 +00:00
if (debug && !gmInte.debug) then return end
2023-09-25 09:27:57 +00:00
print("[" .. os.date("%Y-%m-%d %H:%M:%S") .. "] [Gmod Integration] [ERROR] " .. msg)
2023-09-25 09:38:49 +00:00
if (debug) then print(debug.traceback()) end
2023-09-25 09:14:42 +00:00
end