swkeep / keep-bags

A bag / backpacks script for fivem (esx,qbcore/qbox)
GNU General Public License v3.0
147 stars 37 forks source link

Improvement #8 configurable backpack whitelist/blacklist + global blacklist items #9

Closed abdel1touimi closed 1 year ago

abdel1touimi commented 1 year ago

Improvement #8 Now in config we can add whitelisted and blacklisted items depending on backpack type

Config.Blacklist_items = {
     active = true,
     list = {
          'weapon_rpg', -- existing global blacklist
     },
     backpack2 = { -- new configurable blacklist depending on backpack
          ['lockpick'] = true
     }
}

Config.Whitelist_items = {
     paramedicbag = { -- new configurable whitelist depending on backpack
          ['firstaid'] = true,
          ['bandage'] = true,
          ['ifaks'] = true,
          ['painkillers'] = true,
          ['walkstick'] = true,
     },
}
swkeep commented 1 year ago

Thanks, I merged it with the main branch.

abdel1touimi commented 1 year ago

Thanks, I merged it with the main branch.

Thank you,

It's my bad I added some other code.

I guess you merged also another backpack (fishicebox).

it's configured and ready to use

but there's others fish item in the whitelist config..

It will not break the code. it's just items that are in doj-fishing, I wanted to replace his box with a backpack since it's perfectly configurable.

sorry again my bad.

swkeep commented 1 year ago

Yeah, don't worry about it. I didn't see an issue with adding the fishicebox it just needs an update in the readme and removing Whitelist_items items. More backpacks for everyone.