Payday 2 Lua Scripts

Posts 136–147 of 147 · Page 10 of 10
it always tell me this--(280): error:unexpected symbol near '"welcome_to_the_jungle"'
who have any idea?
Is there a way to replenish ammo for the currenty selected weapon only?


Code:
    local player_unit = managers.player:player_unit()
    for id,weapon in pairs( player_unit:inventory():available_selections() ) do
        if alive( weapon.unit ) then
            weapon.unit:base():replenish()
            managers.hud:set_ammo_amount( id, weapon.unit:base():ammo_info() )
        end
    end
This one replenishes both primary weapon and secondary.
Quote Originally Posted by ThatBenderGuy View Post
Okay so I have blt installed how do i encorparate the scripts into BLT's mod system? for instance i am trying to do the super jump code
Make a new folder in your /mods/ directory, such as cheats. Add a XML file called cheats.xml and your cheats.lua file in this new directory.

The contents of your XML file should look something like this:
Code:
{
    "name": "Payday 2 LUA Scripts",
    "description": "The collection of hacks by MixNova",
    "author": "MixNova",
    "contact": "mpgh",
    "version": "1.1",
    "priority": 1001,
    "updates": [{
        "revision": 15,
        "identifier": "cheats"
    }],
    "persist_scripts": [{
        "global": "cheats",
        "script_path": "cheats.lua"
    }]
}
hey dude how do you start this?
How do i install it?

- - - Updated - - -

How do i install this
How do i use this?, i added the IPHLPAPI.dll and i put the code into a .lua
Really appreciated this bro
Posts 136–147 of 147 · Page 10 of 10

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us