config.lua
config.tables are the MySQL tables of older versions, imported once and then no longer used. Change them only if you renamed those tables.
tgiCoreExports = exports["tgiann-core"]
config = tgiCoreExports:getConfig()
-- Stats live in the media service (tgiann-media/stats.db). These MySQL tables
-- of older versions are imported into it once, then no longer used.
config.tables = {
playerPositions = "tgiann_stats_player_hourly_positions",
serverOnline = "tgiann_stats_server_hourly_online",
killLogs = "tgiann_stats_kill_logs",
moneyLogs = "tgiann_stats_money_logs",
playerSessions = "tgiann_stats_player_sessions",
playerDisconnects = "tgiann_stats_player_disconnects",
chatLogs = "tgiann_stats_chat_logs",
playerIdentifiers = "tgiann_stats_player_identifiers",
playerIdentifierMapping = "tgiann_stats_player_identifier_mapping",
}
-- Retention, ignored items, AFK time, media and log options are edited on the
-- FiveM Stats site (stored in tgiann-media/settings.json).
if config.framework == "qb" then
config.tables.players = "players"
config.tables.vehicles = "player_vehicles"
elseif config.framework == "esx" then
config.tables.players = "users"
config.tables.vehicles = "owned_vehicles"
end
config.inventory = {
tgiann = GetResourceState("tgiann-inventory") ~= "missing",
ox = GetResourceState("ox_inventory") ~= "missing",
}