Qbox-project / qbx_garages

GNU General Public License v3.0
9 stars 38 forks source link

After the latest changes to the garage system players are not able to retrieve vehicles from the impound / depot #74

Closed xbb4u closed 4 months ago

xbb4u commented 4 months ago

Summary

Players are not able to retrieve vehicles from the impound / depot. The cash is taken but the vehicle doesn't spawn

Reproduction

Go to the depot / impound and use the garages to retrieve the vehicle.

I do receive this error

[  script:qbx_garages] SCRIPT ERROR: @qbx_garages/server/spawn-vehicle.lua:29: attempt to index a nil value (field '?')
[  script:qbx_garages] > callbackResponse (@ox_lib/imports/callback/server.lua:79)
[  script:qbx_garages] > handler (@ox_lib/imports/callback/server.lua:96)
[  script:qbx_garages] > rawQuery (@oxmysql/dist/build.js:26467)
[  script:qbx_garages] > processTicksAndRejections (node:internal/process/task_queues:96)

Which links to this line of code

local netId, veh = qbx.spawnVehicle({ spawnSource = garage.accessPoints[accessPoint].spawn, model = playerVehicle.props.model, props = playerVehicle.props, warp = warpPed})

Expected behavior

For the vehicle to spawn after paying the fee

Actual behavior

Vehicle did not spawn

Additional context

No response

Current Version

version '1.0.0' -- Latest

Custom Resources

No

solareon commented 4 months ago

Have you updated your config to match the new changes?

xbb4u commented 4 months ago

Have you updated your config to match the new changes?

I've installed a fresh version of both qbx_vehicles and qbx_garages and the issue still persists

solareon commented 4 months ago

Please try the fix in #75 @BizzleB4

xbb4u commented 4 months ago

Testing it now @solareon

xbb4u commented 4 months ago

The issue has been fixed! @solareon