Qbox-project / qbx_vehicleshop

GNU General Public License v3.0
10 stars 37 forks source link

feat: vehicleId statebag on vehicle spawn #72

Closed artur-michalak closed 5 months ago

artur-michalak commented 5 months ago

Description

Fixes https://github.com/Qbox-project/qbx_garages/issues/55

The main change is the addition of vehicleId to the statebag of freshly purchased vehicles. The generatePlate function has also been renamed, to a more descriptive name.

There is still a risk of generating a plate that is in the database. A SQL procedure for creating a vehicle could solve the problem.

Checklist