Well i gave up with it in the end and tinkered with other scripts but i just tried it with my hero trader and it worked, well spotted i owe you a cookie. Such an odd way to do it but hey ho, it's less time consuming i guess. Atleast somebody in this forum is usefull. Time to put my custom traders back in and give it a whirl.
Thanks!
The video is basically the database method, you have to skip ahead and it wasn't the original tut i used, just an example. I have no RPT errors. I used an existing weapon in the database "Weapon Test". server_traders.sqf
// Jet Dealer
menu_FR_Sapper = [
[["Weapon Test",694],["Jets",693]],
[],
"neutral"
];
mission.sqf
_unit_178 = objNull;
if (true) then
{
_this = createAgent ["FR_Sapper", [12061.9, 12638.7, 0.0584259], [], 0, "CAN_COLLIDE"];
_unit_178 = _this;
_this setDir 19.4231;
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
_this setUnitAbility 0.60000002;
_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;};
server_traders
INSERT INTO `ss_5035`.`server_traders` (`id`, `classname`, `instance`, `status`, `static`, `desc`) VALUES ('178', 'FR_Sapper', '17', 'neutral', '', 'Jet Dealer');
trader_data Jet
INSERT INTO `ss_5035`.`traders_data` (`id`, `item`, `qty`, `buy`, `sell`, `order`, `tid`, `afile`) VALUES ('8083', '["A10_US_EP1",2]', '10', '[4,"ItemGoldBar10oz",1]', '[1,"ItemGoldBar10oz",1]', '0', '693', 'trade_any_vehicle');
Weapon
INSERT INTO `ss_5035`.`traders_data` (`id`, `item`, `qty`, `buy`, `sell`, `order`, `tid`, `afile`) VALUES ('0', '["M1014",3]', '10', '[3,"ItemGoldBar",1]', '[2,"ItemGoldBar",1]', '0', '694', 'trade_weapons');
trader_tids
INSERT INTO `ss_5035`.`trader_tids` (`id`, `name`, `trader`) VALUES ('694', 'Weapon Test', '178');
And yes everybody keeps saying it's easy. Yet, single coin currency was easier haha going to poke around a bit more. Just can't get anything to show up on the trader apart from the menus
Mind sharing? i done it this way http://gtxgaming.co.uk/forum/forum/learning-center-tutorials/video-tutorials/11366-video-tutorial-edit-trader-items-in-epoch-overpoch but with my trader. Everything in the database looks how it should be by the book but i am clearly missing something silly and i just can't see it/figure it out. Tell me what you need to see?
Just the subject on my mind. Having spent hours on end and downing endless cans of Rockstar energy i can not figure this out. My problem is, my new trader is not showing the item/s i have added. I have done everything right, hell... even going through countless tutorials just to make sure and still no luck. Even tried adding stuff to current traders, still no luck there. I am lost and fustrated. Has anybody been successfull? Tired of doing various tests now haha.