Aller au contenu principal

setXP

📢 L'événement se produit lorsqu'XP d'un joueur est défini

RegisterNetEvent("tuncion_xp:log:setXP")
AddEventHandler("tuncion_xp:log:setXP", function(source, data)
-- Faites votre magie ici 💫
end)

Retours

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