Passa al contenuto principale

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

  1. Source (INT) -> PlayerID
  2. Data (OBJECT) -> true o false
    1. newRank (BOOL) -> Il giocatore ha raggiunto un nuovo livello?
    2. totalXP (INT) -> XP totale attuale del giocatore