setXP
📢 L'evento si verifica quando l'XP di un giocatore viene impostato
RegisterNetEvent("tuncion_xp:log:setXP")
AddEventHandler("tuncion_xp:log:setXP", function(data)
-- Fai la tua magia qui 💫
end)
Restituisce
- Data (OGGETTO) -> vero o falso
- newRank (BOOL) -> Il giocatore ha raggiunto un nuovo livello?
- totalXP (INT) -> XP totale attuale del giocatore