Keychain
When using ox_inventory, the doorlock offers a “keychain” option. This allows you to insert keys and door cards into the item.
Compatibility
The "keychain" function only works with ox_inventory
, since it offers a container system per item. Keychain can not be opened when using an inventory other than ox_inventory
.
Setup
After uploading the items according to the tutorial in Configurations section, go to ox_inventory/modules/items/containers.lua
and insert the following code at the end of the file:
You can edit the code for maximum weight or number of slots.
It is important that we still have return containers
at the end of the file!
In the final version, the end of the file should look like this:
Last updated
Was this helpful?