Aller au contenu principal

addXP

📢 L'événement se produit lorsqu'un joueur gagne de l'XP

RegisterNetEvent("tuncion_xp:log:addXP")
AddEventHandler("tuncion_xp:log:addXP", 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. change (INT) -> Valeur de changement par ex. 5XP