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
- Source (INT) -> PlayerID
- Données (OBJECT) -> vrai ou faux
- newRank (BOOL) -> Le joueur a-t-il atteint un nouveau niveau ?
- totalXP (INT) -> XP total actuel du joueur