MMMonster

[Coding] GTA V 1.42 HELP PLS

Jan 11th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int WorldPTR;
  2. int AmmoPTR;
  3. int ClipPTR;
  4. int BlipPTR;
  5.  
  6. int WorldPTR_SOCIALCLUB = 0x23D1C48;
  7. int AmmoPTR_SOCIALCLUB = 0x1FE6F50;  //need
  8. int ClipPTR_SOCIALCLUB = 0xE88E74;   //need
  9. int BlipPTR_SOCIALCLUB = 0x1F9E750;
  10. int WorldPTR_STEAM = 0x23D6330;
  11. int AmmoPTR_STEAM = 0xE89425;        //need
  12. int ClipPTR_STEAM = 0xE893E0;        //need
  13. int BlipPTR_STEAM = 0x1FC8850;
  14.  
  15. public void GAME_set_Unlimited_Ammo(bool? enabled)
  16. {
  17.     // Ammo.
  18.     long pointer = GetPointerAddress(BaseAddress + AmmoPTR);
  19.     // Magazine.
  20.     long pointer2 = GetPointerAddress(BaseAddress + ClipPTR);
  21.  
  22.     if (enabled == true)
  23.     {
  24.                 //int[] OFFSETS_Spread = new int[] { 0x8, 0x10C8, 0x20, 0x70 };                   //
  25.                 //int[] OFFSETS_Recoil = new int[] { 0x8, 0x10C8, 0x20, 0x2A4 };                  //
  26.                 //int[] OFFSETS_Fast_Shoot = new int[] { 0x8, 0x10C8, 0x20, 0x134 };              //
  27.                 //int[] OFFSETS_BULLET_DMG = new int[] { 0x8, 0x10C8, 0x20, 0xB0 };               //
  28.                 //int[] OFFSETS_Reload_Multiplier = new int[] { 0x8, 0x10C8, 0x20, 0x12C };       //
  29.                 //int[] OFFSETS_Reload_Vehicle = new int[] { 0x8, 0x10C8, 0x20, 0x128 };          //
  30.                 //int[] OFFSETS_Max_Ammo = new int[] { 0x8, 0x10C8, 0x20, 0x60, 0x28 };           //
  31.                 //int[] OFFSETS_Ammo_Type = new int[] { 0x8, 0x10C8, 0x20, 0x60, 0x54 };          //
  32.                 //int[] OFFSETS_current_Ammo = new int[] { 0x8, 0x10C8, 0x20, 0x60, 0x8, 0x0, 0x18 };     //
  33.  
  34.         WriteBytes(pointer, new byte[] { 0x90, 0x90, 0x90, 0xE8 });
  35.         WriteBytes(pointer2, new byte[] { 0x90, 0x90, 0x90, 0x3B, 0xC8, 0x0F });
  36.     }
  37.     else
  38.     {
  39.         WriteBytes(pointer, new byte[] { 0x41, 0x2B, 0xD1, 0xE8 });
  40.         WriteBytes(pointer2, new byte[] { 0x41, 0x2B, 0xC9, 0x3B, 0xC8, 0x0F });
  41.     }
  42. }
Add Comment
Please, Sign In to add comment