Sign in to follow this  
Followers 0
ghosted

Custom trader help and setup

3 posts in this topic

ok so ive setup some custom traders and having a few problems when i add the items i want into the trader /'s  it will show my menu and the defualt menu which i dont want i will explain a little better below

 

all i want it to show in my custom trader is

           "Exile_Chopper_Hummingbird_Green",
            "Exile_Chopper_Hummingbird_Civillian_Wasp",
            "Exile_Chopper_Huey_Green",
            "Exile_Chopper_Taru_Black",
            "Exile_Chopper_Taru_Covered_Black",
            "Exile_Chopper_Taru_Transport_Black" 

 

 

but it shows  this which i dont want it to show i will  see my menu in the drop down section on the trader but it also shows the all other vehicles in the first menu whch i dont want there

 

           "Exile_Chopper_Hummingbird_Green",
            "Exile_Chopper_Hummingbird_Civillian_Wasp",
            "Exile_Chopper_Huey_Green",
            "Exile_Chopper_Huey_Armed_Green",
            "Exile_Chopper_Taru_Black",
            "Exile_Chopper_Taru_Covered_Black",
            "Exile_Chopper_Taru_Transport_Black",
            "Exile_Chopper_Orca_BlackCustom",
            "Exile_Chopper_Mohawk_FIA",
            "Exile_Chopper_Huron_Black",
            "Exile_Chopper_Hellcat_Green",.
            "B_Heli_Transport_01_camo_F",

    

 

 

In my IniPlayerLocal.sqf i have called the custom trader as see below


///////////////////////////////////////////////////////////////////////////
// Custom Aircraft Trader
///////////////////////////////////////////////////////////////////////////
_trader =
[
    "Exile_Trader_Aircraft",
    "WhiteHead_17",
    ["LHD_krajPaluby"],
    [3632.781, 13126.804, 0],
    136.202
]
call ExileClient_object_trader_create;

_trader setVariable ["ExileTraderType", "Exile_Trader_CommunityCustoms6"];
 

 

Then i call it in my config.cfg as show below under my custom class

 

 

     /**
    * Kavala Aircrafts
    */
    class Exile_Trader_CommunityCustoms6
    {
        name = "KavlaAircrafts";
        showWeaponFilter = 0;
        categories[] =
        {
            "Chopperss"
        };
    };

 

Then i call my Class i want to load in the trader as seen below

 

 

    /**
    * Kavala Aircrafts
    */
    class Chopperss
    {
        name = "KavlaAircrafts";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] =
        {
            "Exile_Chopper_Hummingbird_Green",
            "Exile_Chopper_Hummingbird_Civillian_Wasp",
            "Exile_Chopper_Huey_Green",
            "Exile_Chopper_Taru_Black",
            "Exile_Chopper_Taru_Covered_Black",
            "Exile_Chopper_Taru_Transport_Black"
        
        };
    };

Share this post


Link to post
Share on other sites

Posted (edited)

Hello, I have a question about the separation of merchant aviation, helicopters and jets separately, a massive aircraft are not located near the airport terminal and explode, but the dealer wanted the helicopters to leave in place because of frequent demand. Merchant aircraft be put on more empty space. Identified dealer via Custom class, but the trader menu as a dealer in the normal subjects. Please help.

Spoiler

class Exile_Trader__Aircraft_1
    {
        name = "AIRCRAFT";
        showWeaponFilter = 0;
        categories[] =
        {
            "Planes",
            "A3Planes",
            "RHSPlanes"      
        };
    };

Config.cpp

it is implied that the rest of it works and I understand what you're doing. In the client I looked at what categories are called from CfgTraders, so boldly renamed trader in his class, maybe he is not called due to the mismatch between the fighter class and the merchant class?

Edited by leonardos1978

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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.