• 0
OctsvoR

RHS 0.4.0.1 Trader Errors

Question

Posted (edited)

Hello guys, I really need help for the RHS mod errors in my server. :D

I have already added some RHS classname to the config.cpp

Here's the examples:

class CfgExileArsenal
{
	\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
	\\ M4A1
	\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
	class rhs_weapon_m4a1_carryhandle_pmag { quality = 1; price = 100; };
};
class CfgTraderCategories {
	class RHSAssaultRifles
	{
		name = "RHS Assault Rifles";
		icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
		items[] =
		{
			"rhs_weapon_m4a1_carryhandle_pmag",
		};
	};
}

But the result is very unexpected!

When I go to the trader, I can see that the weapons are in the list. But every time I try to purchase a weapon, it doesn't work at all.

Whenever I select a weapon from the list, there are no detailed information about the weapon and also I can't see the picture of it. It always says that I have an insufficient storage to store the weapon even though that I have 100% free storage with a carryall backpack.

All of your help would be very appreciated, Thank You. :D

Edited by OctsvoR

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0
2 hours ago, OctsvoR said:

 

Gimmie few traders from initPlayer.sqf

Share this post


Link to post
Share on other sites
  • 0

Oh, thank you very much! I figured it out :D.

I got these errors because I put the wrong classnames inside those .hpp files.

 

It should be:

rhs_weap_m4a1_carryhandle_pmag

which founded inside the CfgWeapons

 

Instead of:

rhs_weapon_m4a1_carryhandle_pmag

which is the child of CfgVehicles

 

Thanks again for your help guys :D!

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.