Health
#1

Hey guys. I want to make TD for showing car's health. I have for speed but i need health. Any ideas how to make this??
And is there any tut on this
Reply
#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
#3

Thank you Very usefull
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)