#Blacklist Items from cars / Jobs allowed
1 messages · Page 1 of 1 (latest)
Whats the difference? Like in the functionality?
1st you are not using the bridge
and not loading a full ass core to only use 1 thing from it
local excludedJobs = {
rea = true,
police = true,
}
exports.ox_inventory:registerHook('swapItems', function(payload)
local src = payload.source
if not src then return end
local playerData = exports.qbx_core:GetPlayer(src)
if not playerData then return end
if playerData.job and excludedJobs[playerData.job.name] then
return true
end
return false
end, {
itemFilter = {
black_money = true,
backpack = true,
kq_meth_low = true,
kq_meth_mid = true,
kq_meth_high = true,
kq_ethanol = true,
WEAPON_DIGISCANNER = true,
},
inventoryFilter = {
'^glove[%w]+',
'^trunk[%w]+',
}
})