How Can I check trunk items for ox_inventory
imahdiy opened this issue · 1 comments
imahdiy commented
Greetings,
I've encountered a bit of a dilemma. I'm attempting to inspect the items within a vehicle's trunk using the following trigger:
local vehicleInventory = exports.ox_inventory:GetInventoryItems(vehiclePlate)
However, it seems the trigger isn't functioning as expected. Could you kindly offer any guidance or solutions to help resolve this issue?
Thank you in advance for your assistance.
vrnagy commented
For trunks and gloveboxes You should prefix the plate either with trunk
or glovebox
.
For trunks it should look like this:
local vehicleInventory = exports.ox_inventory:GetInventoryItems('trunk' .. vehiclePlate)