Aller au contenu principal

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

  1. Data (OBJECT) -> vrai ou faux
    1. newRank (BOOL) -> Le joueur a-t-il atteint un nouveau niveau ?
    2. totalXP (INT) -> XP total actuel du joueur