API CheckStorageAndUnloadCargo
From Vendetta Lua
CheckStorageAndUnloadCargo
Type | Name | Description |
---|---|---|
table | {{number itemid, number quantity} ..} itemid = itemid of cargo item | |
function | cb | optional function to call on success (optional) |
Type | Name | Description |
---|---|---|
nil |
CheckStorageAndUnloadCargo{{itemid=1234, quantity=2}, {itemid=1235, quantity=3}}
unload 2 units of the cargo with the itemid 1234 and 3 with the id 1235