🐐
Rebel Documentation
  • 🐐Rebel Resources
  • 💳Rebel Fleecas
    • ⚡Config File
    • 📍Information
    • 🔴QBCore Installation
    • 🔵ESX Installation
  • 🏦Rebel Cityhall
    • ⚡Config File
    • 📍Information
  • 📊Rebel Skills
    • ⚡Config File
    • 📍Information
    • 💻Client Exports
    • 💻Server Exports
    • 💻Client Events
  • 📋Rebel Scoreboard
    • ⚡Config File
    • 📍Information
  • 🚗Rebel Vehicle Controls
    • ⚡Config File
    • 📍Information
  • 👷Rebel Electrician
    • ⚡Config File
    • 📍Information
    • 🔴QBCore Installation
    • 🔵ESX Installation
  • 🚚Rebel Trucking
    • ⚡Config File
    • 📍Information
    • 🔴QBCore Installation
    • 🔵ESX Installation
  • 🍺Rebel Brewery
    • ⚡Config File
    • 📍Information
    • 🔴QBCore Installation
    • 🔵ESX Installation
  • 💰Rebel Bobcat
    • ⚡Config File
    • 📍Information
    • 🔴QBCore Installation
    • 🔵ESX Installation
  • 🏛️Rebel Maze Bank West
    • ⚡Config File
    • 📍Information
    • 🔴QBCore Installation
    • 🔵ESX Installation
  • 💸Rebel Moneywash
    • ⚡Config File
    • 📍Information
    • 🔴QBCore Installation
    • 🔵ESX Installation
Powered by GitBook
On this page
  • GetPlayerXP
  • AddXP
  • SetXP
  • RemoveXP
  1. Rebel Skills

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)
PreviousClient ExportsNextClient Events

Last updated 1 year ago

📊
💻