[*] Fix trade
This commit is contained in:
@@ -69,7 +69,7 @@
|
|||||||
<button id='tf_cancle3' onclick="">Schließen</button>
|
<button id='tf_cancle3' onclick="">Schließen</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input type="text" id="tf_nameorid" name="number" placeholder="Zum Rucksack transferieren" min="1" step="1" oninput="this.value=this.value.replace(/[^0-9]/g,'');">
|
<input type="text" id="tf_nameorid" name="fname" placeholder="Name oder ID eingeben">
|
||||||
<button id='tf_submitTrade' onclick="">Senden</button>
|
<button id='tf_submitTrade' onclick="">Senden</button>
|
||||||
|
|
||||||
<div class="title"><div class="titlecount"><span id="count3">0</span> Kilogramm</div><div class="titletext">Handeln</div></div>
|
<div class="title"><div class="titlecount"><span id="count3">0</span> Kilogramm</div><div class="titletext">Handeln</div></div>
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
handelItemID.push(handelInv[i].ID);
|
handelItemID.push(handelInv[i].ID);
|
||||||
handelItemAmount.push(handelInv[i].Amount);
|
handelItemAmount.push(handelInv[i].Amount);
|
||||||
}
|
}
|
||||||
mop.trigger("CEF:submitTrade")
|
mp.trigger("CEF:submitTrade", 0, JSON.stringify($('#fname').val()), JSON.stringify(handelItemID), JSON.stringify(handelItemAmount))
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$("#tf_cancle4").unbind('click').click(function () {
|
$("#tf_cancle4").unbind('click').click(function () {
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ export default function inventory(globalData: GlobalData): void {
|
|||||||
try {
|
try {
|
||||||
invBrowser.destroy()
|
invBrowser.destroy()
|
||||||
invBrowser = null;
|
invBrowser = null;
|
||||||
mp.events.callRemote('tradeItem', money, User, tradeItems, tradeItemAmount);
|
mp.events.callRemote('tradeItem', 0, User, tradeItems, tradeItemAmount);
|
||||||
} finally {
|
} finally {
|
||||||
mp.gui.cursor.show(false, false);
|
mp.gui.cursor.show(false, false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user