Hello so I am using QBCore-vehicleshop v1 but I am running into an issue with the script this is the error I am getting the following error’s any one have an idea why QBCore comes up as Nill?
Link this ‘QBCore-vehicleshop v1’. Like @inGyni said above, it cannot find qb-core, which means the framework either A) isn’t started, or B) isn’t grabbing the export.
I did solve that issue just didn’t have a chance to respond but now I am running into a brand new issue when someone goes to a custom dealership. error below and code at line 192 the weird behavier prevents menu from showing up to pick a vehicle but it only happens when you walk up to a buyable vehicle.
if not QB.VehicleShops[ClosestShopIndex]["ShowroomVehicles"][ClosestVehicle].inUse then
local vehicleHash = GetHashKey(QB.VehicleShops[ClosestShopIndex]["ShowroomVehicles"][ClosestVehicle].chosenVehicle)
local displayName = QBCore.Shared.Vehicles[QB.VehicleShops[ClosestShopIndex]["ShowroomVehicles"][ClosestVehicle].chosenVehicle]["name"]
local vehPrice = QBCore.Shared.Vehicles[QB.VehicleShops[ClosestShopIndex]["ShowroomVehicles"][ClosestVehicle].chosenVehicle]["price"]
if not QB.VehicleShops[ClosestShopIndex]["ShowroomVehicles"][ClosestVehicle].inUse and not QB.VehicleShops[ClosestShopIndex]["OwnedJob"] then
if not QB.VehicleShops[ClosestShopIndex]["opened"] then