Welcome to Altis Life RPG

Register now to gain access to all of our features.
Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.


Note that you can now sign-in with your Steam account.


This message will be removed once you have signed in.

  • Announcements

    • AltisLifeRpg

      Opening Announcement   09/13/2016

      Opening Announcement We are happy to announce the official reopening of the community assistance forum Altis Life RPG (open source public property). Before going any further, let's go over the current situation. As you are already aware, the forum and the database of Altisliferpg.com had been hacked a few weeks ago. This unfortunate situation has touched many communities of Arma 3. The various databases were erased, and since they were under the responsibility of the previous administration, no backup was able to recover the lost data. This means that all the tedious work must be redone. This regrettable situation has led Tonic to transfer the responsibility of its administration to a new and neutral party. This party has as sole goal to reunite every community, as diverse as they are, together to perpetuate the development of our beloved mod AltisLifeRPG.  First of all, I think it is important to clarify our intentions. Foremost, we want to reassure you that we are not proclaiming being the owners of the previous versions of Altis Life (open source public property) in collaboration with BoGuu based on Tonic' codes. As you know, Boguu has been a major player in the most recent versions. Please note that this platform is and will always remain open to future developers such as Boguu that would like to elevate Altis Life RPG to the next level. By doing so, we take our role as an official reference platform very seriously in the eyes of the vast community of Altis Life RPG. We are ready to face this responsibility. We are aware that the content added by users could be provided by external sources or from the original website. If you see a tutorial that you've created on our platform where you are not credited as the author, please mention it immediately to the administration and we will promptly fix the situation. Please note that seeing the overwhelming amount of content added by the community, we will not proactively search other community assistance websites to validate if proper credits were given to the various authors. Instead, it will be the author's responsibility to be proactive in contacting the administration. Since the majority of the content found on other websites came originally from Altisliferpg.com, we encourage members joining us to share any content deemed pertinent coming from other platforms without forgetting to credit the authors.       Finally, to clarify the rumors circulating: - The forum was not scammed. It was transferred directly from Bryan 'Tonic' Boardwine to our administration. A domain cannot be scammed. - The forum was transferred as an independent entity which has as a sole mission to perpetuate the forum and not let it die out.       Altisliferpg.com Regards, the Administration.       Feel free to join us on Discord in the Altis Life RPG Community section of the forum.   And of course if you have any question, feel free to message us here.
    • Rozo

      Donations   09/18/2016

      Hello,
        We've added a donation block on the right side. All of those donation goes directly to the developer of Altis Life mod ( currently BoGuu ). None of that money is used to maintain the forum. In the future we might add a donation button to support the forum, but for now we want to encourage the developer because they went through a lot. To discuss this topic - Here
    • Shakir Darwish

      IS YOUR SERVER BROKEN SINCE 1.64 UPDATE?   09/22/2016

      If your server is broken since 1.64 go check this link thanks. https://github.com/AsYetUntitled/Framework/issues/104
    • Rozo

      Sad Day   01/04/2017

      Good evening community of Altis Life RPG, Today was a sad day. We learned the hard way that one of the helper was using his status and visibility on the forum to do things i wouldn't imagine.  We were warned about this user in the beginning, we talked about his behavior and he said that they were things of the past. We were fooled.
      Unfortunately, he fooled other community members by selling stolen content and impersonating his role as a developer in another community. Here's a remember of one of the rules on our forum, No selling scripts, snippets, or services.   So if anyone come across someone who's selling his services, scripts or whatever, Report them. Especially if it's coming from an Helper, Mod, Admin. No one in the staff should ask for money, we already mention this when we reopened the forum and that rule is here to stay.

      We can't be sorry enough for what happen here, for any harm it as caused among other communities, for money that shouldn't been spent and we truly hope this doesn't happen again.

      As for the user in question, he is now banned from our forum and discord and we wish to never cross his path again.
        If there's anything we can do hit us on Discord or send a message to an admin.
      Thanks, Rozo.
Repentz

Professional Looking HUD

83 posts in this topic

Hey everyone, decided I'm going to start releasing assets I've made and or contributed to from Orion, here's the HUD:

I won't go into too much detail on how to set it all up, just give the assets.

Looks like this, + seatbelt icon in vehicle:

CA1B0BFC7C2CF46C580D2EA937755EFB02676B98

 

hud_stats.hpp

//---------------------------------
//By Repentz
//---------------------------------

#define INFINITE 1e+1000
#define IDC_LIFE_BAR_FOOD 2200
#define IDC_LIFE_BAR_FOOD_RING 3200
#define IDC_LIFE_BAR_WATER 2201
#define IDC_LIFE_BAR_WATER_RING 3201
#define IDC_LIFE_BAR_HEALTH 2202
#define IDC_LIFE_BAR_HEALTH_RING 3202
//#define IDC_LIFE_BAR_POOP 4202
#define IDC_LIFE_BAR_Speaker 3007
#define IDC_LIFE_BAR_SeatBelt 4203


