Client
GetXP()
- Get a players current experience
local currentXP = exports.lation_detecting:GetXP()
print(currentXP)
GetLevel()
- Get a players current level
local currentLvl = exports.lation_detecting:GetLevel()
print(currentLvl)
GetXPRemaining()
- Get a players XP required until next level
local xpRemaining = exports.lation_detecting:GetXPRemaining()
print(xpRemaining)
Server
AddXP(source, amount, quantity)
- Add experience and items found to player
-- source: Player ID
-- amount: Amount of XP to add
-- quantity: Number to add to items_found column
exports.lation_detecting:AddXP(source, 100, 1)
GetXP(source)
- Get a players current experience
-- source: Player ID
local currentXP = exports.lation_detecting:GetXP(source)
print(currentXP)
GetLevel(source)
- Get a players current level
-- source: Player ID
local currentLvl = exports.lation_detecting:GetLevel(source)
print(currentLvl)
GetXPRemaining(source)
- Get a players XP required until next level
-- source: Player ID
local xpRemaining = exports.lation_detecting:GetXPRemaining(source)
print(xpRemaining)
Last updated