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.