class playerHUD {
	idd = -1;
	duration = INFINITE;
	movingEnable = 0;
	fadein = 0;
	fadeout = 0;
	name = "playerHUD";
	onLoad = "uiNamespace setVariable ['playerHUD',_this select 0]";
	objects[] = {};
		controls[] = {
		LIFE_BAR_FOOD_RING,
		LIFE_BAR_WATER_RING,
		LIFE_BAR_HEALTH_RING,
		LIFE_BAR_Speaker,
		LIFE_BAR_SeatBelt
	};

		class LIFE_BAR_SeatBelt: Life_RscPicture
		{
			idc = IDC_LIFE_BAR_SeatBelt;
			text = "";
			x = 0.952292 * safezoneW + safezoneX;
			y = 0.574333 * safezoneH + safezoneY;
			w = 0.0331042 * safezoneW;
			h = 0.0589743 * safezoneH;
		};
		class LIFE_BAR_Speaker: Life_RscPicture
		{
			idc = IDC_LIFE_BAR_Speaker;
			text = "";
			x = 0.952292 * safezoneW + safezoneX;
			y = 0.640333 * safezoneH + safezoneY;
			w = 0.0331042 * safezoneW;
			h = 0.0589743 * safezoneH;
		};
		class LIFE_BAR_HEALTH_RING: Life_RscPicture
		{
			idc = IDC_LIFE_BAR_HEALTH_RING;
			text = "";
			x = 0.952292 * safezoneW + safezoneX;
			y = 0.706333 * safezoneH + safezoneY;
			w = 0.0331042 * safezoneW;
			h = 0.0589743 * safezoneH;
		};
		class LIFE_BAR_FOOD_RING: Life_RscPicture
		{
			idc = IDC_LIFE_BAR_FOOD_RING;
			text = "";
			x = 0.952292 * safezoneW + safezoneX;
			y = 0.772333 * safezoneH + safezoneY;
			w = 0.0331042 * safezoneW;
			h = 0.0589743 * safezoneH;
		};
		class LIFE_BAR_WATER_RING: Life_RscPicture
		{
			idc = IDC_LIFE_BAR_WATER_RING;
			text = "";
			x = 0.952292 * safezoneW + safezoneX;
			y = 0.838333 * safezoneH + safezoneY;
			w = 0.0331042 * safezoneW;
			h = 0.0589743 * safezoneH;
		};
};

HudUpdate:

#include "..\..\script_macros.hpp"

//---------------------------------
//By Repentz 
//---------------------------------


#define INFINITE 1e+1000
#define IDC_LIFE_BAR_FOOD 2200
#define IDC_LIFE_BAR_FOOD_RING 3200
#define IDC_LIFE_BAR_WATER 2201
#define IDC_LIFE_BAR_WATER_RING 3201
#define IDC_LIFE_BAR_HEALTH 2202
#define IDC_LIFE_BAR_HEALTH_RING 3202
#define IDC_LIFE_BAR_Speaker 3007
#define IDC_LIFE_BAR_SeatBelt 4203

disableSerialization;
if(isNull LIFEdisplay) then {[] call life_fnc_hudSetup;};

//[LIFE_ID_PlayerTags,"onEachFrame"] call BIS_fnc_removeStackedEventHandler;
LIFE_ID_PlayerTags = ["LIFE_PlayerTags","onEachFrame","life_fnc_playerTags"] call BIS_fnc_addStackedEventHandler;

if(!isNil "life_seatbelt") then {
    if ( vehicle player != player ) then {
        if(life_seatbelt) then {
            LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "VindicateAssets\images\textures\HUD\seatbeltOn.paa";
        } else {
            LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "VindicateAssets\images\textures\HUD\seatbeltOff.paa";
        };
    } else {
        LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "";
    };
};

if(!isNil "life_fadeSound") then
{
	if(life_fadeSound) then
	{
		LIFEctrl(IDC_LIFE_BAR_Speaker) ctrlSetText "VindicateAssets\images\textures\HUD\earplugsY.paa";
	} else {
		LIFEctrl(IDC_LIFE_BAR_Speaker) ctrlSetText "VindicateAssets\images\textures\HUD\earplugsN.paa";
	};
};

if(!isNil "life_thirst") then
{
	if (life_thirst <= 100) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water0.paa";
	};

	if (life_thirst <= 90) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water1.paa";
	};

	if (life_thirst <= 80) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water2.paa";
	};

	if (life_thirst <= 70) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water3.paa";
	};

	if (life_thirst <= 60) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water4.paa";
	};

	if (life_thirst <= 50) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water5.paa";
	};

	if (life_thirst <= 40) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water6.paa";
	};

	if (life_thirst <= 30) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water7.paa";
	};

	if (life_thirst <= 20) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water8.paa";
	};

	if (life_thirst <= 10) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water9.paa";
	};

	if (life_thirst <= 0) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water10.paa";
	};
};

if (damage player >= 0) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health0.paa";
};

