Thug Posted May 3, 2018 Report Share Posted May 3, 2018 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 More sharing options...
0 salival Posted May 4, 2018 Report Share Posted May 4, 2018 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" Thug 1 Link to comment Share on other sites More sharing options...
0 Thug Posted May 4, 2018 Author Report Share Posted May 4, 2018 Thanks @salival maybe I will try lowering the price. It makes no sense. Link to comment Share on other sites More sharing options...
0 Tanita-Corp Posted May 5, 2018 Report Share Posted May 5, 2018 this happen when id vehicle = 0 need RPT log Thug 1 Link to comment Share on other sites More sharing options...
0 Airwaves Man Posted May 8, 2018 Report Share Posted May 8, 2018 @Thug @Tanita-Corp is right. Your AH6J_EP1 has no ObjectID and no ObjectUID or both are 0. You have to define at least one of them to fix the error. I guess it is a deployed AH6J_EP1 or an event spawned one. Thug 1 Link to comment Share on other sites More sharing options...
0 Thug Posted May 19, 2018 Author Report Share Posted May 19, 2018 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 More sharing options...
0 Thug Posted May 19, 2018 Author Report Share Posted May 19, 2018 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 More sharing options...
Question
Thug
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
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now