addXP
📢 L'événement se produit lorsqu'un joueur gagne de l'XP
RegisterNetEvent("tuncion_xp:log:addXP")
AddEventHandler("tuncion_xp:log:addXP", function(data)
-- Faites votre magie ici 💫
end)
Renvoie
- Données (OBJECT) -> vrai ou faux
- nouveauRang (BOOL) -> Le joueur a-t-il atteint un nouveau niveau ?
- changement (INT) -> Valeur de changement par ex. 5XP