if (damage player >= 0.01) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health1.paa";
};

if (damage player >= 0.02) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health2.paa";
};

if (damage player >= 0.03) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health3.paa";
};

if (damage player >= 0.07) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health4.paa";
};

if (damage player >= 0.13) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health5.paa";
};

if (damage player >= 0.2) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health6.paa";
};

if (damage player >= 0.3) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health7.paa";
};

if (damage player >= 0.4) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health8.paa";
};

if (damage player >= 0.7) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health9.paa";
};

if (damage player >= 1) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health10.paa";
};

if(!isNil "life_hunger") then
{
	if (life_hunger <= 100) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food0.paa";
	};

	if (life_hunger <= 90) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food1.paa";
	};

	if (life_hunger <= 80) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food2.paa";
	};

	if (life_hunger <= 70) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food3.paa";
	};

	if (life_hunger <= 60) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food4.paa";
	};

	if (life_hunger <= 50) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food5.paa";
	};

	if (life_hunger <= 40) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food6.paa";
	};

	if (life_hunger <= 30) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food7.paa";
	};

	if (life_hunger <= 20) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food8.paa";
	};

	if (life_hunger <= 10) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food9.paa";
	};

	if (life_hunger <= 0) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food1.paa";
	};
};

hudSetup:

#include "..\..\script_macros.hpp"

disableSerialization;

2 cutRsc ["playerHUD","PLAIN"];
[] call life_fnc_hudUpdate;

[] spawn
{
	private["_dam"];
	while {true} do
	{
		_dam = damage player;
		waitUntil {(damage player) != _dam};
		[] call life_fnc_hudUpdate;
	};
};

setupActions for all

life_actions pushBack (player addAction["<t color = '#009900'>Put on Seatbelt</t>",life_fnc_seatbelt,"",6,false,false,"",' !life_seatbelt && vehicle player != player ']);
life_actions pushBack (player addAction["<t color = '#ff3300'>Remove Seatbelt</t>",life_fnc_seatbelt,"",6,false,false,"",' life_seatbelt && vehicle player != player ']);

Assets included named HUD.rar

 

HUD.rar

Edited by Repentz
  • Like 3
  • Thanks 2

Share this post


Link to post
Share on other sites
8 hours ago, Sneox20 said:

@Franco Drambuie My test server is on 4.4r4 version. I don't have these files then I can't overwrite. I must create hudUpdate file and hudSetup file. I just tested and my HUD does not appear.

 

You do have the files - check the below location 0 assuming you have extracted the PBO. Check the script carefully and make sure you extract the HUD files into your textures folder and point the scripts to the new location 

LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water0.paa";

to this

LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water0.paa";

files location:

\Altis_Life.Altis\dialog\hud_stats.hpp

\Altis_Life.Altis\core\functions\fn_hudUpdate.sqf

\Altis_Life.Altis\core\functions\fn_hudSetup.sqf

If you do not have speakers and seatbelts scripts then do the below

//#define IDC_LIFE_BAR_Speaker 3007
//#define IDC_LIFE_BAR_SeatBelt 4203

 

Edited by Franco Drambuie
  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
48 minutes ago, alexdu13110 said:

 

 

or should you put this folder , hud.rar

what the fuck are you on about?

  • Like 1

Share this post


Link to post
Share on other sites

 

Hi, thank you very much for the script but I have a worry, the belt icon only appears when I take damage, and if I want to activate the icon remains the same, then the icon of the Earplugs do not spawn

Share this post


Link to post
Share on other sites
2 hours ago, Alessio said:

 

Hi, thank you very much for the script but I have a worry, the belt icon only appears when I take damage, and if I want to activate the icon remains the same, then the icon of the Earplugs do not spawn

Hi, first of all can you not highlight your sentences with white, I can still read I'm not that dyslexic. You need to actually re-do the steps of the seatbelt script because you didn't add in a hud update where you should've

  • Like 1

Share this post


Link to post
Share on other sites
On 18/08/2017 at 2:39 AM, Repentz said:

Hey everyone, decided I'm going to start releasing assets I've made and or contributed to from Orion, here's the HUD:

I won't go into too much detail on how to set it all up, just give the assets.

Looks like this, + seatbelt icon in vehicle:

CA1B0BFC7C2CF46C580D2EA937755EFB02676B98

 

hud_stats.hpp

//---------------------------------
//By Repentz
//---------------------------------

#define INFINITE 1e+1000
#define IDC_LIFE_BAR_FOOD 2200
#define IDC_LIFE_BAR_FOOD_RING 3200
#define IDC_LIFE_BAR_WATER 2201
#define IDC_LIFE_BAR_WATER_RING 3201
#define IDC_LIFE_BAR_HEALTH 2202
#define IDC_LIFE_BAR_HEALTH_RING 3202
//#define IDC_LIFE_BAR_POOP 4202
#define IDC_LIFE_BAR_Speaker 3007
#define IDC_LIFE_BAR_SeatBelt 4203


