#qb-ambulance job error

1 messages · Page 1 of 1 (latest)

hot aspenBOT
#
📝 Support Request Template

Please fill out the following fields with maximum effort. Low-effort posts will receive low-effort responses.

💻 Script Name

Provide the name of the script you're having trouble with.

❗ Error

Paste the exact error message you received. Ignore this if no error. (Check client (F8) and server (Tx) console)

🛠️ Issue Description

Describe the issue you're experiencing in detail.

🔄 Recent Changes

List the last changes you made before this issue occurred.

🔧 Troubleshooting Steps

Explain what steps you've already taken to try and fix this.

📹 Screenshots / Video

Include any relevant screenshots or recordings.

hasty slate
#

Most likely a syntax error in your config.

turbid breach
#

how would i fix that?

acoustic path
#

,

hasty slate
#

By not having a syntax error in your config

acoustic path
#

Know what would make it much easier to help....

#

if you filled the template

hasty slate
#

Template? What template?

acoustic path
#

Specifically:

🔄 Recent Changes
List the last changes you made before this issue occurred.

With some effort. Then we can probably fix it in a single reply for you

turbid breach
#

ok you guys dont need to be rude ill fill out the template. everytime i ask for help i get nasty condescending replies .

acoustic path
#

Nasty? rude?

#

Youve got 2 people here who will genuinely help you.

Like, happy to help you.

We need the information, to be able to help you

turbid breach
#
  1. QB-Ambulance
  2. qb-ambulancejob/client/main.lua:713: attempt to get length of a nil value (field 'stations')^7
  3. I keep getting the above error in my server F8 menu and cant find a fix.
  4. I recently downloaded the ambulance job from the website.
  5. I did google issue reached out on forums and had no luck.
  6. No screenshots as of now.
acoustic path
#

Ok, ill be rude now

#

I recently downloaded the ambulance job from the website.

#

what did you break after this?

hasty slate
#

I recently lied in my template

acoustic path
#

We can do this the long way. We will still help you

turbid breach
#

nothing i simply downloaded it and added hospitals (stations) into my config and all the stations are working, but i cant get the error to go away.

hasty slate
#

added hospitals (stations) into my config

finally we got there

turbid breach
acoustic path
#

lets open up the file that is spitting out the error

#

You did, we can prove that as part of the process to fix your error

turbid breach
#

ok

acoustic path
#

open: qb-ambulancejob/client/main.lua go to line 713

turbid breach
#

ok im there hopefully im not lying

acoustic path
#

hold windows key and shift, press s

#

drag over the code

#

it will copy the screen shot to your clipboard

#

then paste that in here

turbid breach
acoustic path
#

So you are getting a nil calue for Config.Locations['stations']

#

So config comes from the config file

#

lets open up the config file

#

then hold ctrl and press F

#

and type stations

turbid breach
#

ok im there

acoustic path
#

hold windows key and shift, press s

#

drag over the code

#

it will copy the screen shot to your clipboard

#

then paste that in here

turbid breach
acoustic path
#

bare with, t looks like you have extra curly brace and comma in there

#

let me open up the default one, to confirm

#

I have an angry unicorn on github. please hold fire

turbid breach
#

here is a default one

acoustic path
#

Oh, would you look at that

#

How did the other 3 get added?

turbid breach
#

when i added in multiple stations but removed some due to bad texture loss i must of copied and paste but didnt delete

acoustic path
#

@hasty slate did you add them....

#

List the last changes you made before this issue occurred.

This is why we asked...

hasty slate
acoustic path
#

So now lets remove the }, that shouldnt be there

#

Remove them both

turbid breach
#

ok could this issue be causing qb-shops clerks/peds to not show at shop locations?

acoustic path
#

🔮

#

Can I give you the best help youll get

turbid breach
#

ok thanks for the help,

acoustic path
#

everytime i ask for help i get nasty condescending replies

See if you had just told us from the start, you downloaded the ambulance job, you edited it.
Sent us the config (the bit you edited) or the screenshot, rather than "No screenshots as of now."
Youll likely get better help.

There is far more people in here looking for support, than giving it. We are all doing it completely free, to try help others, who dont want to help themselves.

We could have fixed your error, and pasted it back to you.

You could even have pasted that code to chatGPT and it would have told you the syntax error.

Instead, we now have 60 messages in this thread...

turbid breach
#

ok i dont ask for help often i try to fix it myself and or google i know there is 100s of people asking for help. i been trying to fix this for days now and decided to reach out. now i know i need to do a template and advise full issue. thanks for the help

acoustic path
#

You're welcome bud, Glad you got it all sorted

#

We do want to help, I promise 😉

turbid breach
#

if i need help with one other thing should i make a new support post? its qb-shops ped/clerks not showing up to buy things but i still get the E-shop prompt

acoustic path
#

Yes, because if someone else has the same issue, they can use the search feature, and if its within a thread of over 60 messages, we will be back on the merry-go-round 😛

turbid breach
#

ok thanks Jay and thanks for being a smart you know what 🙂

acoustic path
#

We also appreciate if you can mark resolved ones as resolved

acoustic path
turbid breach
#

so just comment resolved in here/

terse acorn
acoustic path
turbid breach
#

TY GUYS