Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void createPlayerHud(Entity player)
- {
- HudElem health = HudElem.CreateFontString(player, "hudbig", 0.9f);
- health.SetPoint("TOP RIGHT", "TOP RIGHT", -25, 0);
- health.HideWhenInMenu = true;
- HudElem money = HudElem.CreateFontString(player, "hudbig", 0.9f);
- money.SetPoint("TOP RIGHT", "TOP RIGHT", -25, 25); //25 original
- money.HideWhenInMenu = true;
- HudElem lives = HudElem.CreateFontString(player, "hudbig", 0.9f);
- lives.SetPoint("TOP RIGHT", "TOP RIGHT", -25, 50); //50 original
- lives.HideWhenInMenu = true;
- OnInterval(100, () =>
- {
- health.SetValue(player.Health.ToString());
- if(!_isGrace)
- money.SetText("^2Cash: " + player.GetField<int>("cash"));
- else
- money.SetText("^2Credits: " + player.GetField<int>("credits"));
- lives.SetText("^3Lives: " + player.GetField<int>("lives"));
- return true;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement