Hi,
First, I couldn’t decide between this category or ‘Server Dev / Resource Support’.
My Problem:
Drawing a ‘basic’ Vertical Fuel Level Bar & where to properly put it
My xP Level: Frankenstein’s Monster - The code just works. Thank you to those devs who explain what their lines of code do and the logic behind it.
I’m using Legacy Fuel and SimpleCarHUD - first thought is to ask in those particular topics for help related to the proper resource - but I don’t think this fits into either. Perhaps ask in SimpleCarHUD, but with the help being provided to other members this request seems a bit ‘out there’. Plus, the idea of a bar in the HUD somehow seemed to go directly against what that resource does (simple / text).
I’ve been trying to mess around with DrawRect and currentfuel; getfuel(vehicle); within the SimpleCarHUD resource ( 121 --Draw fuel gauge ), but I know I’m missing a lot for something so ‘simple’. I figured the resource had the info it needed since it draws the text.
My brain knows that this is probably an elementary task, so it shouldn’t be difficult for me, but if any clever individual has an idea how to go about this, I’d greatly appreciate it.
- Brownie
Edit: Used FRFuel bar style as reference/clarification. A yellow bar that depletes and goes up when filling.
Edit: I understand the nuances with working around the mini-map and safezone area. The image is for reference to the end result. The UI element would not be contingent on the mini-map location.