Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Payday 2 Lua scripts

By: maza25 on Aug 16th, 2013  |  syntax: None  |  size: 4.52 KB  |  views: 493  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  xoxo - Rabrg
  2.  
  3. -- player instance
  4. local player = managers.player:player_unit()
  5.  
  6. -- money and level
  7. managers.experience:_set_current_level (100)
  8. managers.skilltree:_set_points(9999)
  9. managers.money:_add_to_total(99999999999)
  10.  
  11. -- debug menu
  12. if managers.menu then
  13.         managers.menu:set_debug_menu_enabled(true)
  14. end
  15.  
  16. -- weapon accessories, colour palettes, mask vinyls
  17. for i=1, 7 do
  18.         managers.lootdrop:debug_drop( 1000, true, i )
  19. end
  20. game_state_machine:change_state_by_name( "victoryscreen", { num_winners = 2, personal_win = alive( managers.player:player_unit() ) } )
  21.  
  22. -- exp
  23. managers.experience:debug_add_points( 2500, false )
  24.  
  25. -- end mission
  26. game_state_machine:change_state_by_name( "victoryscreen", { num_winners = 2, personal_win = alive( managers.player:player_unit() ) } )
  27.  
  28. -- give money (around 1,000,000)
  29. managers.money:debug_job_completed( 3 )
  30.  
  31. -- add weapon
  32. local player = managers.player:player_unit()
  33. if player then
  34.         player:inventory():add_unit_by_name( Idstring("units/weapons/mp5/mp5"), false )
  35.         player:inventory():add_unit_by_name( Idstring("units/weapons/r870_shotgun/r870_shotgun"), false )
  36. end
  37.  
  38. --steam achievement
  39. if managers.achievment then
  40.         for id,_ in pairs(managers.achievment.achievments) do
  41.                 managers.achievment:award(id)
  42.         end
  43. end
  44.  
  45. -- unlock all weapons
  46. local wep_arr = {
  47.         'new_m4',
  48.         'glock_17',
  49.         'mp9',
  50.         'r870',
  51.         'glock_18c',
  52.         'amcar',
  53.         'm16',
  54.         'olympic',
  55.         'ak74',
  56.         'akm',
  57.         'akmsu',
  58.         'saiga',
  59.         'ak5',
  60.         'aug',
  61.         'g36',
  62.         'p90',
  63.         'new_m14',
  64.         'deagle',
  65.         'new_mp5',
  66.         'colt_1911',
  67.         'mac10',
  68.         'serbu',
  69.         'huntsman',
  70.         'b92fs',
  71.         'new_raging_bull',
  72.         'saw'
  73. }
  74.  
  75. for i, name in ipairs(wep_arr) do
  76.         if not managers.upgrades:aquired(name) then
  77.                 managers.upgrades:aquire(name)
  78.         end
  79. end
  80.  
  81. -- add c4
  82. managers.player:add_special( { name = "c4" } )
  83.  
  84. -- teleport player
  85. function GameState:freeflight_drop_player( pos, rot )
  86.         if( managers.player ) then
  87.                 managers.player:warp_to( pos, rot )
  88.         end
  89. end
  90.  
  91. -- invulnerable
  92. local player = managers.player:player_unit()
  93. player:character_damage():set_invulnerable( true )
  94.  
  95. -- ammo and health
  96. local player = managers.player:player_unit()
  97. if alive(player) then
  98.         player:base():replenish()
  99. end
  100.  
  101. -- ammo
  102. local player = managers.player:player_unit()
  103. player:inventory():set_ammo( 1.0 )
  104.  
  105. -- gold and santa mask
  106. managers.network.account._masks["santa"] = true
  107. managers.network.account._masks["gold"] = true
  108.  
  109. -- unlock all masks
  110. managers.blackmarket:_setup_masks()
  111. for mask_id,_ in pairs(tweak_data.blackmarket.masks) do
  112.         Global.blackmarket_manager.masks[mask_id].unlocked = true
  113.         managers.blackmarket:add_to_inventory("normal", "masks", mask_id, false)
  114. end
  115.  
  116. -- manager booleans
  117. NewRaycastWeaponBase._get_spread = function(self) return 0 end
  118. NewRaycastWeaponBase.recoil_multiplier = function(self) return 0 end
  119. NewRaycastWeaponBase.fire_rate_multiplier = function(self) return 99999999 end
  120. NewRaycastWeaponBase.damage_multiplier = function(self) return 99999999 end
  121.  
  122. PlayerStandard._get_walk_headbob = function(self) return 0 end
  123. PlayerStandard._can_stand = function(self) return true end
  124. PlayerManager.remove_equipment = function(self, equipment_id) end
  125. PlayerInventory.remove_selection = function(self, selection_index, instant) end
  126. PlayerManager.selected_equipment_deploy_timer = function(self) return 0 end
  127. PlayerManager.chk_minion_limit_reached = function(self) return false end
  128. PlayerManager.spread_multiplier = function(self) return 0 end
  129. PlayerMovement.is_stamina_drained = function(self) return false end
  130. PlayerStandard._can_run_directional = function(self) return true end
  131.  
  132. BaseInteractionExt._has_required_upgrade = function(self) return true end
  133. BaseInteractionExt._has_required_deployable = function(self) return true end
  134. BaseInteractionExt._get_timer = function(self) return 0 end
  135. BaseInteractionExt.can_interact = function(self, player) return true end
  136.  
  137. -- super jump
  138. PlayerStandard._perform_jump = function(self, jump_vec)
  139.         local v = math.UP * 470
  140.         if self._running then
  141.                 v = math.UP * 2000
  142.         end
  143.         self._unit:mover():set_velocity( v )
  144. end
  145.  
  146. -- everything but weapons
  147. for i=1, 7 do
  148.         managers.lootdrop:debug_drop( 1000, true, i )
  149. end
  150.  
  151. -- weapon mods
  152. for mod_id,_ in pairs(tweak_data.blackmarket.weapon_mods) do
  153.         tweak_data.blackmarket.weapon_mods[ mod_id ].unlocked = true
  154.         managers.blackmarket:add_to_inventory("normal", "weapon_mods", mod_id, false)
  155. end
  156.  
  157. -- player armour
  158. PlayerDamage.get_real_armor = function(self)
  159.         return Application:digest_value( 100, false )
  160. end
  161.  
  162. download:http://www.mediafire.com/download/wl65b4x3g2tgquy