R5th 3 Posted August 2, 2022 I'm trying to get vehicle inventory to clipboard. So far manage to get each item by using this separate vehicle init on Eden editor, Spoiler copyToClipboard str getItemCargo this; copyToClipboard str getWeaponCargo this; copyToClipboard str getMagazineCargo this; copyToClipboard str getAmmoCargo this; Question is how to simplify all those code into 1. I've tried put all those code into vehicle init on Eden editor but only 1 code that manage to be copied on clipboard, the rest aren't. Share this post Link to post Share on other sites
sarogahtyp 1109 Posted August 2, 2022 copyToClipboard str (getItemCargo this + getWeaponCargo this + ... + ...); 1 Share this post Link to post Share on other sites
R5th 3 Posted August 2, 2022 1 hour ago, sarogahtyp said: copyToClipboard str (getItemCargo this + getWeaponCargo this + ... + ...); Not working Spoiler Share this post Link to post Share on other sites
Ibragim A 163 Posted August 2, 2022 Try this way: _text1 = str (getItemCargo this); _text2 = str (getWeaponCargo this); _text3 = str (getMagazineCargo this); _text4 = str (getAmmoCargo this); copyToClipboard ("Items: " + _text1 + "; Weapons: " + _text2 + "; Magazines: " + _text3 + "; Ammo: " + _text4); 1 Share this post Link to post Share on other sites
R5th 3 Posted August 2, 2022 I made a mistake by putting this code getAmmoCargo which intended for vehicle ammo. Anyway, this code works copyToClipboard str (getWeaponCargo this + getMagazineCargo this + getItemCargo this + getBackpackCargo this); But the amount of items/weapons not shown correctly on the pasted clipboard. Share this post Link to post Share on other sites
R5th 3 Posted August 2, 2022 15 minutes ago, Ibragim A said: Try this way: _text1 = str (getItemCargo this); _text2 = str (getWeaponCargo this); _text3 = str (getMagazineCargo this); _text4 = str (getAmmoCargo this); copyToClipboard ("Items: " + _text1 + "; Weapons: " + _text2 + "; Magazines: " + _text3 + "; Ammo: " + _text4); This code awesome and well organized! Easy to separate the items! Share this post Link to post Share on other sites