Hello I am getting this error SCRIPT ERROR: @esx_policejob/client/main.lua: attempt to index a nil value (field ‘?’). The police menu all works fine until you try to search someone. This is the lines it is calling for
for i=1, data.inventory, 1 do
if data.inventory[i].count > 0 then
table.insert(elements, {
label = _U(‘confiscate_inv’, data.inventory[i].count, data.inventory[i].label),
value = data.inventory[i].name,
itemType = ‘item_standard’,
amount = data.inventory[i].count
})
end
end
Is there anything wrong with these lines?

