Custom UI widgets

I’ve been trying to make my own UI widgets, such as health and ammo. What I haven’t figured out is how to fetch the players health and ammo and display that in the UI.

So first question, how is that fetched and stored in a variable and second question is how do I display that amount on the screen?