x = 0x0,
y = 0x4,
z = 0x8,
fontScale = 0xC,
color = 0x10,
sort = 0x38,
glowColor = 0x3C,
targetEntNum = 0x70,
label = 0x48,
width = 0x4A,
height = 0x4C,
text = 0x56,
type = 0x64,
font = 0x65,
materialIndex = 0x68,
ui3dWindow = 0x6D;
public UInt32 SetShader(uint Element, Int32 clientIndex, SByte Material, Int16 Width, Int16 Height, Single X, Single Y, Byte R = 255, Byte G = 255, Byte B = 255, Byte A = 255, float Sort = 0)
{
WriteSByte(Element + HElems.type, ;
WriteInt16(Element + HElems.width, Width);
WriteInt16(Element + HElems.height, Height);
WriteFloat(Element + HElems.x, X);
WriteFloat(Element + HElems.y, Y);
WriteFloat(Element + HElems.sort, Sort);
WriteInt32(Element + HElems.targetEntNum, clientIndex);
WriteSByte(Element + HElems.materialIndex, Material);
WriteBytes(Element + HElems.color, new Byte[] { R, G, B, A });
WriteBytes(Element + HElems.ui3dWindow, new Byte[] { 0xFF });
return Element;
}
public UInt32 SetText(uint Element, Int32 clientIndex, String Text, Single X, Single Y, Single FontScale, Byte Font, float Sort = 0, Byte R = 255, Byte G = 255, Byte B = 255, Byte A = 255, Byte GlowR = 0, Byte GlowG = 0, Byte GlowB = 0, Byte GlowA = 0)
{
WriteSByte(Element + HElems.type, 1);
WriteInt32(Element + HElems.targetEntNum, clientIndex);
WriteInt16(Element + HElems.text, G_LocalizedStringIndex(Text));
WriteFloat(Element + HElems.x, X);
WriteFloat(Element + HElems.y, Y);
WriteFloat(Element + HElems.sort, Sort);
WriteFloat(Element + HElems.fontScale, FontScale);
WriteBytes(Element + HElems.font, new Byte[] { Font });
WriteBytes(Element + HElems.color, new Byte[] { R, G, B, A });
WriteBytes(Element + HElems.glowColor, new Byte[] { GlowR, GlowG, GlowB, GlowA });
WriteBytes(Element + HElems.ui3dWindow, new Byte[] { 0xFF });
return Element;
}
x = 0x0,
y = 0x4,
z = 0x8,
fontScale = 0xC,
color = 0x10,
sort = 0x38,
glowColor = 0x3C,
targetEntNum = 0x70,
label = 0x48,
width = 0x4A,
height = 0x4C,
text = 0x56,
type = 0x64,
font = 0x65,
materialIndex = 0x68,
ui3dWindow = 0x6D;
Copyright © 2024, NextGenUpdate.
All Rights Reserved.