It seems the syntax QBCore uses has been updated which is causing this error. Try changing QBCore.Shared.Vehicles on line 97 to QBShared.Vehicles (or see what it should be called by looking into qbcore/shared/vehicles.lua to see what variable name should be used if you are using a different version)