removeXP

🔧 Available since Version 1.0.1!

📢 Event occurs when a player loses XP

RegisterNetEvent("tuncion_xp:log:removeXP")
AddEventHandler("tuncion_xp:log:removeXP", function(source, data)
    -- Do your magic here 💫
end)

Returns

  1. Source (INT) -> PlayerID

  2. Data (OBJECT) -> true or false

    1. newRank (BOOL) -> Has the player reached a new level?

    2. change (INT) -> Change value e.g. 5XP

Last updated

Was this helpful?