Skip to main content

addRank

📢 Event occurs when a player's rank is added

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

Returns

  1. Source (INT) -> PlayerID
  2. Data (OBJECT) -> true or false
    1. rank (INT) -> Players current rank
    2. totalXP (INT) -> Players current total XP