removeXP
📢 El evento ocurre cuando un jugador pierde XP
RegisterNetEvent("tuncion_xp:log:removeXP")
AddEventHandler("tuncion_xp:log:removeXP", function(source, data)
-- Do your magic here 💫
end)
Retornos
- Source (INT) -> PlayerID
- Data (OBJECT) -> true o false
- newRank (BOOL) -> ¿Ha alcanzado el jugador un nuevo nivel?
- change (INT) -> Valor de cambio, por ejemplo, 5XP