• 0
Aristo

Adding vehicles/uniforms/weapons to trader

Question

Hey!

So I want to add the RHS mod to my server and know how to do that (Putting it in the arma folder, adding the key etc.) but I can't find anything about how to add stuff to the trader. I am an absolute beginner, so bear with me. I figured a lot of stuff out in the last days and added lots of stuff to the server but now I am kind of stuck. Sorry for my noob question!

 

Where exactly (Where inside the code) do I add stuff like this inside my .cpp file:

 

  1.   //UNIFORMS
  2.         class rhs_uniform_cu_ocp                                                { quality = 3; price = 50; };
  3.         class rhs_uniform_cu_ucp                                                { quality = 3; price = 50; };
    1.         class rhs_uniform_cu_ocp_101st                 { quality = 3; price = 50; };
  4.  
  5.  
  6.         //VESTS
  7.         class rhs_6sh92                                                             { quality = 2; price = 50; };
  8.         class rhs_6sh92_radio                                                   { quality = 2; price = 50; };
  9.         class rhs_6sh92_vog           

Share this post


Link to post
Share on other sites

7 answers to this question

  • 1

Edit TRADERS/CfgTraders.hpp and remove the mods you don't use

"PointerAttachments",
            "CUPPointerAttachments",
            "MASPointerAttachments",
            "R3FPointerAttachments",
            "RHSPointerAttachments",
            "BipodAttachments",
            //"APEXBipodAttachments",        //not used
            "R3FBipodAttachments",
            "RHSBipodAttachments",
            "RHSForegripAttachments",
            "MuzzleAttachments",
            "APEXMuzzleAttachments",
            //"HLCMuzzleAttachments",        //should use NIArms
            "CUPMuzzleAttachments",
            "MASMuzzleAttachments",
            "NIAMuzzleAttachments",
            "R3FMuzzleAttachments",
            "RHSMuzzleAttachments",
            "OpticAttachments",
            "APEXOpticAttachments",
            //"HLCOpticAttachments",        //should use NIArms
            "CUPOpticAttachments",
            "MASOpticAttachments",
            "NIAOpticAttachments",
            "R3FOpticAttachments",
            "RHSOpticAttachments",
            "NIAAttachments",
            "Ammunition",
            "APEXAmmunition",
            "GREFAmmunition",
            //"HLCAmmunition",        //should use NIArms
            "CUPAmmunition",
            "MASAmmunition",
            "NIAAmmunition",
            "R3FAmmunition",
            "RHSAmmunition",
            "Pistols",
            "APEXPistols",
            "CUPPistols",
            "MASPistols",
            "R3FPistols",
            "RHSPistols",
            "Shotguns",
            "SubMachineGuns",
            "APEXSubMachineGuns",
            "CUPSubMachineGuns",
            "MASSubMachineGuns",
            "R3FSubMachineGuns",
            "RHSSubMachineGuns",
            "LightMachineGuns",
            "APEXLightMachineGuns",
            //"HLCLightMachineGuns",        //should use NIArms
            "CUPLightMachineGuns",
            "MASLightMachineGuns",
            "NIALightMachineGuns",
            "R3FLightMachineGuns",
            "RHSLightMachineGuns",
            "AssaultRifles",
            "APEXAssaultRifles",
            "HAPASSAULTRIFLES",
            //"HLCAssaultRifles",        //should use NIArms
            "CUPAssaultRifles",
            "MASAssaultRifles",
            "NIAAssaultRifles",
            "R3FAssaultRifles",
            "RHSAssaultRifles",
            "GREFWeapons",
            "SniperRifles",
            "APEXSniperRifles",
            "HAPSNIPERRIFLES",
            //"HLCSniperRifles",        //should use NIArms
            "HWPweapons",
            "CUPSniperRifles",
            "MASSniperRifles",
            "NIASniperRifles",
            "R3FSniperRifles",
            "RHSSniperRifles",
            "SAFWeapons", 
            "SAFAmmunition", 
            "SAFAttachments"

example above if you only use exile and rhs remove SAF, RF3, NIA, and so on.

make sure the end of each line is the same at the end. "RHSSniperRifles" NOT WITH THE , like this "RHSSniperRifles",

            "PointerAttachments",
            "RHSPointerAttachments",
            "BipodAttachments",
            "RHSBipodAttachments",
            "RHSForegripAttachments",
            "MuzzleAttachments",
            "APEXMuzzleAttachments",
            "RHSMuzzleAttachments",
            "OpticAttachments",
            "APEXOpticAttachments",
            "RHSOpticAttachments",
            "Ammunition",
            "APEXAmmunition",
            "GREFAmmunition",
            "RHSAmmunition",
            "Pistols",
            "APEXPistols",
            "RHSPistols",
            "Shotguns",
            "SubMachineGuns",
            "APEXSubMachineGuns",
            "RHSSubMachineGuns",
            "LightMachineGuns",
            "APEXLightMachineGuns",
            "RHSLightMachineGuns",
            "AssaultRifles",
            "APEXAssaultRifles",
            "RHSAssaultRifles",
            "GREFWeapons",
            "SniperRifles",
            "APEXSniperRifles",
            "RHSSniperRifles"

Edited by johnyboy2o11
  • Like 1

Share this post


Link to post
Share on other sites
Advertisement
  • 0

Thank you so much for your reply, this really helped and I know what to do now!

Just one last question because I am confused by the abbrevations: I will add RHSUSAF (RHS: United States Armed Forces). I guess in the TRADERS folder, with the presets, it's RHSUSFW I have to pick (Confused by the W at the end of it)? 

 Thanks!

 

 

Edited by Aristo

Share this post


Link to post
Share on other sites
  • 0

I used both, vehicles and weapons and the stuff is showing up at the trader.

However, there are empty rows between stuff at the armory, equipment and vehicle trader. I can see and purchase the RHS stuff but the empty rows are annoying. I followed the tutorial step by step so I have no idea.

I added a picture of my problem.

Also the instructions said to replace the original code in the trader section of the config.cpp and now all the Exile stuff is missing even though the CfgTraders.hpp should have all the stuff included as far as I understand? When I keep the Exile stuff and include the RHS stuff above the Exile stuff shows up but I get an error message. But even then there are still empty rows even WITH Exile AND RHS. Kind of lost here. What is causing the empty, black rows?

emptyrows.png

Share this post


Link to post
Share on other sites
  • 0

Thanks for your reply, this was the error. I had actually figured it out myself once I took a close look at the file. The tutorial forgets to mention this part so I was a little lost at first. And thanks for your offer!

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.