class playerHUD {
	idd = -1;
	duration = INFINITE;
	movingEnable = 0;
	fadein = 0;
	fadeout = 0;
	name = "playerHUD";
	onLoad = "uiNamespace setVariable ['playerHUD',_this select 0]";
	objects[] = {};
		controls[] = {
		LIFE_BAR_FOOD_RING,
		LIFE_BAR_WATER_RING,
		LIFE_BAR_HEALTH_RING,
		LIFE_BAR_Speaker,
		LIFE_BAR_SeatBelt
	};

		class LIFE_BAR_SeatBelt: Life_RscPicture
		{
			idc = IDC_LIFE_BAR_SeatBelt;
			text = "";
			x = 0.952292 * safezoneW + safezoneX;
			y = 0.574333 * safezoneH + safezoneY;
			w = 0.0331042 * safezoneW;
			h = 0.0589743 * safezoneH;
		};
		class LIFE_BAR_Speaker: Life_RscPicture
		{
			idc = IDC_LIFE_BAR_Speaker;
			text = "";
			x = 0.952292 * safezoneW + safezoneX;
			y = 0.640333 * safezoneH + safezoneY;
			w = 0.0331042 * safezoneW;
			h = 0.0589743 * safezoneH;
		};
		class LIFE_BAR_HEALTH_RING: Life_RscPicture
		{
			idc = IDC_LIFE_BAR_HEALTH_RING;
			text = "";
			x = 0.952292 * safezoneW + safezoneX;
			y = 0.706333 * safezoneH + safezoneY;
			w = 0.0331042 * safezoneW;
			h = 0.0589743 * safezoneH;
		};
		class LIFE_BAR_FOOD_RING: Life_RscPicture
		{
			idc = IDC_LIFE_BAR_FOOD_RING;
			text = "";
			x = 0.952292 * safezoneW + safezoneX;
			y = 0.772333 * safezoneH + safezoneY;
			w = 0.0331042 * safezoneW;
			h = 0.0589743 * safezoneH;
		};
		class LIFE_BAR_WATER_RING: Life_RscPicture
		{
			idc = IDC_LIFE_BAR_WATER_RING;
			text = "";
			x = 0.952292 * safezoneW + safezoneX;
			y = 0.838333 * safezoneH + safezoneY;
			w = 0.0331042 * safezoneW;
			h = 0.0589743 * safezoneH;
		};
};

HudUpdate:

#include "..\..\script_macros.hpp"

//---------------------------------
//By Repentz 
//---------------------------------


#define INFINITE 1e+1000
#define IDC_LIFE_BAR_FOOD 2200
#define IDC_LIFE_BAR_FOOD_RING 3200
#define IDC_LIFE_BAR_WATER 2201
#define IDC_LIFE_BAR_WATER_RING 3201
#define IDC_LIFE_BAR_HEALTH 2202
#define IDC_LIFE_BAR_HEALTH_RING 3202
#define IDC_LIFE_BAR_Speaker 3007
#define IDC_LIFE_BAR_SeatBelt 4203

disableSerialization;
if(isNull LIFEdisplay) then {[] call life_fnc_hudSetup;};

//[LIFE_ID_PlayerTags,"onEachFrame"] call BIS_fnc_removeStackedEventHandler;
LIFE_ID_PlayerTags = ["LIFE_PlayerTags","onEachFrame","life_fnc_playerTags"] call BIS_fnc_addStackedEventHandler;

if(!isNil "life_seatbelt") then {
    if ( vehicle player != player ) then {
        if(life_seatbelt) then {
            LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "VindicateAssets\images\textures\HUD\seatbeltOn.paa";
        } else {
            LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "VindicateAssets\images\textures\HUD\seatbeltOff.paa";
        };
    } else {
        LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "";
    };
};

if(!isNil "life_fadeSound") then
{
	if(life_fadeSound) then
	{
		LIFEctrl(IDC_LIFE_BAR_Speaker) ctrlSetText "VindicateAssets\images\textures\HUD\earplugsY.paa";
	} else {
		LIFEctrl(IDC_LIFE_BAR_Speaker) ctrlSetText "VindicateAssets\images\textures\HUD\earplugsN.paa";
	};
};

if(!isNil "life_thirst") then
{
	if (life_thirst <= 100) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water0.paa";
	};

	if (life_thirst <= 90) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water1.paa";
	};

	if (life_thirst <= 80) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water2.paa";
	};

	if (life_thirst <= 70) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water3.paa";
	};

	if (life_thirst <= 60) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water4.paa";
	};

	if (life_thirst <= 50) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water5.paa";
	};

	if (life_thirst <= 40) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water6.paa";
	};

	if (life_thirst <= 30) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water7.paa";
	};

	if (life_thirst <= 20) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water8.paa";
	};

	if (life_thirst <= 10) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water9.paa";
	};

	if (life_thirst <= 0) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water10.paa";
	};
};

