HumanTree92 / esx_advancedvehicleshop

Advanced Vehicle Shops for FiveM ESX Legacy
http://velocitientertainment.com/
27 stars 15 forks source link

Bug / Typo #81

Closed miwi-fbsd closed 2 years ago

miwi-fbsd commented 2 years ago

https://github.com/HumanTree92/esx_advancedvehicleshop/blob/0ea8e8081c9f4fcbfb686f860e9f5e870bc82bc4/esx_lscustom_fix.lua#L25

Here Seems to be a typo:

I see in my log following:

[  script:mysql-async] [MySQL:5.7.36] [ERROR] [esx_lscustom] An error happens for query "SELECT model, price FROM vs_ambulance UNION SELECT model, price FROM vs_police UNION SELECT model, price FROM vs_divisions UNION SELECT model, price FROM vs_mecano UNION SELECT model, price FROM vs_taxi UNION SELECT model, price FROM vs_aircrafts UNION SELECT model, price FROM vs_boats UNION SELECT model, price FROM vs_cars UNION SELECT model, price FROM vs_trucks UNION SELECT model, price FROM vs_vipcars UNION SELECT model, price FROM vs_vipaircrafts UNION SELECT model, price FROM vs_vipboats; : []": ER_NO_SUCH_TABLE: Table 'beta01.vs_mecano' doesn't exist
[ script:esx_lscustom] SCRIPT ERROR: @esx_lscustom/server/main.lua:63: attempt to get length of a nil value (local 'result')
HumanTree92 commented 2 years ago

Fixed https://github.com/HumanTree92/esx_advancedvehicleshop/commit/433d3142d3fca45755cf2ead72515fe4ca0995e1