setXP
📢 L'événement se produit lorsque l'XP d'un joueur est défini
RegisterNetEvent("tuncion_xp:log:setXP")
AddEventHandler("tuncion_xp:log:setXP", function(data)
-- Do your magic here 💫
end)
Retourne
- Data (OBJECT) -> vrai ou faux
- newRank (BOOL) -> Le joueur a-t-il atteint un nouveau niveau ?
- totalXP (INT) -> XP total actuel du joueur