if (damage player >= 0) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health0.paa";
};

if (damage player >= 0.01) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health1.paa";
};

if (damage player >= 0.02) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health2.paa";
};

if (damage player >= 0.03) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health3.paa";
};

if (damage player >= 0.07) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health4.paa";
};

if (damage player >= 0.13) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health5.paa";
};

if (damage player >= 0.2) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health6.paa";
};

if (damage player >= 0.3) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health7.paa";
};

if (damage player >= 0.4) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health8.paa";
};

if (damage player >= 0.7) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health9.paa";
};

if (damage player >= 1) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health10.paa";
};

if(!isNil "life_hunger") then
{
	if (life_hunger <= 100) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food0.paa";
	};

	if (life_hunger <= 90) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food1.paa";
	};

	if (life_hunger <= 80) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food2.paa";
	};

	if (life_hunger <= 70) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food3.paa";
	};

	if (life_hunger <= 60) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food4.paa";
	};

	if (life_hunger <= 50) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food5.paa";
	};

	if (life_hunger <= 40) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food6.paa";
	};

	if (life_hunger <= 30) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food7.paa";
	};

	if (life_hunger <= 20) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food8.paa";
	};

	if (life_hunger <= 10) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food9.paa";
	};

	if (life_hunger <= 0) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food1.paa";
	};
};

hudSetup:

#include "..\..\script_macros.hpp"

disableSerialization;

2 cutRsc ["playerHUD","PLAIN"];
[] call life_fnc_hudUpdate;

[] spawn
{
	private["_dam"];
	while {true} do
	{
		_dam = damage player;
		waitUntil {(damage player) != _dam};
		[] call life_fnc_hudUpdate;
	};
};

setupActions for all

life_actions pushBack (player addAction["<t color = '#009900'>Put on Seatbelt</t>",life_fnc_seatbelt,"",6,false,false,"",' !life_seatbelt && vehicle player != player ']);
life_actions pushBack (player addAction["<t color = '#ff3300'>Remove Seatbelt</t>",life_fnc_seatbelt,"",6,false,false,"",' life_seatbelt && vehicle player != player ']);

Assets included named HUD.rar

 

HUD.rar

could anyone help with the last part? I am an apprentice in altis, I can not find the position of the last part. Forgive English. thank you all, gratitudehttp://prntscr.com/ghf6wm

Share this post


Link to post
Share on other sites
On ‎8‎/‎18‎/‎2017 at 0:39 PM, Repentz said:

Hey everyone, decided I'm going to start releasing assets I've made and or contributed to from Orion, here's the HUD:

I won't go into too much detail on how to set it all up, just give the assets.

Looks like this, + seatbelt icon in vehicle:

CA1B0BFC7C2CF46C580D2EA937755EFB02676B98

 

hud_stats.hpp

//---------------------------------
//By Repentz
//---------------------------------

#define INFINITE 1e+1000
#define IDC_LIFE_BAR_FOOD 2200
#define IDC_LIFE_BAR_FOOD_RING 3200
#define IDC_LIFE_BAR_WATER 2201
#define IDC_LIFE_BAR_WATER_RING 3201
#define IDC_LIFE_BAR_HEALTH 2202
#define IDC_LIFE_BAR_HEALTH_RING 3202
//#define IDC_LIFE_BAR_POOP 4202
#define IDC_LIFE_BAR_Speaker 3007
#define IDC_LIFE_BAR_SeatBelt 4203


class playerHUD {
	idd = -1;
	duration = INFINITE;
	movingEnable = 0;
	fadein = 0;
	fadeout = 0;
	name = "playerHUD";
	onLoad = "uiNamespace setVariable ['playerHUD',_this select 0]";
	objects[] = {};
		controls[] = {
		LIFE_BAR_FOOD_RING,
		LIFE_BAR_WATER_RING,
		LIFE_BAR_HEALTH_RING,
		LIFE_BAR_Speaker,
		LIFE_BAR_SeatBelt
	};

		class LIFE_BAR_SeatBelt: Life_RscPicture
		{
			idc = IDC_LIFE_BAR_SeatBelt;
			text = "";
			x = 0.952292 * safezoneW + safezoneX;
			y = 0.574333 * safezoneH + safezoneY;
			w = 0.0331042 * safezoneW;
			h = 0.0589743 * safezoneH;
		};
		class LIFE_BAR_Speaker: Life_RscPicture
		{
			idc = IDC_LIFE_BAR_Speaker;
			text = "";
			x = 0.952292 * safezoneW + safezoneX;
			y = 0.640333 * safezoneH + safezoneY;
			w = 0.0331042 * safezoneW;
			h = 0.0589743 * safezoneH;
		};
		class LIFE_BAR_HEALTH_RING: Life_RscPicture
		{
			idc = IDC_LIFE_BAR_HEALTH_RING;
			text = "";
			x = 0.952292 * safezoneW + safezoneX;
			y = 0.706333 * safezoneH + safezoneY;
			w = 0.0331042 * safezoneW;
			h = 0.0589743 * safezoneH;
		};
		class LIFE_BAR_FOOD_RING: Life_RscPicture
		{
			idc = IDC_LIFE_BAR_FOOD_RING;
			text = "";
			x = 0.952292 * safezoneW + safezoneX;
			y = 0.772333 * safezoneH + safezoneY;
			w = 0.0331042 * safezoneW;
			h = 0.0589743 * safezoneH;
		};
		class LIFE_BAR_WATER_RING: Life_RscPicture
		{
			idc = IDC_LIFE_BAR_WATER_RING;
			text = "";
			x = 0.952292 * safezoneW + safezoneX;
			y = 0.838333 * safezoneH + safezoneY;
			w = 0.0331042 * safezoneW;
			h = 0.0589743 * safezoneH;
		};
};

