![]() ![]() So now we should have two files in Steam\steamapps\common\PAYDAY 2\mods\Butts. Once you have created the mod.txt for your mod make sure you save it to the same folder you saved your lua into. ![]() If the script you are trying to run is a persist script instead of a post require than instead of using the "hooks" you will use persist_scripts like this: Sometimes you will have multiple in which case you just add more hooks inot that section so you get something like this: Usually somebody will tell you what to put in for the post require and you just copy past that in between the quotes where lib/units/weapons/newraycastweaponbase is. ![]() The hook id is going to be for post require scripts. The important parts here are the hook id and the script path. "hook_id" : "lib/units/weapons/newraycastweaponbase", This file needs to look something like this: Again we create a new text document in the Butts folder. Step five: Now we need to make our mod.txt. At this point I have a file in Steam\steamapps\common\PAYDAY 2\mods\Butts named a with the that block of code in it. Step four: Save that file (I will save it as butts as a text document (.txt)). If result then self._stored_gadget_on = self._gadget_on end Local result = NewRaycastWeaponBase_toggle_gadget_original(self) Return NewRaycastWeaponBase_on_equip_original(self)įunction NewRaycastWeaponBase:toggle_gadget() Self:set_gadget_on(self._stored_gadget_on or 0, false) Local NewRaycastWeaponBase_toggle_gadget_original = NewRaycastWeaponBase.toggle_gadget Local NewRaycastWeaponBase_on_equip_original = NewRaycastWeaponBase.on_equip Step three: Create a new text document (you can do this with notepad) in your Butts folder and paste the big block of code into it. Step two: for BLT go into the mods folder and make a new folder for the new mod you plan on installing. Step one: Locate your Payday 2 directory if you haven't already. RAW Paste Data I will be using the made up Butts mod for this example because I am apparently a child today. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |