qbcore-framework / qb-vehiclesales

Player Vehicle Sales For QB-Core
GNU General Public License v3.0
31 stars 165 forks source link

Error when attempting to sell unowned car and car overflow error #22

Closed OlliePugh closed 2 years ago

OlliePugh commented 2 years ago

When more cars are up for sale than slots in the config the resources goes into a fail loop, somebody will then need to go into the database manually and remove some of the cars for sale.

If a user tries to sell an unowned car an error message is displayed in the console due to balance being checked before if the car is owned, which will fail if the car is not owned.