HudUpdate:

#include "..\..\script_macros.hpp"

//---------------------------------
//By Repentz 
//---------------------------------


#define INFINITE 1e+1000
#define IDC_LIFE_BAR_FOOD 2200
#define IDC_LIFE_BAR_FOOD_RING 3200
#define IDC_LIFE_BAR_WATER 2201
#define IDC_LIFE_BAR_WATER_RING 3201
#define IDC_LIFE_BAR_HEALTH 2202
#define IDC_LIFE_BAR_HEALTH_RING 3202
#define IDC_LIFE_BAR_Speaker 3007
#define IDC_LIFE_BAR_SeatBelt 4203

disableSerialization;
if(isNull LIFEdisplay) then {[] call life_fnc_hudSetup;};

//[LIFE_ID_PlayerTags,"onEachFrame"] call BIS_fnc_removeStackedEventHandler;
LIFE_ID_PlayerTags = ["LIFE_PlayerTags","onEachFrame","life_fnc_playerTags"] call BIS_fnc_addStackedEventHandler;

if(!isNil "life_seatbelt") then {
    if ( vehicle player != player ) then {
        if(life_seatbelt) then {
            LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "VindicateAssets\images\textures\HUD\seatbeltOn.paa";
        } else {
            LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "VindicateAssets\images\textures\HUD\seatbeltOff.paa";
        };
    } else {
        LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "";
    };
};

if(!isNil "life_fadeSound") then
{
	if(life_fadeSound) then
	{
		LIFEctrl(IDC_LIFE_BAR_Speaker) ctrlSetText "VindicateAssets\images\textures\HUD\earplugsY.paa";
	} else {
		LIFEctrl(IDC_LIFE_BAR_Speaker) ctrlSetText "VindicateAssets\images\textures\HUD\earplugsN.paa";
	};
};

if(!isNil "life_thirst") then
{
	if (life_thirst <= 100) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water0.paa";
	};

	if (life_thirst <= 90) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water1.paa";
	};

	if (life_thirst <= 80) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water2.paa";
	};

	if (life_thirst <= 70) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water3.paa";
	};

	if (life_thirst <= 60) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water4.paa";
	};

	if (life_thirst <= 50) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water5.paa";
	};

	if (life_thirst <= 40) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water6.paa";
	};

	if (life_thirst <= 30) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water7.paa";
	};

	if (life_thirst <= 20) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water8.paa";
	};

	if (life_thirst <= 10) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water9.paa";
	};

	if (life_thirst <= 0) then
	{
		LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water10.paa";
	};
};

if (damage player >= 0) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health0.paa";
};

if (damage player >= 0.01) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health1.paa";
};

if (damage player >= 0.02) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health2.paa";
};

if (damage player >= 0.03) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health3.paa";
};

if (damage player >= 0.07) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health4.paa";
};

if (damage player >= 0.13) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health5.paa";
};

if (damage player >= 0.2) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health6.paa";
};

if (damage player >= 0.3) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health7.paa";
};

if (damage player >= 0.4) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health8.paa";
};

if (damage player >= 0.7) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health9.paa";
};

if (damage player >= 1) then
{
	LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health10.paa";
};

if(!isNil "life_hunger") then
{
	if (life_hunger <= 100) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food0.paa";
	};

	if (life_hunger <= 90) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food1.paa";
	};

	if (life_hunger <= 80) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food2.paa";
	};

	if (life_hunger <= 70) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food3.paa";
	};

	if (life_hunger <= 60) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food4.paa";
	};

	if (life_hunger <= 50) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food5.paa";
	};

	if (life_hunger <= 40) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food6.paa";
	};

	if (life_hunger <= 30) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food7.paa";
	};

	if (life_hunger <= 20) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food8.paa";
	};

	if (life_hunger <= 10) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food9.paa";
	};

	if (life_hunger <= 0) then
	{
		LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food1.paa";
	};
};

hudSetup:

#include "..\..\script_macros.hpp"

disableSerialization;

2 cutRsc ["playerHUD","PLAIN"];
[] call life_fnc_hudUpdate;

