Platform Donation

API -

function yourEvent(user, donationInfo)
    log(user.displayName .. ' donated: ' .. donationInfo.amount_donated .. ' total: ' .. donationInfo.lifeTime_donated);
end

return function()
    log('starting up func')
    addEvent('platformDonation', 'yourEvent'); -- attaches the event to yourEvent()
    
    keepAlive();
end

Events are asynchronous coroutines.

Last updated