GolovaRaoul

Community Traders can't sell vehicles?

16 posts in this topic

Yo everyone,

So I added some CUP vehicles which I want to be able to be sold at a 'special' trader.
When I add these vehicles categories to the excisting Vehicle Trader, everything works fine.

However, when I try to use CommunityTraders ( which are numbered from 1 to 10 ), vehicles will appear like this:

zo9hyt.png

Any way to fix this?

Thanks for responding :)

Share this post


Link to post
Share on other sites
Advertisement

How did u add the Military one ?? ahha can u help me out ?

Did u put an another Vehicle trader and u change the name or did u put a other seller like the Custom one ?

 

Edited by FatRat

Share this post


Link to post
Share on other sites

Yeah sure. Everything you will need to configure traders is located in your Config.cpp . This is located in *ARMA SERVER ROOT FOLDER*\mpmissions\*YOUR_MISSION_NAME* (mine is for example Exile.Chernarus)

Inside your Config.CPP, you can find the following class

Class CfgTraders (just Ctrl+F to find it quickly).
You will find here categories which the trader can sell. For example 'Planes' (which holds Cessna's, C130's....)

Here's an example of my vehicle traders.
 

Spoiler

    /**
     * Default Trader
     */
    class Exile_Trader_Vehicle
    {
        name = "VEHICLE";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Cars",
            "Trucks",
            "CUPUnarmed",
            "CUPArmed"
        };
    };

    /**
     * Militarised Air Trader @ North East Airfield
     */
    class Exile_Trader_Aircraft
    {
        name = "AIRCRAFT";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Planes",
            "PlanesArmed",
            "Choppers",
            "AttackHeli",
            "Jets"
        };
    };

    /**
     * Militarised Ground Vehicle Trader @ Topolka Dam
     */ 
    class Exile_Trader_Boat
    {
        name = "BOAT";
        showWeaponFilter = 0;
        categories[] = 
        {    
            "CUPArmed",
            "Tanks"
        };
    };

So now we point at 'Planes' in the Aircraft Trader.
Now navigate (also inside Config.cpp) inside class CfgTraderCategories.

Here you will find a class 'Planes'
Here's my example.
 

Spoiler

class Planes
    {
        name = "Unarmed Planes";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] = 
        {
            "Exile_Plane_Cessna",
            "Exile_Plane_AN2_Green",
            "Exile_Plane_Ceasar",
            "Exile_Plane_BlackfishInfantry",
            "Exile_Plane_BlackfishVehicle",
            "CUP_C_DC3_CIV",
            "CUP_C_C47_CIV",
            "CUP_B_MV22_USMC",
            "CUP_O_C130J_TKA"

        };
    };

So now I have an aircraft trader which sells those planes.
You can create endless Categories and add them to your trader. But just keep in your head that you only have 3 traders which can sell vehicle's.

Share this post


Link to post
Share on other sites

but this is for normal seller vehicle ?? right ?

 

  * Militarised Ground Vehicle Trader @ Topolka Dam
     */ 
    class Exile_Trader_Boat
    {
        name = "BOAT";
        showWeaponFilter = 0;
        categories[] = 
        {    
            "CUPArmed",
            "Tanks"
        };
    };

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.