foreward: i have legitametely bought almost all the dlc (i miss just the osts and clover character pack)
i see lot of mods here, but the ones that really interests me are skills points, money and unlock all masks and weapons mod.
i made my own .lua (i'll post it down code), and skills and money mods works without a flaw, but masks and weapons mod mods works too, but then, when i go in the inventory to buy some new dlc masks or dlc weapon mods it give me that i can't buy them because they are from the "lootbag dlc" wich i don't own (wich also doesn't exist). the problem is that before i apply this mod, they were there and i could buy the one that i have unlocked (because i own almost all dlc), but now i can't anymore (weapons mods strangely i can, they are duplicate: there are e.g. some sight from dlc wich is locked, and also there is the exact sight unlocked to buy).
how can i fix this? how can i have again all masks unlocked?
here the mod i made (copied from here):
masks and weapon mods
Code:
-------------------------------------------------------------------------
-- GiVE iTEMS ("masks", "materials", "textures", "colors", "weapon_mods")
-------------------------------------------------------------------------
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
-- Example calls to get one of everything:
giveitems(1, "masks")
giveitems(1, "materials")
giveitems(1, "textures")
giveitems(1, "colors")
giveitems(1, "weapon_mods")
skills and money
Code:
if managers.hud then
managers.hud:show_hint( { text = "Executed script.lua" } )
end
if managers.hud then
managers.hud:show_hint( { text = "Executed script.lua" } )
end
managers.money:_add_to_total(15000000000) -- money
-- Message on screen
if managers.hud then
managers.hud:show_hint( { text = "LUA script loaded! Complete the mission to see effect." } )
end
managers.skilltree:_set_points(500) -- skill points
-- Message on screen
if managers.hud then
managers.hud:show_hint( { text = "LUA script loaded! Complete the mission to see effect." } )
end
managers.experience:_set_current_level(74) -- level
-- Message on screen
if managers.hud then
managers.hud:show_hint( { text = "LUA script loaded! Complete the mission to see effect." } )
end
thanks for help!
PS: of course I tried to delete the mods from payday 2 installation folder, but even in that way, it does not come back to normal.