function onScriptLoad()
{
Bar <- GUIProgressBar(VectorScreen(800, 600), ScreenSize(140, 10)); //140x10 Bar
Bar.MaxValue = 100;
Bar.StartColour = Colour(0, 0, 0); //Colour of bar, when value is minimal
Bar.EndColour = Colour(0, 100, 255); //Colour of bar, when value is max
Bar.Thickness = 5; //Thickness of the borders of bar
Bar.Visible = true;
Window.AddChild(Bar); // Change "Window" to needed variable (thx Vortrex for correction)
}
function onClientRender()
{
Bar.Value = FindLocalPlayer().Health;
}