[Free] Ox Inventory

is robbing players already in the inventory script?

yes, it is

Hi,
your ESX Legacy version is too old for the ox_inventory.
You have to update your ESX Legacy. GitHub - esx-framework/esx_core: Official Repo For core resources for esx-legacy

Hi,
yes, it is.
Its in the official documentation of ox_inventory.
Just use the following export:
exports.ox_inventory:openNearbyInventory()

If you dont know how to implement that, ask ChatGPT :wink:

1 Like
  • How can I make it so that when I buy 1 item I get more, for example for ammunition?
  • Can I make that when I buy a weapon it appears with accessories?

Where do I put this line of code ?

on inventory cfg

Does anyone know how to add more than 5 slots to the hotbar?

confusing question…edited to avoid confusion by future readers.

Hello, your problem would have to be solved by putting as explained in the documentation:
Resource start order
It’s important for your resources to start in a logical order to prevent errors from missing dependencies.
(start o ensure)
start oxmysql # this should be one of the first resources
start ox_lib
start framework # the name of your framework (i.e. ox_core, es_extended, qb-core)
start ox_target
start ox_inventory

Okay so, after adding the ensure list of dependencies in server.cfg, I am getting these 3 new errors:



Anyone know how to fix this?

Hello and sorry for not answering sooner, I am going to leave you a link where you install ox_inventori and that you have to place for a better understanding, the video is in Spanish, but you will know what to do, good luck with it.

2 Likes

@unlmtd start ist in your cfg in the following order like above and you should be fine

ensure oxmysql

ensure ox_lib

ensure esx/qb or else

ensure ox_target

ensure ox_inventory

but its important to have the configs from the docs

like inventory.cfg

or target.cfg

you can find them here:

if you not start everything in the correct order it will say no such export or missing dependencies.

and make sure to have the latest releases of the resources.

1 Like

Thank you so much Alejo and Till. I finally got it figured out and working. :sunglasses:
It was only a matter of creating the separate cfg files for lib/target/inventory, making sure start order was correct and updating the said resources to the latest release. Thanks again guys!

1 Like

glad to hear

excellent! It was easier to watch the video, I imagined that lua was missing and it was more complicated to explain because of my English :rofl:

edit: nevermind. “server console” in the error message refers to the Live Console in txAdmin. Everything is smooth.

Cool.

Why is this not working /giveweapon ?

go to web/build/assets/ and open the .css file,
change this
grid-template-columns: repeat(5, 10.2vh);
to
grid-template-columns: repeat(7, 10.2vh);