ToggleSights()
{
if(self.custom == false)
{
self iPrintln("Custom Sights [^2ON^7]");
thread initSight("rank_prestige10");
self.custom = true;
}
else
{
self iPrintln("Custom Sights [^1OFF^7]");
self notify("stop_sight");
self.custom = false;
}
}
initSight( Icon )
{
self endon("death");
self endon("stop_sight");
self.CS = createRectangle( "CENTER", "CENTER", 0, 0, 15, 15, undefined, Icon, 0, 0 );
for(;
{
if(self AdsButtonPressed())
{self.CS.alpha = .8;}
else
{self.CS.alpha = 0;}
wait .3;
}
}
createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
{
barElem = newClientHudElem(self);
barElem.elemType = "bar";
barElem.width = width;
barElem.height = height;
barElem.align = align;
barElem.relative = relative;
barElem.children = [];
barElem.sort = sort;
barElem.color = color;
barElem.alpha = alpha;
barElem setShader(shader,width,height);
barElem setPoint(align,relative,x,y);
thread destroyElem(barElem);
return barElem;
}
destroyElem(elem)
{
self waittill_any("death","stop_sight");
elem destroy();
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.