• 0
STARTairsoft780

Confused about new trader system?

Question

I'm confused to all heck about this new trader system.

What's the difference between the trader information in the config.cpp and in the TRADERS > Exile > ItemList & TraderCategories?

 

I'm having an issue where players can't sell guns at a trader and Idk why

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Firstly, trader items must be defined in CfgExileArsenal in config.cpp with a price like so:

class CfgExileArsenal {
	class Exile_Car_HEMMT                                   { quality = 1; price = 3000; };
};

Then, you must add them to a category in the traders in CfgTraderCategories (also in config.cpp):

class Trucks
{
  name = "Trucks";
  icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
  items[] = 
  {
    "Exile_Car_HEMMT"
  };
};

Then, this category must be added to a trader (which is probably already done):

class Exile_Trader_Vehicle
  {
  name = "VEHICLE";
  showWeaponFilter = 0;
  categories[] =
  {
    "Cars",
    "Trucks"
  };
};

If all done correctly, they will display in appropriate traders with configured prices.

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.