How To ?

How To Made Things For mInventory Remake

How to make clothing as items ?

You need to have codem-appearance script for this feauture. If you don't have it you can get it from here.

If you already have it , go to " codem-inventory/config/config.lua " and change this config parameter to true.

Next add this item code blocks to " codem-inventory/config/itemlist.lua " file.

    tshirt_1                     = { name = 'tshirt_1', label = 'Tshirt', weight = 100, type = 'clothes', image = 'tshirt_1.png', unique = true, useable = true, shouldClose = false, combinable = nil, description = 'A Useable Outfit' },
    torso_1                      = { name = 'torso_1', label = 'Torso', weight = 100, type = 'clothes', image = 'torso_1.png', unique = true, useable = true, shouldClose = false, combinable = nil, description = 'A Useable Outfit' },
    arms                         = { name = 'arms', label = 'Gloves', weight = 100, type = 'clothes', image = 'arms.png', unique = true, useable = true, shouldClose = false, combinable = nil, description = 'A Useable Outfit' },
    pants_1                      = { name = 'pants_1', label = 'Pants', weight = 100, type = 'clothes', image = 'pants_1.png', unique = true, useable = true, shouldClose = false, combinable = nil, description = 'A Useable Outfit' },
    shoes_1                      = { name = 'shoes_1', label = 'Shoes', weight = 100, type = 'clothes', image = 'shoes_1.png', unique = true, useable = true, shouldClose = false, combinable = nil, description = 'A Useable Outfit' },
    mask_1                       = { name = 'mask_1', label = 'Mask', weight = 100, type = 'clothes', image = 'mask_1.png', unique = true, useable = true, shouldClose = false, combinable = nil, description = 'A Useable Outfit' },
    bproof_1                     = { name = 'bproof_1', label = 'Vest', weight = 100, type = 'clothes', image = 'Armor.png', unique = true, useable = true, shouldClose = false, combinable = nil, description = 'A Useable Outfit' },
    chain_1                      = { name = 'chain_1', label = 'Chain', weight = 100, type = 'clothes', image = 'chain_1.png', unique = true, useable = true, shouldClose = false, combinable = nil, description = 'A Useable Outfit' },
    helmet_1                     = { name = 'helmet_1', label = 'Helmet', weight = 100, type = 'clothes', image = 'helmet_1.png', unique = true, useable = true, shouldClose = false, combinable = nil, description = 'A Useable Outfit' },
    glasses_1                    = { name = 'glasses_1', label = 'Glasses', weight = 100, type = 'clothes', image = 'glasses_1.png', unique = true, useable = true, shouldClose = false, combinable = nil, description = 'A Useable Outfit' },
    watches_1                    = { name = 'watches_1', label = 'Watches', weight = 100, type = 'clothes', image = 'watches_1.png', unique = true, useable = true, shouldClose = false, combinable = nil, description = 'A Useable Outfit' },
    bracelets_1                  = { name = 'bracelets_1', label = 'Bracelets', weight = 100, type = 'clothes', image = 'bracelets_1.png', unique = true, useable = true, shouldClose = false, combinable = nil, description = 'A Useable Outfit' },
    bags_1                       = { name = 'bags_1', label = 'Bags', weight = 100, type = 'clothes', image = 'bags_1.png', unique = true, useable = true, shouldClose = false, combinable = nil, description = 'A Useable Outfit' },

And restart the server.

How to make cash as an item ?

Go to " codem-inventory/config/config.lua " and change this config parameter to true. ,

Than add this code block to " codem-inventory/config/itemlist.lua " file.

    cash                         = { name = 'cash', label = 'cash', weight = 0, type = 'item', image = 'cash.png', unique = false, useable = false, shouldClose = false, description = 'A Useable BoomMic' },
How to set the spesific items to not get removed when the player dies ?

Go to " codem-inventory/config/config.lua " and change this config parameters to true. And if you want to add new items use the current template.

How to enable durability system ?

Go to " codem-inventory/config/config.lua " file and set the paramater to true.

You can adjust the items durabiltiy settings in here.

If decay equals to time durabilty of the item will drain according to items durability amount.

How to activate Discord Webhooks ?

Go to " codem-inventory/config/config.lua " and change this paramter to true.

After that you need to submit your webhooks to " editable/discordlog.lua "

How to open shop in mInventory Remake

You need to use the event down below.

And also you need to set market name and items in the " config/shops.lua " file.

RegisterNetEvent('codem-inventory:openshop', function(shopname)
    if Config.Shops[shopname] then
        OpenInventoryShop(shopname, Config.Shops[shopname])
    else
        print('not found shop')
    end
end)
How to open stash ?

You need to use the event down below. There are 2 different options, you can use any of them.

TriggerServerEvent('inventory:server:OpenInventory', 'stash', stashid,  {maxweight = 150000, slots = 50}) 
TriggerServerEvent('codem-inventory:server:openstash', stashId, slot,weight, stashlabel)
Where to find search inventory of the player/dead player event ?

Search Player

TriggerClientEvent('codem-inventory:client:robplayer')

Search Dead Player

TriggerClientEvent('codem-inventory:client:deathrob')

Last updated