-- React to tier-up in another client script
AddEventHandler('hb_citizensjourney:cl_tierUp', function(data)
-- data.tier = new tier number
-- data.tier_name = tier name string
lib.notify({
title = 'Tier Up!',
description = 'You reached ' .. data.tier_name,
type = 'success',
})
end)
-- React to quest completion
AddEventHandler('hb_citizensjourney:cl_questUpdate', function(data)
if data.claimed then return end
if data.current >= data.max then
lib.notify({ title = 'Quest Complete', description = 'Head to the pass to claim your XP!', type = 'info' })
end
end)
-- Show passive XP progress
AddEventHandler('hb_citizensjourney:cl_dailyXpUpdate', function(data)
-- data.dailyPlaySecs = seconds of active play today that earned passive XP
-- data.dailyPassiveXp = total passive XP earned today
end)