This commit is contained in:
Nordi98 2025-07-02 07:48:15 +02:00
parent dfc233c1db
commit caa1a1929c
19 changed files with 584 additions and 134 deletions

View file

@ -1,6 +1,6 @@
-- Initialize config(s)
local sv_config = require 'config.server'
local sh_config = require 'config.shared'
local shared = require 'config.shared'
-- Check to see if fm-logs or fmsdk is started
local fmlogs = GetResourceState('fm-logs') == 'started'
@ -10,7 +10,7 @@ local fmsdk = GetResourceState('fmsdk') == 'started'
--- @param message string Message contents
--- @param type string Log type
function EventLog(message, type)
if not message or not sh_config.setup.debug then return end
if not message or not shared.setup.debug then return end
if sv_config.logs.service == 'fivemanage' then
if not fmsdk then return end
exports.fmsdk:LogMessage(type or 'info', message)