Docs
Main settings (
Connect your own systems (
View product page
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 builderInstallation
- Put the
x3d_vehiclestoragefolder inresources/ - Run
install.sql(creates thex3d_vehiclestoragetable) - In
server.cfg,ensure x3d_inventoryfirst, thenensure x3d_vehiclestorage - Your vehicles table isn't
owned_vehicles? SetConfig.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)