Adding a new vehicle shop

im trying to add a new shop where Larrys used cars is located and keep getting this error

[ 102766] [b2944_GTAProce] MainThrd/ ^1SCRIPT ERROR: @qb-vehicleshop/client.lua:395: attempt to index a nil value (global ‘Config’)^7
[ 102766] [b2944_GTAProce] MainThrd/ ^3> fn^7 (^5@qb-vehicleshop/client.lua^7:395)
[ 102766] [b2944_GTAProce] MainThrd/ ^1SCRIPT ERROR: @qb-vehicleshop/client.lua:405: attempt to index a nil value (global ‘Config’)^7
[ 102766] [b2944_GTAProce] MainThrd/ ^3> fn^7 (^5@qb-vehicleshop/client.lua^7:405)

1 Like

QB-Vehicleshop Error

Hey, your error indicates that you must have done something that is making the script not read that there is a Config.


Fixing the error

Try this list to see if this will fix your issue.

  • Check qb-vehicleshop > config.lua and make sure that you aren’t forgetting any commas as that will break your script 100%, Use this to compare what’s different QB-VehicleShop Config.lua.

  • Check qb-vehicleshop > fxmanifest.lua and make sure that config.lua is in the shared_scripts and the variable its self is named shared_scripts.
shared_scripts { -- Make sure this says shared_scripts
    'config.lua', -- Make sure this is here
    '@qb-core/shared/locale.lua',
    'locales/en.lua',
    'locales/*.lua'
}

Hope this helps, if it doesn’t please try and look at F8 and Server console for errors and send them my way :slight_smile:

1 Like

i got it fixed a few days ago. I had an extra “}” somewhere in there. thank god for the visual studio code lol

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