ExclamationPayday 2 LUA Hook TUT (Easy)

Posts 91105 of 197 · Page 7 of 14
Quote Originally Posted by cnehila23 View Post
The video is being processed right now. It will be done shortly.

Post it ASAP !
Quote Originally Posted by nilepwns View Post
Ok, so im no expert with lua. And im still experimenting these things so something might go wrong, you might lose your saves so be careful. You've been warned.

There's a tutorial, scroll down. This does work with the real deal, after patch 1, although when i go to "sights" and "masks" my game crashes, so far.

I managed to get me to the lvl i wanted to, the amount of money i wanted to, the amount of skillpoints i wanted to etc... But appearently this requires all time use of the scirpt. No execute but these files must be in payday 2 folder.

When i go to "sights" and "masks" my game crashes, so far.

This should get you to lvl 28 and give you skill points and money. The money cheat in the original post doesn't work. Ovibiously you can change the "28" to anything you want..



This unlocks all WEAPONS



TUT : so, download the attachment in the original post, follow the instructions and open script.lua. Then add anything you want above, will add more when i have time. Remember to press insert to execute, delete to spawn the ai.


Taking no credits, found these all over the internet, giving credits to thread starter for sharing this.. This is just a small clarification.

The AI dude is awesome and you can have lots, lots of them

If i typed something wrong or if something else is wrong, tell me, please.
You think you can find weapon mods?
I would be so thankful, cause pressing "debug>inventory" crashes for me, for some reason.
Quote Originally Posted by dorfff View Post
You think you can find weapon mods?
I would be so thankful, cause pressing "debug>inventory" crashes for me, for some reason.
bro, you can do that, if you open the mission, and start playing, click escape, then go to debug menu and click on lootbag items or something else you'll see that
Quote Originally Posted by ZiLEE View Post
bro, you can do that, if you open the mission, and start playing, click escape, then go to debug menu and click on lootbag items or something else you'll see that
Could you explain a bit more?
If I press the lootbag sure I get alot of things, but Then I can't remove the lua folder cause it makes my save reset.
Quote Originally Posted by dorfff View Post
Could you explain a bit more?
If I press the lootbag sure I get alot of things, but Then I can't remove the lua folder cause it makes my save reset.
it reseted for me and i installed update # 1 by flt, google it and after that everything stays
The video will be up very soon. Sorry for taking so long, the processing part is taking forever.
not working crashs game. i am not stupid i followed the instructions and it just crashs the game i did not change anything..i think it needs to be updated. would be nice if he posted which versions this work for.
Quote Originally Posted by cyborgplague View Post
not working crashs game. i am not stupid i followed the instructions and it just crashs the game i did not change anything..i think it needs to be updated. would be nice if he posted which versions this work for.
You can delete both folders and only leave the .dll and the script, and do what @nilepwns said. it worked for me.
Is this outdated or im i just not doing it right? I got everything to work but with the lua hook you can't play online at all so i tried removing the lua and it resets my save file, Good thing i backed my save file up.
Quote Originally Posted by dregomz View Post
somehow i mess with saves and now i have 30lvl and i can get xp above lvl 30 but lua is not working and also dll

---------- Post added at 05:57 AM ---------- Previous post was at 05:39 AM ----------

i have fix for lvls

" Actually - this dll still works fine.

If all you want is the debug menu, remove the LUA folder, and the dump folder.

In script.lua put

if managers.menu then
managers.menu:set_debug_menu_enabled(true)
end

Press insert while in a mission, then hit ESC"

i'm now lvl 33 YEAH! i.imgur.com/3OqsJlj.jpg
--

People with issues, read this post.

Code:
if managers.menu then
managers.menu:set_debug_menu_enabled(true)
end
If you use this by itself, it will add all weapons, attachments, etc. It will also give you money. If you want your level to stick, use just the dll and the script.lua (edit the script and change the level you want, the skill points you want - after you cap, you can do 1337, so it says you're 1337, or 0 so it doesn't annoy you by telling you, you can spend skill points.
Quote Originally Posted by emitchell29 View Post
--

People with issues, read this post.

Code:
if managers.menu then
managers.menu:set_debug_menu_enabled(true)
end
If you use this by itself, it will add all weapons, attachments, etc. It will also give you money. If you want your level to stick, use just the dll and the script.lua (edit the script and change the level you want, the skill points you want - after you cap, you can do 1337, so it says you're 1337, or 0 so it doesn't annoy you by telling you, you can spend skill points.
You're the best!
Now I have everything important (beside minions ofcourse).
Quote Originally Posted by emitchell29 View Post
--

People with issues, read this post.

Code:
if managers.menu then
managers.menu:set_debug_menu_enabled(true)
end
If you use this by itself, it will add all weapons, attachments, etc. It will also give you money. If you want your level to stick, use just the dll and the script.lua (edit the script and change the level you want, the skill points you want - after you cap, you can do 1337, so it says you're 1337, or 0 so it doesn't annoy you by telling you, you can spend skill points.
Does this just set everything to max? or can you pick and choose??
Quote Originally Posted by rogeruk View Post
Does this just set everything to max? or can you pick and choose??
Skills you mean? It gives you points, you choose what to spend them on.
Some other codes:

All weapons accessories, color palettes and masks vinyls
Code:
for i=1, 7 do
        managers.lootdrop:debug_drop( 1000, true, i )
    end
    game_state_machine:change_state_by_name( "victoryscreen", { num_winners = 2, personal_win = alive( managers.player:player_unit() ) } )

Give Exp
Code:
managers.experience:debug_add_points( 2500, false )

End Mission
Code:
game_state_machine:change_state_by_name( "victoryscreen", { num_winners = 2, personal_win = alive( managers.player:player_unit() ) } )

Give money, should be around 1m
Code:
managers.money:debug_job_completed( 3 )


Add weapon
Code:
local player = managers.player:player_unit()
	if player then
		player:inventory():add_unit_by_name( Idstring("units/weapons/mp5/mp5"), false )
		-- player:inventory():add_unit_by_name( Idstring("units/weapons/r870_shotgun/r870_shotgun"), false )
	end


All steam achievements for payday (SAM doesn't work!)
Code:
--steam achie
if managers.achievment then
    for id,_ in pairs(managers.achievment.achievments) do
        managers.achievment:award(id)
    end
end

I have not got me, I've found and share with the people in the forum
hi
Tutorial add money ?
Thank
Posts 91105 of 197 · Page 7 of 14
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?