Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Attempted to index a nil value (coords) #54

Open
Zack3267 opened this issue Feb 28, 2024 · 1 comment
Open

Attempted to index a nil value (coords) #54

Zack3267 opened this issue Feb 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Zack3267
Copy link

I have the correct job and the marker shows to get vehicle but no delivery marker shows up once inside the truck. Fully upgraded qbcore system.
But when the truck spawns out I get this error.

SCRIPT ERROR: @qb-truckerjob/client/main.lua:264: attempt to index a nil value (field 'coords')
handler (@qb-core/client/event.lua:215)
script:qb-core SCRIPT ERROR: error object is not a string

Please Help

@Zack3267 Zack3267 added the bug Something isn't working label Feb 28, 2024
@ajcp38
Copy link

ajcp38 commented Mar 6, 2024

264: CurrentLocation.x = Config.TruckerJobLocations["stores"][location].coords.x

This is indicating that the coordinates for the store are undefined. Why are they undefined?
Config.TruckerJobLocations does not have a stores attribute in the object. Also missing is anything related to fuel delivery, line-haul (not sure what type of delivery this may be?), as well as reference to any rep. It appears an in progress update got pushed to live.

@GhzGarage Was this in-progress, or did a reversion happen? If it was in process, and you have an idea of where you want it to go, I can work on full implementation this week. I was already going to contribute to routes (build common code between the busjob, garbagejob, this, etc).

I'd also be willing to adopt the qb-jobs resource.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants