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
- Source (INT) -> PlayerID
- Données (OBJECT) -> vrai ou faux
- newRank (BOOL) -> Le joueur a-t-il atteint un nouveau niveau ?
- change (INT) -> Valeur de changement par ex. 5XP