[] spawn
{
	private["_dam"];
	while {true} do
	{
		_dam = damage player;
		waitUntil {(damage player) != _dam};
		[] call life_fnc_hudUpdate;
	};
};

setupActions for all

life_actions pushBack (player addAction["<t color = '#009900'>Put on Seatbelt</t>",life_fnc_seatbelt,"",6,false,false,"",' !life_seatbelt && vehicle player != player ']);
life_actions pushBack (player addAction["<t color = '#ff3300'>Remove Seatbelt</t>",life_fnc_seatbelt,"",6,false,false,"",' life_seatbelt && vehicle player != player ']);

Assets included named HUD.rar

 

HUD.rar

Guys for some reason it doesn't work,is there an error:

Please tell me if you need the other 2 files

 

 

#include "..\..\script_macros.hpp"
//---------------------------------
//By Repentz
//---------------------------------

#define INFINITE 1e+1000
#define IDC_LIFE_BAR_FOOD 2200
#define IDC_LIFE_BAR_FOOD_RING 3200
#define IDC_LIFE_BAR_WATER 2201
#define IDC_LIFE_BAR_WATER_RING 3201
#define IDC_LIFE_BAR_HEALTH 2202
#define IDC_LIFE_BAR_HEALTH_RING 3202
#define IDC_LIFE_BAR_Speaker 3007
//#define IDC_LIFE_BAR_SeatBelt 4203
disableSerialization;
if(isNull LIFEdisplay) then {[] call life_fnc_hudSetup;};
//[LIFE_ID_PlayerTags,"onEachFrame"] call BIS_fnc_removeStackedEventHandler;
LIFE_ID_PlayerTags = ["LIFE_PlayerTags","onEachFrame","life_fnc_playerTags"] call BIS_fnc_addStackedEventHandler;
if(!isNil "life_seatbelt") then {
    if ( vehicle player != player ) then {
        if(life_seatbelt) then {
            LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "\Altis_Life.Altis\textures\HUD\seatbeltOn.paa";
        } else {
            LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "\Altis_Life.Altis\textures\HUD\seatbeltOff.paa";
        };
    } else {
        LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "";
    };
};
if(!isNil "life_fadeSound") then
{
 if(life_fadeSound) then
 {
  LIFEctrl(IDC_LIFE_BAR_Speaker) ctrlSetText "\Altis_Life.Altis\textures\HUD\earplugsY.paa";
 } else {
  LIFEctrl(IDC_LIFE_BAR_Speaker) ctrlSetText "\Altis_Life.Altis\textures\HUD\earplugsN.paa";
 };
};
if(!isNil "life_thirst") then
{
 if (life_thirst <= 100) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water0.paa";
 };
 if (life_thirst <= 90) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water1.paa";
 };
 if (life_thirst <= 80) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water2.paa";
 };
 if (life_thirst <= 70) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water3.paa";
 };
 if (life_thirst <= 60) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water4.paa";
 };
 if (life_thirst <= 50) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water5.paa";
 };
 if (life_thirst <= 40) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water6.paa";
 };
 if (life_thirst <= 30) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water7.paa";
 };
 if (life_thirst <= 20) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water8.paa";
 };
 if (life_thirst <= 10) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water9.paa";
 };
 if (life_thirst <= 0) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water10.paa";
 };
};
if (damage player >= 0) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health0.paa";
};
if (damage player >= 0.01) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health1.paa";
};
if (damage player >= 0.02) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health2.paa";
};
if (damage player >= 0.03) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health3.paa";
};
if (damage player >= 0.07) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health4.paa";
};
if (damage player >= 0.13) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health5.paa";
};
if (damage player >= 0.2) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health6.paa";
};
if (damage player >= 0.3) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health7.paa";
};
if (damage player >= 0.4) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health8.paa";
};
if (damage player >= 0.7) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health9.paa";
};
if (damage player >= 1) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health10.paa";
};
if(!isNil "life_hunger") then
{
 if (life_hunger <= 100) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food0.paa";
 };
 if (life_hunger <= 90) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food1.paa";
 };
 if (life_hunger <= 80) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food2.paa";
 };
 if (life_hunger <= 70) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food3.paa";
 };
 if (life_hunger <= 60) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food4.paa";
 };
 if (life_hunger <= 50) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food5.paa";
 };
 if (life_hunger <= 40) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food6.paa";
 };
 if (life_hunger <= 30) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food7.paa";
 };
 if (life_hunger <= 20) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food8.paa";
 };
 if (life_hunger <= 10) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food9.paa";
 };
 if (life_hunger <= 0) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food1.paa";
 };
};
Edited by L00PY

Share this post


Link to post
Share on other sites
22 minutes ago, L00PY said:

Guys for some reason it doesn't work,is there an error:

Please tell me if you need the other 2 files

 

 

#include "..\..\script_macros.hpp"
//---------------------------------
//By Repentz
//---------------------------------

