Leonardo Twinkle

~Remove HUD~

16 posts in this topic

Un-Pack Mission Pbo

1. In mission root create new Text Document 

2. Name it disable_hud.sqf

3. Paste this inside

Spoiler

disableSerialization;
waitUntil {(!isNil {uiNamespace getVariable "RscExileHUD"})};

while {true} do { 

        uiSleep 1; //Ammo
        _display = uiNamespace getVariable "RscExileHUD";
        _ctrl = _display displayCtrl 1100;
        _ctrl ctrlSetPosition [-10,-10,0,0];
        _ctrl ctrlCommit 0;

        uiSleep 1; //Thirst_Hunger
        _display = uiNamespace getVariable "RscExileHUD";
        _ctrl = _display displayCtrl 1300;
        _ctrl ctrlSetPosition [-10,-10,0,0];
        _ctrl ctrlCommit 0;

        uiSleep 1; //Grenade_Zip
        _display = uiNamespace getVariable "RscExileHUD";
        _ctrl = _display displayCtrl 1400;
        _ctrl ctrlSetPosition [-10,-10,0,0];
        _ctrl ctrlCommit 0;

};

 

4. Inside initPlayerLocal.sqf add this to the bottom

execVM "disable_hud.sqf";

Repack Pbo, Start Server

Edited by Leonardo Twinkle

Share this post


Link to post
Share on other sites
Advertisement

If you want to keep say Ammo on the hud just delete 

disableSerialization;
waitUntil {(!isNil {uiNamespace getVariable "RscExileHUD"})};
    
while {true} do { 

        uiSleep 1; //Thirst_Hunger
        _display = uiNamespace getVariable "RscExileHUD";
        _ctrl = _display displayCtrl 1300;
        _ctrl ctrlSetPosition [-10,-10,0,0];
        _ctrl ctrlCommit 0;

        uiSleep 1; //Grenade_Zip
        _display = uiNamespace getVariable "RscExileHUD";
        _ctrl = _display displayCtrl 1400;
        _ctrl ctrlSetPosition [-10,-10,0,0];
        _ctrl ctrlCommit 0;

};

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.