display_set_gui_size(256,223)
draw_set_font(font0)
if (instance_exists(obj_player)){
	var sprite_Width_HP = sprite_get_width(spr_gui_hp);
	var sprite_Height_HP = sprite_get_height(spr_gui_hp);
	var hp_Percent = obj_player.var_player_hp/obj_player.var_player_MaxHp;
	draw_sprite(spr_gui_hp,1,x, y);
	draw_sprite_part(spr_gui_hp, 0, 0, 0, sprite_Width_HP*hp_Percent, sprite_Height_HP, x, y);

	var sprite_Width_Bonus = sprite_get_width(spr_gui_bonus);
	var sprite_Height_Bonus = sprite_get_height(spr_gui_bonus);
	var Bonus_Percent = obj_player.var_player_bonus/obj_player.var_player_MaxBonus;
	draw_sprite(spr_gui_bonus,1,x, y+10);
	draw_sprite_part(spr_gui_bonus, 0, 0, 0, sprite_Width_Bonus*Bonus_Percent, sprite_Height_Bonus, x, y+10);

	draw_sprite(spr_gui_hostages,0,x+64,y)
	draw_text(x+66,y,obj_player.var_player_hostagers)
	
	draw_sprite(spr_gui_time,all,x+256,y)
	draw_text(x+208,y,var_timer)
	
	if (instance_number(obj_hostages_model) == 0){
		draw_sprite(spr_gui_exit,all,x+128,y)
	}
}
var_timer = string(obj_timer.var_timer_m) + ":" + string(obj_timer.var_timer_s)
