Hey everyone, You all know the default health/armour bar from GTA: I was wondering if it’s possible to manually enable another part of it, like for example the vehicle boost: Can we activate it without being in a vehicle, and display the time it would take to charge up? Then, we could use that part of the HUD for something else. I tried working with the following code snippet:
You don’t need to force the raw scaleforms for that. Use the following natives to manipulate the “Ability Bar”(that’s how R* calls it)
--lua. client-side.
SetAllowAbilityBarInMultiplayer(true) --allow the client to use the ability bar.
SetAbilityBarVisibilityInMultiplayer(true) --enable the bar visibility.
SetAbilityBarValue(43,100) --sets the value of the ability bar. 43 is the value, 100 is the max value for the bar to be filled.
FlashAbilityBar(5000) --flash the ablity bar. miliseconds.
(edit: just realized the pos recorder put the watermark on the minimap… you can still see the bar tho)