Health
#2

Alright, here are some tips:

First, create a textdraw with any textdraw editor available. Then set up the created textdraw in your script, write the showing and hiding functions for that textdraw wherever you show or hide them.

Inside a timer function which is obviously a speedometer function, fetch the vehicle health and format a string to display the health there, then set the formatted string to the textdraw that you've created.

If you want to use a progress bar, a good vehicle health example is already included in this progressbar thread: https://sampforum.blast.hk/showthread.php?tid=113443
Reply


Messages In This Thread
Health - by Micko123 - 18.05.2016, 16:49
Re: Health - by Sjn - 18.05.2016, 16:56
Re: Health - by Micko123 - 18.05.2016, 16:59

Forum Jump:


Users browsing this thread: 1 Guest(s)