API StationPlayerAmmoPairs

From Vendetta Lua
Jump to: navigation, search

StationPlayerAmmoPairs

Definition: StationPlayerAmmoPairs() -> int itemid table ammoinfo
Description:
Iterator function that prints information about ammo based weapons in the players inventory at the current station each time it is called. works like pairs()
Returns:
itemid itemid
iteminfo ammoinfo
Example:

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

prints the ammo info of every ammo based weapon at the current station