addXP
📢 L'evento si verifica quando un giocatore guadagna XP
RegisterNetEvent("tuncion_xp:log:addXP")
AddEventHandler("tuncion_xp:log:addXP", 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?
- change (INT) -> Valore di cambiamento es. 5XP