CreateThread(function()
for k, v in pairs(Config.Items) do
if v.name and v.name ~= '' then
ESX.RegisterUsableItem(v.name, function(source)
local event = 'heist_consumables:' .. v.name
local xPlayer = ESX.GetPlayerFromId(source)
end)
else
print('no item name found')
end
end
end)