Jump to content
  • 0

[SOLVED] Hero Trader problem with AH6J_EP1


Thug

Question

Has anyone had this happen on their server?

I go to the hero trader and try to sell a AH6J_EP1

He tells me, You must get into the drivers seat of a vehicle first. Funny I just landed there 20m away.

Try to sell the heli and it says, Trade successful, you received 0 Coins

The heli still there and no money.

You can buy the heli from the trader with no problem.

Here is the class infor for the heli. btw  no other heli does this.

    class AH6J_EP1 {
        type = "trade_any_vehicle";
        buy[] = {150000,"worth"};
        sell[] = {72500,"worth"};
    };

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
5 hours ago, Thug said:

Has anyone had this happen on their server?

I go to the hero trader and try to sell a AH6J_EP1

He tells me, You must get into the drivers seat of a vehicle first. Funny I just landed there 20m away.

Try to sell the heli and it says, Trade successful, you received 0 Coins

The heli still there and no money.

You can buy the heli from the trader with no problem.

Here is the class infor for the heli. btw  no other heli does this.

    class AH6J_EP1 {
        type = "trade_any_vehicle";
        buy[] = {150000,"worth"};
        sell[] = {72500,"worth"};
    };

This sells for me fine as expected:

16:54:04 "salival (7656119799XXXXXX) sold 1x AH6J_EP1 from gear at Hero Trader for 200,000 Coins"

 

Link to comment
Share on other sites

  • 0

Thanks to all,

All of you were right the helicopters have to have an ObjectID

Got it to work with the help of @JasonTM 

This line is where the heli is created:

_motor = createVehicle [_heli select 0,_spawn,[],50,"FLY"];

Add the following two lines below the above line, so it looks like this

_motor = createVehicle [_heli select 0,_spawn,[],50,"FLY"];

_motor setVariable ["ObjectID", "1", true];

_motor setVariable ["ObjectUID", "1", true];

 
Link to comment
Share on other sites

  • 0
On 5/4/2018 at 12:55 AM, salival said:

This sells for me fine as expected:

Salival, 

JasonTM helped me to get the old version to work, but I still would like to use yours. Let me know when you have the time. I know your lyao at that one.

TBsThug

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...