GE Lua Documentation

Press F to search!

getParkedCarsData

Definition


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

local function getParkedCarsData()
  return parkedVehData
end

Callers

@/lua/ge/extensions/ui/apps/minimap/vehicles.lua
  local traffic = gameplay_traffic.getTrafficData()
  local parking = gameplay_parking.getParkedCarsData()
  local canSwitch = not core_input_actionFilter.isActionBlocked("switch_next_vehicle") and not core_input_actionFilter.isActionBlocked("switch_previous_vehicle")
@/lua/ge/extensions/c2/panelPlugins/vehicleManager.lua
  if gameplay_parking then
    local parkedData = gameplay_parking.getParkedCarsData()
    if parkedData and parkedData[vehId] then
@/lua/ge/extensions/flowgraph/modules/trafficModule.lua
function C:updateParkedCarsState()
  self.parkedCarsActive = next(gameplay_parking.getParkedCarsData()) and true or false
end