Keychain
When using ox_inventory, the doorlock offers a โkeychainโ option. This allows you to insert keys and door cards into the item.
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:
setContainerProperties('rd_keychain', {
slots = 10,
maxWeight = 1000.0,
whitelist = { 'door_key', 'door_card' }
})You can edit the code for maximum weight or number of slots.
In the final version, the end of the file should look like this:

Last updated