Jump to content
  • 0

add to vendor - no pic or description


Ventana

Question

What am i doing wrong?  I added these vehicles using this code"

 

Added to "trader_items" table first.

INSERT INTO `trader_items` (`classname`, `type`, `group`, `afile`) VALUES ('pook_H13_civ_ru_yellow', '2', 'Helicopter Unarmed', 'trade_any_vehicle');
INSERT INTO `trader_items` (`classname`, `type`, `group`, `afile`) VALUES ('pook_H13_civ_ru", '2', 'Helicopter Unarmed', 'trade_any_vehicle');
INSERT INTO `trader_items` (`classname`, `type`, `group`, `afile`) VALUES ('pook_H13_civ_ru_white', '2', 'Helicopter Unarmed', 'trade_any_vehicle');
INSERT INTO `trader_items` (`classname`, `type`, `group`, `afile`) VALUES ('pook_H13_civ_ru_slate', '2', 'Helicopter Unarmed', 'trade_any_vehicle');
INSERT INTO `trader_items` (`classname`, `type`, `group`, `afile`) VALUES ('pook_H13_civ_ru_black', '2', 'Helicopter Unarmed', 'trade_any_vehicle');

Then to the traders.

INSERT INTO traders_data (`item`, `qty`, `buy`, `sell`, `tid`, `afile`) VALUES ('["pook_H13_civ_ru_yellow",1]', 5, '[8,"ItemGoldBar10oz",1]', '[4,"ItemGoldBar10oz",1]', 519, 'trade_any_vehicle');
INSERT INTO traders_data (`item`, `qty`, `buy`, `sell`, `tid`, `afile`) VALUES ('["pook_H13_civ_ru",1]', 5, '[8,"ItemGoldBar10oz",1]', '[4,"ItemGoldBar10oz",1]', 519, 'trade_any_vehicle');
INSERT INTO traders_data (`item`, `qty`, `buy`, `sell`, `tid`, `afile`) VALUES ('["pook_H13_civ_ru_white",1]', 5, '[8,"ItemGoldBar10oz",1]', '[4,"ItemGoldBar10oz",1]', 519, 'trade_any_vehicle');
INSERT INTO traders_data (`item`, `qty`, `buy`, `sell`, `tid`, `afile`) VALUES ('["pook_H13_civ_ru_slate",1]', 5, '[8,"ItemGoldBar10oz",1]', '[4,"ItemGoldBar10oz",1]', 519, 'trade_any_vehicle');

 

All went well, except when i look at them in the trader I do not see the picture or get the player description like other items have.  the description is just the item name itself, i.e. 'pook_H13_civ_ru_yellow'
 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

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

×
×
  • Create New...