GE Lua Documentation

Press F to search!

getParkingSpots

Definition


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

local function getParkingSpots() -- returns a table of all current parking spots
  if not sites then
    loadSites()
  end
  return sites and sites.parkingSpots
end

Callers

@/lua/ge/extensions/career/modules/vehicleShopping.lua
      if seller.id == "private" then
        local parkingSpots = gameplay_parking.getParkingSpots().byName
        local parkingSpotNames = tableKeys(parkingSpots)
@/lua/ge/extensions/career/modules/inspectVehicle.lua
    if vehicleInfo.sellerId == "private" then
      parkingSpot = gameplay_parking.getParkingSpots().byName[vehicleInfo.parkingSpotName]
      if not teleportToVehicle then