Docs

X3D Vehicle Storage

Free ESX trunk storage on the x3d_inventory screen: capacity by vehicle class and model, owner-only access, job cars and an admin view.

Buy / Get freeConfig builder

Installation

  1. Put the x3d_vehiclestorage folder in resources/
  2. Run install.sql (creates the x3d_vehiclestorage table)
  3. In server.cfg, ensure x3d_inventory first, then ensure x3d_vehiclestorage
  4. Your vehicles table isn't owned_vehicles? Set Config.OwnedVehiclesTable

Requirements

Needs Notes
ESX Legacy (es_extended) uses @es_extended/imports.lua
oxmysql
x3d_inventory the trunk uses this bag's storage screen (free in the X3D store)

Main settings (config.lua)

Setting What it does
Config.Locale 'th' or 'en'
Config.OpenTrunkKey key that opens the trunk (default h)
Config.VehicleWeightByClass / Config.VehicleWeightByModel capacity (kg) by class/model · 0 = no trunk
Config.CheckOwnership owner-only access
Config.JobVehicleAccess jobs that can open job vehicles
Config.CheckLockStatus / Config.LockBypassJobs locked cars stay closed, except listed jobs
Config.ItemBlacklist items that can't go in a car
Config.EnableGlovebox also open the same storage from the front of the car
Config.AdminGroups groups allowed to use /trunkadmin <plate>

Connect your own systems (addons/hooks/server.lua)

Hook What it does
Hooks.HasVehicleKey(source, plate) does the player hold a key for this car (your key script)
Hooks.HasSharedAccess(identifier, row) shared access such as gang cars (row = the vehicle's DB row)
Hooks.Log(source, kind, data) log admin actions

Exports

  • client: OpenRemote(plate)
  • server: GetVehicleStorageData(plate), IsStorageOpen(source)
View product page