API LoadCargo
From Vendetta Lua
LoadCargo
Definition:
LoadCargo({{int itemid, int quantity} ..}, function cb) -> nil
Description:
Load cargo items and quantitiss according to the provided table
Arguments:
itemid itemid of cargo item
quantity amount of this cargo to load
cb optional function to call on success
Example:
<source lang="lua">LoadCargo{{itemid=1234, quantity=2}, {itemid=1235, quantity=3}}</source>
load 2 units of the cargo with the itemid 1234 and 3 with the id 1235