execute if entity @s[tag=carshop,scores={carshop.pending=0}] run return run function ws:store/carshop/business/toyota.pending
execute unless score @s pay matches 500.. run return run function ws:store/carshop/fail
scoreboard players remove @s pay 500
give @s feather[max_stack_size=1,custom_model_data=1001,custom_data={toyota:1,carkey:1},custom_name='[{"translate":"carshop.toyota.key","italic":false}]',lore=['[{"translate":"carshop.offhand","italic":false}]']]
title @s title {"translate":"luxury.buysuccess","color":"green"}
execute at @s run playsound minecraft:entity.zombie_horse.ambient player @s ~ ~ ~

execute if entity @s[tag=carshop] run return 0
scoreboard players add @a[tag=carshop] pay 50
tellraw @a[tag=carshop] [{"translate":"business.bonus"},{"text":": "},{"text":"50$"},{"text":" ("},{"translate":"carshop.name"},{"text":")"}]
execute as @a[tag=carshop] at @s run playsound minecraft:entity.experience_orb.pickup player @s ~ ~ ~ 0.05 0