Jump to content
  • 0

How to add new trader Files? hpp,New Trader menu


harcosgoogle

Question

5 answers to this question

Recommended Posts

  • 0

Create your hpp file, make sure the category has a unique number and name it where ever you like

newtrader.hpp

class Category_666

Add the #include line in cfgservertrader.hpp

#include "category\newtrader.hpp"

Add the class category to your chosen trader in server_traders.sqf: example.

// Black market
menu_GUE_Woodlander2 = [
	[["Attachments",693],["Currency and gems",1100],["Black Market Ammo",527],["Black Market Weapons",526],["Explosives",529],["Static Weapons",666],
	[],
	"neutral"

 

If you have created a brand new trader, make sure the skin name is also listed in server_trader at the top.

serverTraders = [
"NEWSKINNAME","RU_Citizen3","Rocker4","Profiteer4","Rita_Ensler_EP1","CIV_EuroMan01_EP1","CIV_EuroMan02_EP1","TK_GUE_Soldier_5_EP1","GUE_Soldier_MG","Worker2","Worker3","Woodlander1","UN_CDF_Soldier_Pilot_EP1","RU_WorkWoman1","Dr_Annie_Baker_EP1","RU_Citizen4","RU_WorkWoman5","RU_Citizen1","RU_Villager3","TK_CIV_Takistani04_EP1","Pilot_EP1","RU_Profiteer4","Woodlander3","Dr_Hladik_EP1","Doctor","HouseWife1","GUE_Woodlander2",
"RU_Functionary1", // hero
"GUE_Soldier_MG" // bandit
];

Then make sure the corresponding skin name has its own entry

// Static Weapons
menu_NEWSKINMAME = [
	["Static Weapons",666]],
	[],
	"neutral"
];

Also beware, any skins you use for traders, will also make anyone else using that skin a trader. AI, or player.

It seems you are using popular skins, so be careful that no player can use that skin, or they will act as  a trader.

Link to comment
Share on other sites

  • 0

Thanks info

 

 

If you have created a brand new trader, make sure the skin name is also listed in server_trader at the top.

serverTraders = [
"NEWSKINNAME","RU_Citizen3","Rocker4","Profiteer4","Rita_Ensler_EP1","CIV_EuroMan01_EP1","CIV_EuroMan02_EP1","TK_GUE_Soldier_5_EP1","GUE_Soldier_MG","Worker2","Worker3","Woodlander1","UN_CDF_Soldier_Pilot_EP1","RU_WorkWoman1","Dr_Annie_Baker_EP1","RU_Citizen4","RU_WorkWoman5","RU_Citizen1","RU_Villager3","TK_CIV_Takistani04_EP1","Pilot_EP1","RU_Profiteer4","Woodlander3","Dr_Hladik_EP1","Doctor","HouseWife1","GUE_Woodlander2",
"RU_Functionary1", // hero
"GUE_Soldier_MG" // bandit
];

 

// Static Weapons
menu_NEWSKINMAME = [
	["Static Weapons",666]],
	[],
	"neutral"
];
This part is missing and I can not find it

@lwbuk

Link to comment
Share on other sites

  • 0

@lwbuk  @harcosgoogle

maybe im wrong but i think is not possible buy static weapons as crafteable items... only the "M240Nest_DZ" should be work. but not M2 or DSHKM statics weapons.   I think he need sell an specific item and create a sqf associated with this item to craft the mounted weapon.  and add it to safevehicles variable.

Link to comment
Share on other sites

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
  • Discord

×
×
  • Create New...