well, you used half of the esx_vehicleshop function., I recommend you to make some function that when you take out a vehicle you can not take out more than 1 at a time to avoid spamming vehicles.
but it is a good job