Common Errors
In this section, you will find answers to commonly encountered issues. Remember that most errors stem from incorrect configuration, lack of required resources, or insufficient modification.
Bear in mind that troubleshooting requires patience and precision. Try to carefully analyze the errors and systematically review possible solutions.
If the issue persists after verifying the configuration and available resources, please contact the support on the VMS Discord.
Notification: This parking lot is not suitable for this type of vehicle...
This means that your vehicle type does not coincide with the parking lot where you are trying to park your vehicle.
Go to your database -
owned_vehicles/player_vehiclestableFind your vehicle and see what value is in the
typecolumnBy default it should be
vehicle/boat/plane/helicopter, but it's probably different because your vehicleshop script has a differenttype, in which case you should adjust this in the scriptGo to vms_garagesv2/config/config.lua - find the
Config.VehicleTypesclass and adjust"CHANGED"to the one presentConfig.VehicleTypes = { ['vehicle'] = {name = "CHANGED" --[[ <= here ]], label = "vehicle", defaultImpound = "Impound1", autoAddToImpoundAfterRestart = true}, ['boat'] = {name = "boat", label = "boat", defaultImpound = "ImpoundBoat", autoAddToImpoundAfterRestart = true}, ['plane'] = {name = "plane", label = "plane", defaultImpound = "ImpoundPlane", autoAddToImpoundAfterRestart = true}, ['helicopter'] = {name = "helicopter", label = "helicopter", defaultImpound = "ImpoundHeli", autoAddToImpoundAfterRestart = true} }Then go to vms_garagesv2/config/config.garages.lua and adjust each
typeinConfig.ImpoundsandConfig.Garages
Notification: You are not the owner of this vehicle, you cannot park it.
This means that the vehicle does not belong to you, make sure that the ID in your owned_vehicles / player_vehicles is the same as yours.
If you are using the player_vehicles table, you need to adjust the table and column names to match your current one in config.server.lua
SV.Database = {
['table:owned_vehicles'] = 'player_vehicles', -- -- owned_vehicles => player_vehicles
['column:owner'] = 'citizenid', -- owner => citizenid
['column:company'] = 'company',
['column:gang'] = 'gang',
['column:plate'] = 'plate',
['column:vehicle'] = 'mods', -- vehicle => mods
['column:type'] = 'type',
}Error: Unknown 'type' in 'where clause' when interacting with garage.
If you are a QB-Core user, and you are using the default player_vehicles table, it means that you have not added the required columns to this table.
Use the query below to enter the missing data.
ALTER TABLE `player_vehicles`
ADD COLUMN `type` varchar(50) NOT NULL DEFAULT 'vehicle',
ADD COLUMN `company` varchar(50) DEFAULT NULL,
ADD COLUMN `gang` varchar(50) DEFAULT NULL,
ADD COLUMN `vin` varchar(17) DEFAULT NULL,
ADD COLUMN `netid` int(11) DEFAULT NULL,
ADD COLUMN `milage` int(11) DEFAULT NULL,
ADD COLUMN `garageSpotID` int(11) DEFAULT NULL,
ADD COLUMN `parking_date` int(11) DEFAULT NULL,
ADD COLUMN `impound_date` int(11) DEFAULT NULL,
ADD COLUMN `impound_data` longtext DEFAULT NULL,
ADD COLUMN `insurance` longtext DEFAULT NULL
;Falling vehicle suspension (damage) on qb-core/qbx_core
Go to your qb-core/client/functions.lua
Find function
QBCore.Functions.GetVehiclePropertiesFind the following code inside the function:
bodyHealth = QBCore.Shared.Round(GetVehicleBodyHealth(vehicle), 0.1),
engineHealth = QBCore.Shared.Round(GetVehicleEngineHealth(vehicle), 0.1),
tankHealth = QBCore.Shared.Round(GetVehiclePetrolTankHealth(vehicle), 0.1),
fuelLevel = QBCore.Shared.Round(GetVehicleFuelLevel(vehicle), 0.1),
dirtLevel = QBCore.Shared.Round(GetVehicleDirtLevel(vehicle), 0.1),
oilLevel = QBCore.Shared.Round(GetVehicleOilLevel(vehicle), 0.1),Replace the with the following:
bodyHealth = math.floor(GetVehicleBodyHealth(vehicle)),
engineHealth = math.floor(GetVehicleEngineHealth(vehicle)),
tankHealth = math.floor(GetVehiclePetrolTankHealth(vehicle)),
fuelLevel = math.floor(GetVehicleFuelLevel(vehicle)),
dirtLevel = math.floor(GetVehicleDirtLevel(vehicle)),
oilLevel = math.floor(GetVehicleOilLevel(vehicle)),Find function
QBCore.Functions.SetVehiclePropertiesFind the following code inside the function:
if props.bodyHealth then
SetVehicleBodyHealth(vehicle, props.bodyHealth)
end
if props.engineHealth then
SetVehicleEngineHealth(vehicle, props.engineHealth)
end
if props.tankHealth then
SetVehiclePetrolTankHealth(vehicle, props.tankHealth)
end
if props.fuelLevel then
SetVehicleFuelLevel(vehicle, props.fuelLevel)
end
if props.dirtLevel then
SetVehicleDirtLevel(vehicle, props.dirtLevel)
end
if props.oilLevel then
SetVehicleOilLevel(vehicle, props.oilLevel)
endReplace the with the following:
if props.bodyHealth then
SetVehicleBodyHealth(vehicle, props.bodyHealth + 0.0)
end
if props.engineHealth then
SetVehicleEngineHealth(vehicle, props.engineHealth + 0.0)
end
if props.tankHealth then
SetVehiclePetrolTankHealth(vehicle, props.tankHealth + 0.0)
end
if props.fuelLevel then
SetVehicleFuelLevel(vehicle, props.fuelLevel + 0.0)
end
if props.dirtLevel then
SetVehicleDirtLevel(vehicle, props.dirtLevel + 0.0)
end
if props.oilLevel then
SetVehicleOilLevel(vehicle, props.oilLevel + 0.0)
endLast updated
Was this helpful?