A complete XP Handler with a lot of features for FiveM
See the Documentation: https://docs.tuncion.de/scripts/tuncion-xp
- Download the latest version from here
- Upload to your server
- Add
ensure tuncion_xp
to your server.cfg - Insert the SQL File into your Database
- Restart your server (or start the resource)
- XP Handler inclusive Level System
- Lot of exports
- XP Log System
- Discord Webhooks for each export
- NUI Notify
Getter
- getGlobalXP
- getGlobalRank
- getTotalXP
- getXP
- getNeededXP
- getRank
- getRankStage
- getXPLog
Setter
- addXP
- removeXP
- setXP
- addRank
- removeRank
- setRank
- resetPlayer
- resetPlayerXP
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 } |
👀 Webhooks for each export
This is just a example for addXP
- Add Events
- Export: neededXP
- Level Multiplier
- Level Stages
- Command: See own Level
- XP Categories
- XP Categories Front-End