Jump to content
Mobby

Custom Textures Disappearing

Recommended Posts

Hey, I just rented a server on nitrado and when I put my texture on a uniform it works once you log in, but if you take it off and on the custom uniform disappears and the clothing turns back into its default. It also doesnt appearing as the custom texture in the shop, so I'm not sure how exactly I would fix this. Let me know what files you would like to see, thanks.

Share this post


Link to post
Share on other sites

Files you will need
fn_playerSkins.sqf (root > core > functions)
fn_inventoryOpened.sqf (root > core > functions)

fn_playerSkins.sqf
find "case west"

            if (uniform player isEqualTo "U_C_Poloshirt_redwhite") then {
                player setObjectTextureGlobal [0, "textures\civilian_uniform_6.jpg"];
            };
            if (uniform player isEqualTo "U_C_Commoner1_1") then {
                player setObjectTextureGlobal [0, "textures\civilian_uniform_7.jpg"];
            };
        };
    };

    case west: {

In case west you should see something like this:

        if (uniform player isEqualTo "U_I_CombatUniform_shortsleeve") then {
            _skinName = "textures\Clothes\West\APD\Cop_Blue.paa";
            player setObjectTextureGlobal [0, _skinName];
        };

To add a custom uniform or texture replace "UniformClassName" and "My\Texture\File\Path\Texture.paa":

        if (uniform player isEqualTo "UniformClassName") then {
            _skinName = "My\Texture\File\Path\Texture.paa";
            player setObjectTextureGlobal [0, _skinName];
        };


fn_inventoryOpened.sqf
Add "[] call life_fnc_playerSkins;" on line 14. It should look like this:

_container = _this select 1;

[] call life_fnc_playerSkins;

_isPack = FETCH_CONFIG2(getNumber,"CfgVehicles",typeOf _container,"isBackpack");

 

Share this post


Link to post
Share on other sites
44 minutes ago, Fawks said:

fn_inventoryOpened.sqf
Add "[] call life_fnc_playerSkins;" on line 14. It should look like this:

_container = _this select 1;

[] call life_fnc_playerSkins;

_isPack = FETCH_CONFIG2(getNumber,"CfgVehicles",typeOf _container,"isBackpack");

 

That file has been updated since for 5.0, you would need to put it after the first "{" to have it do the same thing: https://github.com/AsYetUntitled/Framework/blob/master/Altis_Life.Altis/core/functions/fn_inventoryOpened.sqf#L18

Share this post


Link to post
Share on other sites
58 minutes ago, Fawks said:

Files you will need
fn_playerSkins.sqf (root > core > functions)
fn_inventoryOpened.sqf (root > core > functions)

fn_playerSkins.sqf
find "case west"

            if (uniform player isEqualTo "U_C_Poloshirt_redwhite") then {
                player setObjectTextureGlobal [0, "textures\civilian_uniform_6.jpg"];
            };
            if (uniform player isEqualTo "U_C_Commoner1_1") then {
                player setObjectTextureGlobal [0, "textures\civilian_uniform_7.jpg"];
            };
        };
    };

    case west: {

In case west you should see something like this:

        if (uniform player isEqualTo "U_I_CombatUniform_shortsleeve") then {
            _skinName = "textures\Clothes\West\APD\Cop_Blue.paa";
            player setObjectTextureGlobal [0, _skinName];
        };

To add a custom uniform or texture replace "UniformClassName" and "My\Texture\File\Path\Texture.paa":

        if (uniform player isEqualTo "UniformClassName") then {
            _skinName = "My\Texture\File\Path\Texture.paa";
            player setObjectTextureGlobal [0, _skinName];
        };


fn_inventoryOpened.sqf
Add "[] call life_fnc_playerSkins;" on line 14. It should look like this:

_container = _this select 1;

[] call life_fnc_playerSkins;

_isPack = FETCH_CONFIG2(getNumber,"CfgVehicles",typeOf _container,"isBackpack");

 

Alright, I'll give this a shot asap, thanks!

Share this post


Link to post
Share on other sites

Well it's better. The skin now shows in the store and when the texture disappears for whatever reason I can enter the clothing shop and the texture returns. However, I drop it from my inventory and when I pick it back up the texture is gone. If it wasn't obvious enough I'm still pretty fresh with Arma config, so I really can't pinpoint the problem. The help so far is appreciated, if you have answers for this that'd be great!

Share this post


Link to post
Share on other sites

Man, I really should've tried that haha. When I reopen my inventory it reapplies. Thanks so much for the help my man!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×