Other
Open UI
TriggerEvent('rcore_stats:api:openUI')Achievement unlocked event
AddEventHandler('rcore_stats:api:achievementUnlocked', function(achievementKey)
if achievementKey == "basket_hoops_1" then
-- Give the player a reward because they shot their first hoop in basketball
end
end)AddEventHandler('rcore_stats:api:achievementUnlocked', function(playerId, achievementKey)
if achievementKey == "basket_hoops_1" then
-- Give the player with playerId a reward because they shot their first hoop in basketball
end
end)Stat value getter
Last updated