-------------------------------------------------------------------------
-- GiVE iTEmS ("masks", "materials", "textures", "colors", "weapon_mods")
-- example: giveitems( 50, "masks")
-------------------------------------------------------------------------
function giveitems( times, type )
for i=1, times do
for mat_id,_ in pairs(tweak_data.blackmarket[type]) do
if _.infamous then
managers.blackmarket:add_to_inventory("infamous", type, mat_id, false)
elseif _.dlc then
managers.blackmarket:add_to_inventory("preorder", type, mat_id, false)
else
managers.blackmarket:add_to_inventory("normal", type, mat_id, false)
end
end
managers.blackmarket:remove_item("normal", "materials", "plastic", false)
managers.blackmarket:remove_item("normal", "colors", "nothing", false)
end
end
giveitems( 2, "weapon_mods" )
giveitems( 5, "masks" )
giveitems( 5, "materials" )
giveitems( 5, "textures" )
giveitems( 5, "colors" )