API StationPlayerAmmoPairs

From Vendetta Lua
Jump to navigationJump to 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:
<source lang="lua">for i,v in StationPlayerAmmoPairs() do console_print(i) printtable(v) end</source> prints the ammo info of every ammo based weapon at the current station