Forums » Community Projects

lua GetNumStation* functions

Nov 04, 2007 raybondo link
GetNumStationAmmo(), GetStationAmmoInfo(index), GetNumStationSellableInventory(), GetStationSellableInventoryInfo(index) functions have been removed. The new way to iterate through player-owned station sellable inventory and ammo are as follows:

for itemid,iteminfo in StationSellableInventoryPairs() do

for ammoid,ammoinfo in StationPlayerAmmoPairs() do

I'm saying this because I've seen lua errors from plugins trying to reference the removed functions.