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.

  1. Go to your database - owned_vehicles / player_vehicles table

  2. Find your vehicle and see what value is in the type column

  3. By default it should be vehicle / boat / plane / helicopter, but it's probably different because your vehicleshop script has a different type, in which case you should adjust this in the script

  4. Go to vms_garagesv2/config/config.lua - find the Config.VehicleTypes class and adjust "CHANGED" to the one present

    Config.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}
    }
  5. Then go to vms_garagesv2/config/config.garages.lua and adjust each type in Config.Impounds and Config.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: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
;

Last updated

Was this helpful?