Skip to content
This page was translated from German using AI. If anything is unclear, the German version applies.

HM VehicleStorage - Configuration

Here you learn how to create new storage compartments in the config.lua of HM VehicleStorage.

SettingTypeDescription
Config.Frameworkstring"esx", "qb" or "standalone".
Config.Inventorystring"ox" or "qb".
Config.Inputstring"ox", "qb" or "esx_legacy".

Defining storage compartments (Config.Entries)

Section titled “Defining storage compartments (Config.Entries)”

In the Config.Entries list you can define as many storage compartments as you like. Each compartment can be bound either to a licence plate or to a vehicle model.

  • plates: A list of licence plates (e.g. { 'abc123' }).
  • models: A list of vehicle models (e.g. { 'police', 'ambulance' }).
  • pin: The default PIN to open the compartment.
  • slots: Number of inventory slots.
  • weight: Maximum weight in grams (e.g. 5000 for 5 kg).
  • requiredJob: (Optional) Which job has access (string, table or list).
  • hasBTM / hasSecurity: Flags for special UI logic or display modes.
Config.Entries = {
-- A specific vehicle with licence plate
{
plates = { 'nrw42900' },
pin = '1234',
slots = 10,
weight = 5000,
requiredJob = 'police'
},
-- All vehicles of the model 'police'
{
models = { 'police', 'police2' },
pin = '0000',
slots = 15,
weight = 10000,
requiredJob = { name = 'police', grade = 2 }
}
}