Skip to main content
Inventory 2.0

Config

Configure inventory behavior, storage limits, framework integrations and vehicle capacity.

Main config

Configuration

Inventory configuration

Review the main settings and connect the inventory to your server systems.

  • Config.Locale — Sets the locale. The default value is 'en'.
  • Config.Debug — Enables or disables server and client console logs. It is enabled by default.
  • Config.FactionSafes — Defines faction names and safe positions.
  • Config.OtherInventories — Defines global inventories, house inventories and other storage types. See the assign function for more details.
  • Config.Weapons — Defines weapons and their required ammunition. Each item name must match its GTA V weapon name, such as WEAPON_PISTOL.
  • Config.SaveFreq — Sets how often inventories are saved.
  • Config.DeleteItemsDeath — Determines whether tradable and deletable items are removed when a player dies.
  • Config.StartingItems — Defines the inventory items given to a player when they join the server.
  • Config.DefaultSlots — Sets the default number of inventory slots for vehicles, safes and other storage types.
  • Config.DefaultWeights — Sets the default maximum inventory weights. Vehicles listed in config_weights.lua use their defined values instead.
  • Config.IgnoreSlotsOnPickup — Prevents newly collected items from being placed automatically in action slots 1–5. When enabled, items are placed from slot 6 onward.
  • Config.vehicleExistDatabase — Validates a vehicle against the database before creating its trunk or glovebox inventory. Vehicle data is cached in server-side tables after loading, so the database is not queried repeatedly.
  • Config.isPlayerAdmin — Connects your admin system so the give command can be used.
  • Config.getPlayerFaction — Connects your faction getter. It must return a faction name defined in Config.FactionSafes so access can be validated.
  • Config.GetPlayerName — Connects your roleplay name getter.
  • Functions.SendNotification — Connects your notification system.

Vehicle weights

Add vehicles to VehicleWeights to define separate trunk and glovebox capacities.

Configuration

Vehicle storage capacity

Set the trunk and glovebox weight available for each vehicle model.

Example
VehicleWeights = {
['blade'] = { trunk = 350, glovebox = 50 },
['buccaneer'] = { trunk = 300, glovebox = 65 }
}