MW3 HUDs Code [1.24]

  • Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

TheMystery

Retired Staff
Active Member
Dec 6, 2013
648
364
133
public class Huds
{
public static class HElems { public static uint xOffset = 0x04, yOffset = 0x08, textOffset = 0x84, fontOffset = 0x24, fontSizeOffset = 0x14, colorOffset = 0x30, relativeOffset = 0x2c, widthOffset = 0x44, heightOffset = 0x48, shaderOffset = 0x4c, GlowColor = 0x8C, clientOffset = 0xA8, alignOffset = 0x2C; }
public static uint CreateText(string text)
{
RPC.CallFunc(1828556u, RPC.str_pointer(text));
System.Threading.Thread.Sleep(50);

return RPC.GetFuncReturn();
}

public static byte[] uintBytes(uint input) { byte[] data = BitConverter.GetBytes(input); Array.Reverse(data); return data; }

public static byte[] CacheString(string text)
{
byte[] Index = uintBytes(CreateText(text + "\0"));
return Index;
}


public static byte[] ReverseBytes(byte[] inArray) { Array.Reverse(inArray); return inArray; }
public static byte[] ToHexFloat(float Axis) { byte[] bytes = BitConverter.GetBytes(Axis); Array.Reverse(bytes); return bytes; }
public static byte[] RGBA(decimal R, decimal G, decimal B, decimal A) { byte[] RGBA = new byte[4]; byte[] RVal = BitConverter.GetBytes(Convert.ToInt32(R)); byte[] GVal = BitConverter.GetBytes(Convert.ToInt32(G)); byte[] BVal = BitConverter.GetBytes(Convert.ToInt32(B)); byte[] AVal = BitConverter.GetBytes(Convert.ToInt32(A)); RGBA[0] = RVal[0]; RGBA[1] = GVal[0]; RGBA[2] = BVal[0]; RGBA[3] = AVal[0]; return RGBA; }

public static void StoreIcon(uint elemIndex, uint client, int shader, int width, int height, int x, int y, uint align, int sort, int r, int g, int b, int a, string Priority_)
{

byte[] PriorityB = new byte[0];

byte[] PriorityA = new byte[0];

if (Priority_ == "Back")
{
PriorityB = new byte[] { 5 };
PriorityA = new byte[] { 0 };
}
if (Priority_ == "Front")
{
PriorityB = new byte[] { 7 };
PriorityA = new byte[] { 69 };
}



uint elem = 0xF0E10C + ((elemIndex) * 0xB4);
byte[] ClientID = ReverseBytes(BitConverter.GetBytes(client));
PS3.SetMemory(elem, new byte[0xB4]);
PS3.SetMemory(elem, new byte[] { 0x00, 0x00, 0x00, 0x00 });
PS3.SetMemory(elem + HElems.relativeOffset, new byte[] { 0x00, 0x00, 0x00, 0x01 });
PS3.SetMemory(elem + HElems.relativeOffset - 4, new byte[] { 0x00, 0x00, 0x00, 0x00 });
PS3.SetMemory(elem + HElems.shaderOffset, ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(shader))));
PS3.SetMemory(elem + HElems.heightOffset, ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(height))));
PS3.SetMemory(elem + HElems.widthOffset, ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(width))));
PS3.SetMemory(elem + HElems.alignOffset, ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(align))));
PS3.SetMemory(elem + HElems.textOffset + 4, ReverseBytes(BitConverter.GetBytes(sort)));
PS3.SetMemory(elem + HElems.xOffset, ToHexFloat(x));
PS3.SetMemory(elem + 0x88, PriorityA);
PS3.SetMemory(elem + 0xa7, PriorityB);
PS3.SetMemory(elem + HElems.yOffset, ToHexFloat(y));
PS3.SetMemory(elem + HElems.colorOffset, RGBA(r, g, b, a));
PS3.SetMemory(elem + HElems.clientOffset, ClientID);
PS3.SetMemory(elem + 0x2b, new byte[] { 0x5 });
PS3.SetMemory(elem + 0xA8, ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(client))));
System.Threading.Thread.Sleep(20);
}

