Jump to content
kdaws5

Adding cop uniform skins

Recommended Posts

Hey guys I posted in the discord but this may be easier to keep track on and maybe help for others in future. 

I am having an issue with cop skins. For some reason after I think doing everything right I still cannot get them to work. When i go into the store all I see is the uniform the skin is meant to overwrite so example the rangemaster and the U_B_CombatUniform_mcam_tshirt ect. It's just those uniforms and not the file it's meant to be. Here are my pastebins:

fn_playerskins.sqf - https://pastebin.com/UbMUkSKz

client rpt - https://pastebin.com/vZAuPEWK

config_clothing.sqf - https://pastebin.com/4nSBuzzA

Share this post


Link to post
Share on other sites

Try this, put this at the very bottom of your initCOP -

[] spawn
{
while {true} do
{
waitUntil {uniform player == "U_B_CombatUniform_mcam"};
player setObjectTextureGlobal [0,"textures\police\scotpol_hvuniform.paa"];
waitUntil {uniform player != "U_B_CombatUniform_mcam"};
};

 

(Just change the uniform and your texture) this worked for me to start off

Share this post


Link to post
Share on other sites

That would work but only for players, @kdaws5's issue is (I assume) with the NPCs.

Edited by Fawks
Clarifying my statement.

Share this post


Link to post
Share on other sites

@kdaws5 in your fn_playerskins.sqf replace---
 

     case west: {
       if ((uniform player isEqualTo "U_Rangemaster") && { FETCH_CONST(life_coplevel) >= 0 }) then {
            player setObjectTextureGlobal [0, "textures\cop\policepub_shirt.paa"];
        };
        if ((FETCH_CONST(life_coplevel) >= 1) && ((uniform player) == "U_B_CombatUniform_mcam_tshirt")) then {
            player setObjectTextureGlobal [0, "textures\cop\police_shirt.paa"];
        };
        if ((FETCH_CONST(life_coplevel) >= 5) && ((uniform player) == "U_B_CombatUniform_mcam_worn")) then {
            player setObjectTextureGlobal [0, "textures\cop\swat_shirt.paa"];

with

     case west: {
       if ((uniform player isEqualTo "U_Rangemaster") && { FETCH_CONST(life_coplevel) >= 0 }) then {
            player setObjectTextureGlobal [0, "textures\cop\policepub_shirt.paa"];
        };
        if ((uniform player isEqualTo " U_B_CombatUniform_mcam_tshirt ") && { FETCH_CONST(life_coplevel) >= 1 }) then {
            player setObjectTextureGlobal [0, "textures\cop\police_shirt.paa"];
        };
        if ((uniform player isEqualTo " U_B_CombatUniform_mcam_worn") && { FETCH_CONST(life_coplevel) >= 5 }) then {
            player setObjectTextureGlobal [0, "textures\cop\swat_shirt.paa"];

 

Edited by Fawks
Inserted answer in code-block instead of quotes

Share this post


Link to post
Share on other sites

Hey @Fawks and @Jack VenoM, the problem I have is just with uniforms in general. I use infostands not any NPC's. So just normal uniforms I can't get to work. When I go into the shop to buy them I just see the normal uniforms it is meant to overwrite not the skin I added.

Share this post


Link to post
Share on other sites

@kdaws5 Did you update your "fn_playerskins.sqf" with what I posted?
Your "fn_changeclothes.sqf" shouldn't be the problem since it uses "fn_playerskins.sqf" to preview the uniform.

Edited by Fawks
Updated the answer.

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

×