setRank
📢 Event occurs when a player's rank is set
RegisterNetEvent("tuncion_xp:log:setRank")
AddEventHandler("tuncion_xp:log:setRank", function(source, data)
-- Do your magic here 💫
end)
Returns
- Source (INT) -> PlayerID
- Data (OBJECT) -> true or false
- rank (INT) -> Players current rank
- totalXP (INT) -> Players current total XP