Jump to content

Recommended Posts

Hey im releasing my Custom made Food and water UI for roleplay mostly there come no health bar whit it because i dont want people to see how much health they have left because that wouldt be releastic but here it is anyway :p HOPE YOU LIKE IT

Picture: kZWpIrC.png

Download Infomation
So first off its pretty Easy to download its mostly copy past for you :)

First go into youre AltisLife\dialog\ and then open up hud_stats.hpp and replace it whit this code 

 

#define ST_CENTER         0x02
/*
    Author: DeVza

    This is a script created by DeVza for fg

    File: hud_stats.hpp
*/

class playerHUD {
    idd = -1;
    duration = 10e10;
    movingEnable = 0;
    fadein = 0;
    fadeout = 0;
    name = "playerHUD";
    onLoad = "uiNamespace setVariable ['playerHUD',_this select 0]";
    objects[] = {};
    controls[] = {
        LIFE_RscProgress_devzabackground,
        Life_RscProgress_HUDFood,
        Life_RscProgress_HUDWater
    };

    // Simpel hud made by devza 
    class LIFE_RscProgress_HUDCommon: Life_RscProgress {
        colorFrame[] = {0, 0, 0, 0.8};
        x = 0.0122186 * safezoneW + safezoneX;
        y = 0.5704 * safezoneH + safezoneY;
        w = 0.149531 * safezoneW;
        h = 0.022 * safezoneH;
    };

    class Life_RscProgress_HUDFood: LIFE_RscProgress_HUDCommon {
        idc = 2200;
        colorBar[] = {0,0.502,0,1};
        x = 0.0519792 * safezoneW + safezoneX;
        y = 0.9334 * safezoneH + safezoneY;
        w = 0.103125 * safezoneW;
        h = 0.011 * safezoneH;
    };

    class Life_RscProgress_HUDWater: LIFE_RscProgress_HUDCommon {
        idc = 2202;
        colorBar[] = {0,0.408,0.545,1};
        x = 0.0519792 * safezoneW + safezoneX;
        y = 0.9026 * safezoneH + safezoneY;
        w = 0.103125 * safezoneW;
        h = 0.011 * safezoneH;
    };

    class LIFE_RscProgress_devzabackground: life_RscPicture {
        idc = -1;
        text = "images\devzahud\hud.paa";
        x = 0.0015625 * safezoneW + safezoneX;
        y = 0.797 * safezoneH + safezoneY;
        w = 0.171875 * safezoneW;
        h = 0.231 * safezoneH;
    };
};

Now go into youre images and create a folder called devzahud or change it but make sure you change this line text = "images\devzahud\hud.paa"; if you want to change the folder name but put the hud.paa file in there that you can download right under this text and youre done :D

 

hud.paa

Share this post


Link to post
Share on other sites

11:27:55 Error in expression <nt:: Setting up Eventhandlers";
[] call life_fnc_setupEVH;

diag_log "::Life Cli>
11:27:55   Error position: <life_fnc_setupEVH;

diag_log "::Life Cli>
11:27:55   Error Nicht definierte Variable in Ausdruck: life_fnc_setupevh
11:27:55 File mpmissions\__CUR_MP.Altis\core\init.sqf, line 31

Share this post


Link to post
Share on other sites
On 3/8/2019 at 4:34 PM, kaizo said:

Comment on peux maitre la vie sur le HUD

  

They gave you the image, you'd need to do the controls and the scripting.

Share this post


Link to post
Share on other sites
On 2/16/2019 at 12:55 AM, Francis Fanzer said:

Hey im releasing my Custom made Food and water UI for roleplay mostly there come no health bar whit it because i dont want people to see how much health they have left because that wouldt be releastic but here it is anyway 😛 HOPE YOU LIKE IT

Picture: kZWpIrC.png

Download Infomation
So first off its pretty Easy to download its mostly copy past for you :)

First go into youre AltisLife\dialog\ and then open up hud_stats.hpp and replace it whit this code 

 

#define ST_CENTER         0x02
/*
    Author: DeVza

    This is a script created by DeVza for fg

    File: hud_stats.hpp
*/

class playerHUD {
    idd = -1;
    duration = 10e10;
    movingEnable = 0;
    fadein = 0;
    fadeout = 0;
    name = "playerHUD";
    onLoad = "uiNamespace setVariable ['playerHUD',_this select 0]";
    objects[] = {};
    controls[] = {
        LIFE_RscProgress_devzabackground,
        Life_RscProgress_HUDFood,
        Life_RscProgress_HUDWater
    };

    // Simpel hud made by devza 
    class LIFE_RscProgress_HUDCommon: Life_RscProgress {
        colorFrame[] = {0, 0, 0, 0.8};
        x = 0.0122186 * safezoneW + safezoneX;
        y = 0.5704 * safezoneH + safezoneY;
        w = 0.149531 * safezoneW;
        h = 0.022 * safezoneH;
    };

    class Life_RscProgress_HUDFood: LIFE_RscProgress_HUDCommon {
        idc = 2200;
        colorBar[] = {0,0.502,0,1};
        x = 0.0519792 * safezoneW + safezoneX;
        y = 0.9334 * safezoneH + safezoneY;
        w = 0.103125 * safezoneW;
        h = 0.011 * safezoneH;
    };

    class Life_RscProgress_HUDWater: LIFE_RscProgress_HUDCommon {
        idc = 2202;
        colorBar[] = {0,0.408,0.545,1};
        x = 0.0519792 * safezoneW + safezoneX;
        y = 0.9026 * safezoneH + safezoneY;
        w = 0.103125 * safezoneW;
        h = 0.011 * safezoneH;
    };

    class LIFE_RscProgress_devzabackground: life_RscPicture {
        idc = -1;
        text = "images\devzahud\hud.paa";
        x = 0.0015625 * safezoneW + safezoneX;
        y = 0.797 * safezoneH + safezoneY;
        w = 0.171875 * safezoneW;
        h = 0.231 * safezoneH;
    };
};

Now go into youre images and create a folder called devzahud or change it but make sure you change this line text = "images\devzahud\hud.paa"; if you want to change the folder name but put the hud.paa file in there that you can download right under this text and youre done :D

 

hud.paa

Il faut que ce soit avec le code j'ai mis en exergue mais je ne suis pas arrivé à la suite

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...