Configuration
⚙ Configuration
-- ஓம் நம சிவாய
--தமிழ் வாழ்க
-- Made by Lone with ❤️
Config = {}
Locales = {}
Config.Locale = "en" -- Set your locale here, e.g. "ta", "en", "es", "fr", "de", etc.
Config.ServerName = "Lone Leaderboard" -- Name of the server to display in the leaderboard
Config.ServerIcon = "https://r2.fivemanage.com/GOpaicn0Z43QQcCHNE8qb/image.png" -- URL of the server logo to display in the leaderboard
Config.OpenKey = 'HOME' --Key to open
-- Interval for sending stats to server to save in DB (in minutes)
Config.UpdateInterval = 5 -- 5 minute
Config.CommandName = "leaderboard" -- Command to open the leaderboard
-- Scoreboard settings
Config.Settings = {
enableScoreboard = true, -- Enable or disable the scoreboard i.e players and jobs tracking
enablemystats = true, -- Enable or disable the player's own stats display
enablemillionaire = true, -- Enable or disable the millionaire leaderboard
maxMillionaires = 10, -- Maximum number of millionaires to show in the leaderboard
shownetworth = true, -- Show net worth in the millionaire leaderboard (Only shows Money on bank account)
enabletopplayers = true, -- Enable or disable the top players leaderboard
maxTopPlayers = 5, -- (Recommender 5) Maximum number of top players to show in the leaderboard
updateInterval = 2, -- Update interval in minutes for fetched from database to leaderboard to reduce server
maxPlayers = 128, --GetConvarInt('sv_maxclients', 48), -- Maximum number of players to show in the scoreboard
usefivename = false, -- Use FiveM name instead of player name
DisableActionlock = false, -- Disable mouse camera controls when the NUI is focused
entryAnimation = "animate-in", -- "rotate-in", "slide-in-top", "slide-in-bottom", "slide-in-right", "slide-in-left", "fade-in", "zoom-in","animate-in", bounce-in, flip-in
exitAnimation = "animate-out" -- "rotate-out", "slide-out-top", "slide-out-bottom", "slide-out-right", "slide-out-left", "fade-out", "zoom-out", "animate-out", bounce-out, flip-out
}
Config.JobTrackingList = {
ambulance = {
label = "EMS",
icon = "fas fa-ambulance"
},
mechanic = {
label = "Mechanic",
icon = "fas fa-wrench"
},
police = {
label = "Police Officer",
icon = "fa-solid fa-handcuffs"
},
trucker = {
label = "Truckers",
icon = "fas fa-truck",
},
coffee = {
label = "Coffee shop",
icon = "fas fa-coffee",
}
}
--------------------------------------------------------------------------------------------------
-- Leaderboard settings
--------------------------------------------------------------------------------------------------
Config.statlabels = {
kills = "Most Kills",
deaths = "Most Deaths",
playtime_total = "Total Playtime",
playtime_longest = "Longest Playtime",
kms_walked = "Kilometers Walked",
kms_car = "Kilometers Driven (Car)",
kms_bike = "Kilometers Driven (Bike)",
kms_bicycle = "Kilometers Driven (Bicycle)",
kms_truck = "Kilometers Driven (Truck)",
kms_boat = "Kilometers Driven (Boat)",
kms_heli = "Kilometers Flown (Helicopter)",
kms_plane = "Kilometers Flown (Plane)",
times_arrested = "Times Arrested",
jail_time = "Total Jail Time"
}
-- Only these jobs will be tracked in job_stats
Config.JobStats = {
["trucker"] = true,
["taxi"] = true,
["delivery"] = true,
["farmer"] = true
}
-- Custom stats for what ever you want to track
Config.CustomStats = {
["heists"] = {
label = "Most Heists Completed"
},
}
-- disable these stats from displaying in the top player stats
-- Set to true to disable a stat
Config.Disabledstats = {
play_time_total = false,
play_time_longest = false,
kms_walked = false,
kms_car = false,
kms_bike = false,
kms_bicycle = false,
kms_truck = false,
kms_boat = false,
kms_heli = false,
kms_plane = false,
times_arrested = false,
jail_time = false,
kills = false,
deaths = false,
job_stats = false,
bank_money = false
}
print("^2LONE LEADERBOARD ^7v^4"..GetResourceMetadata(GetCurrentResourceName(), 'version', nil):gsub("%.", "^7.^4").."^7 - Script by ^1.lone17^7")Last updated