Passa al contenuto principale

removeXP

📢 L'evento si verifica quando un giocatore perde XP

RegisterNetEvent("tuncion_xp:log:removeXP")
AddEventHandler("tuncion_xp:log:removeXP", 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. change (INT) -> Valore di cambiamento es. 5XP