💻Server Exports
GetPlayerXP
-- source: number | example: 1
-- skill: string | example: "electrician"
exports["rebel-lib"]:GetPlayerXP(source, skill)
-- Example Use:
local xp = exports["rebel-lib"]:GetPlayerXP(source, "electrician")
print("Player has this amount of electrician XP: "..xp)
AddXP
-- source: number | example: 1
-- skill: string | example: "electrician"
-- amount: number | example: 20
exports["rebel-lib"]:AddXP(source, skill, amount)
-- Example Use:
exports["rebel-lib"]:AddXP(source, "electrician", 20)
SetXP
-- source: number | example: 1
-- skill: string | example: "electrician"
-- amount: number | example: 20
exports["rebel-lib"]:SetXP(source, skill, amount)
-- Example Use:
exports["rebel-lib"]:SetXP(source, "electrician", 20)
RemoveXP
-- source: number | example: 1
-- skill: string | example: "electrician"
-- amount: number | example: 20
exports["rebel-lib"]:RemoveXP(source, skill, amount)
-- Example Use:
exports["rebel-lib"]:RemoveXP(source, "electrician", 20)
Last updated