qbcore-framework/qb-truckerjob

[BUG] Not Working - Not Getting Store Locations

complexza opened this issue · 4 comments

Describe the bug
Fresh install of QBCore Framework, Getting an error for Delivery Locations when starting the job.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'The Trucker Location'
  2. Click on a truck to use
  3. See the error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Questions (please complete the following information):

  • When you last updated: [e.g. last week] Yesterday
  • Are you using custom resource? which ones? [e.g. zdiscord, qb-target] Nope.
  • Have you renamed qb- to something custom? [e.g. yes/no] No.

Additional context
Add any other context about the problem here.

FiveM_b2699_GTAProcess_Rl9boH7Z4l

Works for me on newest qb-truckerjob: https://i.imgur.com/FIaTOF2.jpeg

Error you have is reffering to CurrentLocation.x = Config.TruckerJobLocations["stores"][location].coords.x which means that in qb-shops you are missing delivery in one or more of your shops.

Do you get a location for delivery after the truck spawns?

I do, yeah. It works perfectly.

Turns out my hunting shop didn't have a delivery location! hahahah! I feel like a idiot! Thanks for your help!