getStationStock

Returns the stock level of a given fuel type for a specific station (or all fuel stock levels if no type passed).

-- ARGUMENTS
-- stationIndex:  number
-- fuelType:      string (OPTIONAL) 

-- RETURNS
-- number OR table {fuelType = stockLevel, ...}

local n = exports["ti_fuel"]:getStationStock("Electric")
local t = exports["ti_fuel"]:getStationStock()

Last updated