Health and stamina bar like the game called : criminality

There some posts around the devforum on how to make those, such as this and this one.