API PlayerInventoryPairs
From Vendetta Lua
Jump to navigationJump to 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:
<source lang="lua">for i,v in PlayInventoryPairs() do console_print(i) printtable(v) end</source>
prints the info of every item in the players inventory to the console