Skip to main content
Resolves the full inventory ID for a vehicle compartment using only the vehicle plate.

Parameters

Return value

Notes

Searches in this order:
  1. Owned vehicles database (ESX: owned_vehicles, QBCore: player_vehicles)
  2. Existing inventories in the jaksam_inventory table
  3. Currently spawned vehicles (GetAllVehicles - NPC vehicles)
For owned vehicles, automatically creates inventory if it doesn’t exist. Created inventories are persistent for owned vehicles, temporary for NPC vehicles. Works even if the vehicle is not currently spawned (garage).