addCurrency

API - add currency to a target user

return function()
    local findUser = getUser('clonzeh');
    
    if findUser ~= nil then
        local amount = getCurrency(findUser);
        log(findUser.displayName .. ' has: ' .. amount);
        
        success, balance = addCurrency(findUser, 100); 
        log(success .. '! user currently has ' .. balance); 
    else
        log('could not find target user');
    end
end
User

Last updated