GE Lua Documentation

Press F to search!

getParkedCarsAmount

Definition


-- @/lua/ge/extensions/gameplay/parking.lua:416

local function getParkedCarsAmount(activeOnly)
  return activeOnly and min(vars.activeAmount, #parkedVehIds) or #parkedVehIds
end

Callers

@/lua/ge/extensions/gameplay/parking.lua

  local amount, activeAmount = getParkedCarsAmount(), getParkedCarsAmount(true)
  log('I', logTag, string.format('Parking system started with %d active / %d total vehicles', activeAmount, amount))

  local amount, activeAmount = getParkedCarsAmount(), getParkedCarsAmount(true)
  log('I', logTag, string.format('Parking system started with %d active / %d total vehicles', activeAmount, amount))