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