Skip to content

A standalone XP system, supports ESX & QB Multicharacter Identifiers.

Notifications You must be signed in to change notification settings

PickleModifications/pickle_xp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pickle XP

A standalone XP system, supports ESX & QB Multicharacter Identifiers.

Preview

image

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)

About

A standalone XP system, supports ESX & QB Multicharacter Identifiers.

Resources

Stars

Watchers

Forks

Packages

No packages published