From 71f15d3763c41f6eec37378341efacdb2f992678 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 9 Feb 2015 22:51:35 +0100 Subject: [PATCH] Add proper function to initialize HUD bar --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index e63956f..c6ac921 100644 --- a/init.lua +++ b/init.lua @@ -151,6 +151,10 @@ function hud.register_hudbar(identifier, text_color, label, textures, default_st hud.hudtables[identifier] = hudtable end +function hud.init_hudbar(player, identifier, start_value, start_max) + hud.hudtables[identifier].add_all(player, start_value, start_max) +end + function hud.change_hudbar(player, identifier, new_value, new_max_value) local name = player:get_player_name() local hudtable = hud.get_hudtable(identifier)