addXP
📢 Event occurs when a player gains XP
RegisterNetEvent("tuncion_xp:log:addXP")
AddEventHandler("tuncion_xp:log:addXP", function(source, data)
-- Do your magic here 💫
end)
Returns
- Source (INT) -> PlayerID
- Data (OBJECT) -> true or false
- newRank (BOOL) -> Has the player reached a new level?
- change (INT) -> Change value e.g. 5XP