This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
2.6.0
The changes for this update have been done by @StuxxyOfficial, thank you so much!
Features
- Added a
last_garage
column to use forConfig.RestoreVehicles
andConfig.SplitGarages
. - Added a config option for locking the vehicle's doors on spawn.
Refactor
- Now using separate get and set functions for vehicle props - This will be changed to use ox_lib when the UI branch gets merged for it.
- Vehicle data is stored in a statebag and applied on change.
- Fuel is now saved in the
health
column. - Changed data types for
garage
andlast_garage
toVARCHAR(40)
.
Fixes
- Fixed vehicle props/plate/health being set incorrectly or failing to set.
- Fixed livery and extra's not being saved correctly.
- Fixed blown up vehicles not appearing in the impound. if vehicle does exist but is blown up, the impound will delete the blown up one when a player checks the impound.
- Fixed an issue where paying with bank in impound would cause errors.
Notes
Since there was a new column added in this update make sure you add it to your owned_vehicles
table.
You can use the following query:
ALTER TABLE `owned_vehicles` ADD COLUMN `last_garage` VARCHAR(40) DEFAULT NULL;