#define INFINITE 1e+1000
#define IDC_LIFE_BAR_FOOD 2200
#define IDC_LIFE_BAR_FOOD_RING 3200
#define IDC_LIFE_BAR_WATER 2201
#define IDC_LIFE_BAR_WATER_RING 3201
#define IDC_LIFE_BAR_HEALTH 2202
#define IDC_LIFE_BAR_HEALTH_RING 3202
#define IDC_LIFE_BAR_Speaker 3007
//#define IDC_LIFE_BAR_SeatBelt 4203
disableSerialization;
if(isNull LIFEdisplay) then {[] call life_fnc_hudSetup;};
//[LIFE_ID_PlayerTags,"onEachFrame"] call BIS_fnc_removeStackedEventHandler;
LIFE_ID_PlayerTags = ["LIFE_PlayerTags","onEachFrame","life_fnc_playerTags"] call BIS_fnc_addStackedEventHandler;
if(!isNil "life_seatbelt") then {
    if ( vehicle player != player ) then {
        if(life_seatbelt) then {
            LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "\Altis_Life.Altis\textures\HUD\seatbeltOn.paa";
        } else {
            LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "\Altis_Life.Altis\textures\HUD\seatbeltOff.paa";
        };
    } else {
        LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "";
    };
};
if(!isNil "life_fadeSound") then
{
 if(life_fadeSound) then
 {
  LIFEctrl(IDC_LIFE_BAR_Speaker) ctrlSetText "\Altis_Life.Altis\textures\HUD\earplugsY.paa";
 } else {
  LIFEctrl(IDC_LIFE_BAR_Speaker) ctrlSetText "\Altis_Life.Altis\textures\HUD\earplugsN.paa";
 };
};
if(!isNil "life_thirst") then
{
 if (life_thirst <= 100) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water0.paa";
 };
 if (life_thirst <= 90) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water1.paa";
 };
 if (life_thirst <= 80) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water2.paa";
 };
 if (life_thirst <= 70) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water3.paa";
 };
 if (life_thirst <= 60) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water4.paa";
 };
 if (life_thirst <= 50) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water5.paa";
 };
 if (life_thirst <= 40) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water6.paa";
 };
 if (life_thirst <= 30) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water7.paa";
 };
 if (life_thirst <= 20) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water8.paa";
 };
 if (life_thirst <= 10) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water9.paa";
 };
 if (life_thirst <= 0) then
 {
  LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\water10.paa";
 };
};
if (damage player >= 0) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health0.paa";
};
if (damage player >= 0.01) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health1.paa";
};
if (damage player >= 0.02) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health2.paa";
};
if (damage player >= 0.03) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health3.paa";
};
if (damage player >= 0.07) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health4.paa";
};
if (damage player >= 0.13) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health5.paa";
};
if (damage player >= 0.2) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health6.paa";
};
if (damage player >= 0.3) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health7.paa";
};
if (damage player >= 0.4) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health8.paa";
};
if (damage player >= 0.7) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health9.paa";
};
if (damage player >= 1) then
{
 LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\health10.paa";
};
if(!isNil "life_hunger") then
{
 if (life_hunger <= 100) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food0.paa";
 };
 if (life_hunger <= 90) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food1.paa";
 };
 if (life_hunger <= 80) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food2.paa";
 };
 if (life_hunger <= 70) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food3.paa";
 };
 if (life_hunger <= 60) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food4.paa";
 };
 if (life_hunger <= 50) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food5.paa";
 };
 if (life_hunger <= 40) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food6.paa";
 };
 if (life_hunger <= 30) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food7.paa";
 };
 if (life_hunger <= 20) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food8.paa";
 };
 if (life_hunger <= 10) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food9.paa";
 };
 if (life_hunger <= 0) then
 {
  LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "\Altis_Life.Altis\textures\HUD\food1.paa";
 };
};

 

On ‎8‎/‎19‎/‎2017 at 3:03 AM, Franco Drambuie said:

love it - implemented on my test server...works with v5.0

 

On ‎8‎/‎20‎/‎2017 at 4:04 AM, Sneox20 said:

@Franco Drambuie I love it too but I am new... Please how can I install this beautiful HUD ? I'm interested. Do I need to create hpp files ?

Pease Help me :( it doesn't work 

Edited by L00PY

Share this post


Link to post
Share on other sites
20 minutes ago, SuddenSnipe said:

Really confused on where to put the pictures / .paa files.

In the root folder. Copy the folder called VindicateAssets and put it in the root directory

Share this post


Link to post
Share on other sites
2 hours ago, Franco Drambuie said:

@Repentz how did you get the Sound Icon to come on? did you call Hud Update on the Keyhandler for fadeSound?

 

Fadesound

#include "..\..\script_macros.hpp"
life_fadeSound = !life_fadeSound;

	if (life_fadeSound) then
	{
		1 fadeSound 0.1;
		call life_fnc_hudUpdate;
	} else {
		1 fadeSound 1;
		call life_fnc_hudUpdate;
};

 

configuration

life_fadeSound = false;

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now