FatRat

CustomTrader

9 posts in this topic

Hello guys ! 

I have a question please

How Should i Edit this if i want to add custom Vehicle fore exemple ! 

Thx to answer me 

Share this post


Link to post
Share on other sites

You need to add the vehicle classname,

"Exile_Car_SUV_Red"

for example, to the correct section in your mission file config.cpp (Exile.Altis.pbo/config.cpp).

First of all you'll need to add it to the section:

class CfgTraderCategories

And the in here, like so:

class Cars
	{
		name = "Cars";
		icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
		items[] = 
		{
			"Exile_Car_Kart_Black",
			"Exile_Bike_QuadBike_Black",
			"Exile_Car_Hatchback_Rusty1",
			"Exile_Car_Hatchback_Rusty2",
			"Exile_Car_Hatchback_Rusty3",
			"Exile_Car_Hatchback_Sport_Red",
			"Exile_Car_SUV_Red", // <---- There it is! Make sure there is a comma after the classname
			"Exile_Car_Hatchback_Sport_Red" // <---- Make sure the last classname DOES NOT have a comma after it
		};

	};

Next you'll need to add it to:

class CfgExileArsenal

Like so:

	///////////////////////////////////////////////////////////////////////////////
	// Offroad (Repair)
	///////////////////////////////////////////////////////////////////////////////
	class Exile_Car_Offroad_Repair_Civillian 			{ quality = 4; price = 12500; };
	class Exile_Car_Offroad_Repair_Red 					{ quality = 4; price = 12500; };
	class Exile_Car_Offroad_Repair_Beige 				{ quality = 4; price = 12500; };

	class Exile_Car_Offroad_Repair_Guerilla09 			{ quality = 4; price = 12500; };
	class Exile_Car_Offroad_Repair_Guerilla10 			{ quality = 4; price = 12500; };
	class Exile_Car_Offroad_Repair_Guerilla11 			{ quality = 4; price = 12500; };
	class Exile_Car_Offroad_Repair_Guerilla12 			{ quality = 4; price = 12500; };

	///////////////////////////////////////////////////////////////////////////////
	// Strider
	///////////////////////////////////////////////////////////////////////////////
	class Exile_Car_Strider 							{ quality = 6; price = 44000; };

	///////////////////////////////////////////////////////////////////////////////
	// NEWLY ADDED RED SUV
	///////////////////////////////////////////////////////////////////////////////
	class Exile_Car_SUV_Red 							{ quality = 3; price = 14000; sellPrice = 5000}; // <---- There it is! Note, you do not need to specify a sellPrice if you do not want to

That should get you started. :)

Share this post


Link to post
Share on other sites
Advertisement

i want to add a trader For a custom comunity trader  like this 

    class Exile_Trader_CommunityCustoms3
    {
        name = "COMMUNITY";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Community3"
        };
    };

Share this post


Link to post
Share on other sites
2 minutes ago, FatRat said:

i want to add a trader For a custom comunity trader  like this 

    class Exile_Trader_CommunityCustoms3
    {
        name = "COMMUNITY";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Community3"
        };
    };

So you want to add the actual physical trader to the map, or add the gear to the trader that he will sell?

Share this post


Link to post
Share on other sites

For exemple i have assault Rifle in normal Seller and i want to put Sniper rifle in a different Seller u understand :) hihi

so yeah add the gear on the Custom seller

 

Share this post


Link to post
Share on other sites

Follow my guide above, and just do it for the " Community3 " list instead. :)

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.