misc cleanup

Adjusted force config values to match the required values. Also removed unused config options.
Swapped default logger to built-in
This commit is contained in:
MrNewb committed 2025-04-28 10:31:14 -04:00
1 parent 6e418f406c
commit 4138bc84ef
13 files changed
+23 -11

No files matched your search

+4 -4
View File
@@ -1,7 +1,7 @@
Logs = Logs or {}
local WebhookURL = ""
local LogoForEmbed = ""
local WebhookURL = "" -- Add webhook URL here if using built-in logging system
local LogoForEmbed = "" -- optional logo for the embed
---This will send a log to the configured webhook or log system.
---@param src number
@@ -9,7 +9,7 @@ local LogoForEmbed = ""
---@return nil
Logs.Send = function(src, message)
if not src or not message then return end
if BridgeServerConfig.LogSystem == "builtin" then
if BridgeServerConfig.LogSystem == "built-in" then
PerformHttpRequest(WebhookURL, function(err, text, headers) end, 'POST', json.encode(
{
username = "Community_Bridge's Logger",
@@ -48,7 +48,7 @@ Logs.Send = function(src, message)
}), { ['Content-Type']= 'application/json' })
elseif BridgeServerConfig.LogSystem == "qb" then
return TriggerEvent('qb-log:server:CreateLog', GetCurrentResourceName(), GetCurrentResourceName(), 'green', message)
elseif BridgeServerConfig.LogSystem == "ox" then
elseif BridgeServerConfig.LogSystem == "ox_lib" then
return lib.logger(src, GetCurrentResourceName(), message)
end
end