Skip to content

Tuncion/tuncion_xp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tuncion_xp

A complete XP Handler with a lot of features for FiveM

See the Documentation: https://docs.tuncion.de/scripts/tuncion-xp

Installation

  1. Download the latest version from here
  2. Upload to your server
  3. Add ensure tuncion_xp to your server.cfg
  4. Insert the SQL File into your Database
  5. Restart your server (or start the resource)

Features

  • XP Handler inclusive Level System
  • Lot of exports
  • XP Log System
  • Discord Webhooks for each export
  • NUI Notify

Exports

Getter

  • getGlobalXP
  • getGlobalRank
  • getTotalXP
  • getXP
  • getNeededXP
  • getRank
  • getRankStage
  • getXPLog

Setter

  • addXP
  • removeXP
  • setXP
  • addRank
  • removeRank
  • setRank
  • resetPlayer
  • resetPlayerXP

Events

Event Type Description Parameter
tuncion_xp:log:addXP Serverside Event occurs when a player gains XP source, { newRank: Bool, change: Integer }
tuncion_xp:log:removeXP Serverside Event occurs when a player loses XP source, { newRank: Bool, change: Integer }
tuncion_xp:log:setXP Serverside Event occurs when a player's XP is set source, { newRank: Bool, totalXP: Integer }
tuncion_xp:log:addRank Serverside Event occurs when a player's rank is added source, { rank: Integer, totalXP: Integer }
tuncion_xp:log:removeRank Serverside Event occurs when a player's rank is removed source, { rank: Integer, totalXP: Integer }
tuncion_xp:log:setRank Serverside Event occurs when a player's rank is set source, { rank: Integer, totalXP: Integer }
tuncion_xp:log:resetPlayer Serverside Event occurs when a player is reset source
tuncion_xp:log:resetPlayerXP Serverside Event occurs when a player's XP is reset source, { rank: Integer, totalXP: Integer }
tuncion_xp:log:addXP Clientside Event occurs when a player gains XP { newRank: Bool, change: Integer }
tuncion_xp:log:removeXP Clientside Event occurs when a player loses XP { newRank: Bool, change: Integer }
tuncion_xp:log:setXP Clientside Event occurs when a player's XP is set { newRank: Bool, totalXP: Integer }
tuncion_xp:log:addRank Clientside Event occurs when a player's rank is added { rank: Integer, totalXP: Integer }
tuncion_xp:log:removeRank Clientside Event occurs when a player's rank is removed { rank: Integer, totalXP: Integer }
tuncion_xp:log:setRank Clientside Event occurs when a player's rank is set { rank: Integer, totalXP: Integer }
tuncion_xp:log:resetPlayer Clientside Event occurs when a player is reset /
tuncion_xp:log:resetPlayerXP Clientside Event occurs when a player's XP is reset { rank: Integer, totalXP: Integer }

Images

🪙 Gain XP
AddXP

📈 Remove XP
RemoveXP

🚀 Reach new Level
ReachLevel

👀 Webhooks for each export
NotifyWebhook
This is just a example for addXP

To Do

  • Add Events
  • Export: neededXP
  • Level Multiplier
  • Level Stages
  • Command: See own Level
  • XP Categories
  • XP Categories Front-End