ℹ️fm-logs
Stripped apart from JD_Logsv3 Discord and converted to Fivemerr API log support.
Last updated
Stripped apart from JD_Logsv3 Discord and converted to Fivemerr API log support.
Last updated
-- Example of a createLog function
exports['fm-logs']:createLog({
LogType = "Player", -- The log type, must be defined in Config.Logs
Message = "Player action here", -- The message of the log
Level = "info", -- The level of the log (can be filtered on Fivemerr) (info by default)
Resource = "script-name", -- Resource where the log is coming from (If not provided, `fm-logs` will be set by default)
Source = 1, -- Server id for player (Required for Player Attributes to be pulled)
Metadata = {} -- Custom attributes to be added
})Framework = "qb", -- "qb" | "esx" | "standalone"