HM VehicleStorage - Configuration
Here you learn how to create new storage compartments in the config.lua of HM VehicleStorage.
Global settings
Section titled “Global settings”| Setting | Type | Description |
|---|---|---|
Config.Framework | string | "esx", "qb" or "standalone". |
Config.Inventory | string | "ox" or "qb". |
Config.Input | string | "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.
Parameters per entry:
Section titled “Parameters per entry:”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.5000for 5 kg).requiredJob: (Optional) Which job has access (string, table or list).hasBTM/hasSecurity: Flags for special UI logic or display modes.
Example configuration
Section titled “Example configuration”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 } }}