HumanTree92/VENT_ESX_Scripts

esx_advanced_vehicleshops

Opened this issue · 1 comments

Questions
Which Script are you having Issues with?: esx_advanced_vehicleshops
Have you made changes to anything besides the config.lua?: no
Have you looked through the Closed Topics?: yes
Have you looked through the Wiki?: yes
Are you using a Pre-Installed ESX? If Yes who?: no
What Verison of ESX Legacy are you using?: 1.9.4
Are you using OneSync?: yes
Linux or Windows?: windows

Describe the Bug | A Clear & Concise Description of the Bug

SCRIPT ERROR: @esx_advancedvehicleshop/client/main.lua:365: bad argument #1 to 'insert' (table expected, got nil)

this is line 365 from client.lua:
table.insert(vehiclesByCategory[sVehicles[i].category], sVehicles[i])

when installing sql I got syntax error and it would not add the vip cars list. but it did create the table so I manually added the vip vehicles. all tables associated with the sql are added in database.

when I open the truck shop no menu comes up. your stuck and have to f8 quit.

also the vehicles sometimes spawn to display vehicle but don't despawn for the next vehicle, leaves me with a pile of vehicles spawned inside each other.

error

Just thinking more about this error and I got the multiple vehicles spawning inside eachother at the car dealer. So I turned cars off in config. And went back to esx_vehicleshop for cars. However both scripts are running because I would like the truck boat and aircraft dealer aswell. I did get the multiple spawning vehicles in the aircraft shop aswell but not always.
This is the exact script I've been looking for to buy vanilla vehicles and go alongside mfvehicle shops for add-ons. I've looked into paid dealer scripts and I have yet to find one this simple. I don't need the vip, jobs, or society portion either.

I'm willing to compensate for the help