Preview
What is this?
This is a standalone XP system, that also supports ESX & QB Multicharacter Identifiers.
This is great for servers who need a simple yet effective XP system for players.
Dependencies
- MySQL-Async / Ox MySQL.
Exports
Client
GetXPData(void)
GetXPData()
GetXP(name)
local data = GetXP("farming")
print(data.level, data.xp)
GetLevel(name)
local level = GetLevel("farming")
print(level)
Shared
GetLevelXP(name, level)
local nextLevelXP = GetLevelXP("farming", 1)
print(nextLevelXP)
GetCategoryLevel(name)
local level = GetCategoryLevel("farming")
print(level)
Server
AddPlayerXP(source, name, xp)
AddPlayerXP(source, "farming", 1000)
RemovePlayerXP(source, name, xp)
RemovePlayerXP(source, "farming", 1000)
SetPlayerXP(source, name, xp)
SetPlayerXP(source, "farming", 1000)
GetPlayerXPData(source, name)
local data = GetPlayerXPData(source, "farming")
print(data.level, data.xp)
GetPlayerLevel(source, name)
local level = GetPlayerLevel(source, "farming")
print(level)
InitializePlayerXP(source, cb)
InitializePlayerXP(source, function()
-- Player initialized.
end)
RegisterXPCategory(name, label, xpStart, xpFactor, maxLevel)
RegisterXPCategory("farming", "Farming", 1000, 0.5, 10)
Installation
- Ensure the MySQL resource before “pickle_xp” is ensured in the config.
- Restart the server.
- Have fun!
Need Support?
Ready to Download?
Enjoy!