public static void StoreTextElem(uint elemIndex, int client, string text, int font, float fontScale, int x, int y, uint align, int sort, int r, int g, int b, int a, int r1, int g1, int b1, int a1, string Priority_)
{


byte[] PriorityB = new byte[0];

byte[] PriorityA = new byte[0];

if (Priority_ == "Back")
{
PriorityB = new byte[] { 5 };
PriorityA = new byte[] { 0 };
}
if (Priority_ == "Front")
{
PriorityB = new byte[] { 7 };
PriorityA = new byte[] { 69 };
}


string setText = text + "\0";
byte[] TextIndex = CacheString(text);
uint elem = 0xF0E10C + ((elemIndex) * 0xB4);
byte[] ClientID = ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(client)));
PS3.SetMemory(elem, new byte[0xB4]);
PS3.SetMemory(elem, new byte[] { 0x00, 0x00, 0x00, 0x00 });
PS3.SetMemory(elem + HElems.textOffset, TextIndex);
PS3.SetMemory(elem + HElems.relativeOffset, new byte[] { 0x00, 0x00, 0x00, 0x00, 0x92, 0xFF, 0xFF, 0xFF, 0xFF });
PS3.SetMemory(elem + HElems.relativeOffset - 4, new byte[] { 0x00, 0x00, 0x00, 0x05 });
PS3.SetMemory(elem + HElems.fontOffset, ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(font))));
PS3.SetMemory(elem + HElems.alignOffset, ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(align))));
PS3.SetMemory(elem + HElems.textOffset + 4, ReverseBytes(BitConverter.GetBytes(sort)));
PS3.SetMemory(elem + HElems.fontSizeOffset, ToHexFloat(fontScale));
PS3.SetMemory(elem + HElems.xOffset, ToHexFloat(x));
PS3.SetMemory(elem + HElems.yOffset, ToHexFloat(y));
PS3.SetMemory(elem + 0x88, PriorityA);
PS3.SetMemory(elem + 0xa7, PriorityB);
PS3.SetMemory(elem + HElems.colorOffset, RGBA(r, g, b, a));
PS3.SetMemory(elem + HElems.GlowColor, RGBA(r1, g1, b1, a1));
PS3.SetMemory(elem + HElems.clientOffset, ClientID);
PS3.SetMemory(elem + 0x2b, new byte[] { 0x5 });
PS3.SetMemory(elem + 0x88, new byte[] { 0x44 });
PS3.SetMemory(elem + 0xA8, ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(client))));
System.Threading.Thread.Sleep(20);
}

class MenuItems
{
public static uint
Shader = 0,
ScrollBarBackGround = 1;
}

public static void ActivateIndex(Boolean State, int index, int type)
{

uint elem = 0xF0E10C + ((uint)index * 0xB4);
byte[] Type_ = BitConverter.GetBytes(type);
Array.Reverse(Type_);
if(State == true)
{
PS3.SetMemory(elem, Type_);
}
else
{PS3.SetMemory(elem, new byte[] {0x00, 0x00, 0x00, 0x00});}
}



}

Credits :
Choco
 
  • Like
Reactions: vgail8
General chit-chat
Help Users
  • No one is chatting at the moment.
  • @ lurch6661:
    yea looks like it will be out on the 29th
  • @ QM|T_JinX:
    the jb it self or info on it lol
  • @ lurch6661:
    not sure lol
  • @ QM|T_JinX:
    lol
  • @ lurch6661:
    will definently be cool though
  • @ lurch6661:
    man i hope its online cause if it is its all over ha
  • @ QM|T_JinX:
    ya well the guy in the video said after the twitter post normaly it wont take long befor a release so lets hope a month or maybe 2
  • @ QM|T_JinX:
    i already said it is for the 11.00 so no no online
  • @ QM|T_JinX:
    still no online xploit and if this will release it already taking this long for a 11.00 xploit what is the latest ps4 firmware 11.50 or so
  • @ lurch6661:
    yup
  • @ QM|T_JinX:
    mayb if xploit can run dex kernal it will allow us to go online but like i said i know to little about it so i have no idea
  • @ QM|T_JinX:
    lol but even then i havent seen anything about ids on ps4 so if you get banned its pretty mutch over for that ps4
  • @ lurch6661:
    lol
  • @ lurch6661:
    the world has turned and left me here
  • @ lurch6661:
    good song
  • @ QM|T_JinX:
    xd
  • @ lurch6661:
    unlocked a trophy in battlefield
  • @ QM|T_JinX:
    nice
  • @ QM|T_JinX:
    what rank you on there
  • @ lurch6661:
    i think 9
  • @ lurch6661:
    ya no loose in poker then i play battlefield ha
  • @ QM|T_JinX:
    ok haha yea im on mw3
  • @ QM|T_JinX:
    last match 20 and this match 39 kills
  • @ lurch6661:
    dam good job
  • @ QM|T_JinX:
    now i got over 40 this was a good match for sure
    @ QM|T_JinX: now i got over 40 this was a good match for sure