Having an error, I cannot fix

[ script:qb-garages] SCRIPT ERROR: @qb-garages/server/main.lua:282: attempt to index a nil value (local ‘VehicleData’)
[ script:qb-garages] > ref (@qb-garages/server/main.lua:282)
[ script:qb-garages] > (@oxmysql/dist/build.js:21745)
[ script:qb-garages] > processTicksAndRejections (node:internal/process/task_queues:96)
[ script:qb-garages] > async rawQuery (@oxmysql/dist/build.js:21735) was told this is something with my database but i have no clue what to change it in

1 Like

This issue has to do with your qb-core vehicles.lua file ([qb]\qb-core\shared\vehicles.lua). Make sure the car has been added there. If it has been, make sure its named correctly as the model of the vehicle that you use to spawn it. Adding it there correctly should fix that issue :slight_smile:

Like the above said,

There will be vehicles in your player_vehicles that dont exist in vehicles.lua.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.