[C#] How to get the bar on screen?
Hello, Does anyone know how to get this bar on screen:
Also how would you make it fill to a corrasponding value?
They are scaleform. movies. And are implemented in NativeUI as time bars. Have a look at the wiki here.
@aimless Thanks for your help I'll check it out
@aimless Also how could I get how long you hold a key to increase the bar's percentage?
@NotCrunchyTaco Someting like this.
Make a couple of global int.
Then on tick.
if (Game.IsControlJustPressed(2, GTA.Control.Attack))
PressedTime = Game.GameTime;
if (Game.IsControlJustReleased(2, GTA.Control.Attack))
int ReleasedTime = Game.GameTime;
SetTimebar = ReleasedTime - PressedTime;
myBar.Percentage = SetTimebar;