Game is crashing at around 45 seconds later after I lauched the trainer, even though I didnt modified the script..
PatchedPayday 2 full release LUA hack.
my only problem atm (wich is minimal compared to some users here) is to remove my weapons mod from inventory,i am messing with the lua dump now,but since i dont know sh i dont think i go anywhere soon,but thats what i found
self:remove_item( global_value, "weapon_mods", part_id )
OBS:
managed it to work here is the code for remove ALL upgrades from inventory
for mod_id,_ in pairs(tweak_data.blackmarket.weapon_mods) do
tweak_data.blackmarket.weapon_mods[ mod_id ].unlocked = true
managers.blackmarket:remove_item("normal", "weapon_mods", mod_id, false)
end
self:remove_item( global_value, "weapon_mods", part_id )
OBS:
managed it to work here is the code for remove ALL upgrades from inventory
for mod_id,_ in pairs(tweak_data.blackmarket.weapon_mods) do
tweak_data.blackmarket.weapon_mods[ mod_id ].unlocked = true
managers.blackmarket:remove_item("normal", "weapon_mods", mod_id, false)
end
My crashing problem is fixed but I got another one: when I take the ballistic vest or something else, it always give me the basic suit.
Guys, is there a way to change the spawnable A.I. to a different model like a friendly cop or friendly swat?
I really want to know D:
I really want to know D:
Dont know if this works
Found this code:
Found this code:
Code:
function FollowUnit()
local new_objective
local valid_criminals = {}
for pl_key, pl_record in pairs( managers.groupai:state():all_player_criminals() ) do
if pl_record.status ~= "dead" then
table.insert( valid_criminals, pl_key )
end
end
if #valid_criminals > 0 then
local follow_unit = managers.groupai:state():all_player_criminals()[ valid_criminals[ math.random( #valid_criminals ) ] ].unit -- pick a random player
new_objective = {
type = "follow",
follow_unit = follow_unit,
scan = true,
is_default = true
}
end
return new_objective
end
function SpawnMob()
local spawn_point = managers.network:game():get_next_spawn_point()
local spawn_pos = spawn_point.pos_rot[1]
local spawn_rot = spawn_point.pos_rot[2]
local unit_name = Idstring( "units/payday2/characters/npc_criminals_suit_1/dallas/npc_criminal_suit_dallas" )
local myobjective = FollowUnit()
local spawn_ai = {
init_state = "idle",
objective = myobjective
}
local unit = World:spawn_unit( unit_name, spawn_pos, spawn_rot )
unit:movement():set_character_anim_variables()
unit:brain():set_spawn_ai( spawn_ai )
unit:brain():set_active( true )
managers.network:session():send_to_peers_synched( "set_unit", unit, "random", "", 0 )
end
if Network:is_server() then
SpawnMob()
managers.hud:show_hint( { text = "AI Spawned" } )
end
how to i add more trip mines
Is there any code to remove all the attachements I've unlocked?
Any one know how to instant drill!? and super speed runing kthxbye
One last question: What is the code for remove cash? I tested managers.money:_set_money(0) but It doesn't seems to appear in the Debug menu.
great game dont cheat guys
This thread is closed for replies.
