A standalone XP system, supports ESX & QB Multicharacter Identifiers.
GetXPData()
local data = GetXP("farming")
print(data.level, data.xp)
local level = GetLevel("farming")
print(level)
local nextLevelXP = GetLevelXP("farming", 1)
print(nextLevelXP)
local level = GetCategoryLevel("farming")
print(level)
AddPlayerXP(source, "farming", 1000)
RemovePlayerXP(source, "farming", 1000)
SetPlayerXP(source, "farming", 1000)
local data = GetPlayerXPData(source, "farming")
print(data.level, data.xp)
local level = GetPlayerLevel(source, "farming")
print(level)
InitializePlayerXP(source, function()
-- Player initialized.
end)
RegisterXPCategory("farming", "Farming", 1000, 0.5, 10)