API PlayerInventoryPairs

From Vendetta Lua
Jump to: navigation, search

PlayerInventoryPairs

Definition: PlayerInventoryPairs() -> int itemid table iteminfo
Description:
Iterator function that returns information about an item in the players inventory each time it is called. works like pairs()
Returns:
itemid itemid
iteminfo inventory iteminfo
Example:

for i,v in PlayInventoryPairs() do console_print(i) printtable(v) end

prints the info of every item in the players inventory to the console