GE Lua Documentation

Press F to search!

getPoliceVehicles

Definition


-- @/lua/ge/extensions/gameplay/police.lua:154

local function getPoliceVehicles()
  return policeVehs
end

Callers

@/lua/ge/extensions/gameplay/traffic/roles/suspect.lua
    local policeIds = {}
    for id, veh in pairs(gameplay_police.getPoliceVehicles()) do
      if not veh.role.flags.pursuit and not veh.role.flags.reset then -- only available police vehicles
@/lua/ge/extensions/ui/apps/minimap/vehicles.lua

      local policeCars = gameplay_police.getPoliceVehicles()
      local isActivePoliceCar = false
      fwd:normalize()
      local policeCars = gameplay_police.getPoliceVehicles()
      local canUse = not gameplay_walk.isVehicleBlacklisted(otherVId)
@/lua/ge/extensions/editor/trafficDebug.lua
  local trafficActiveAmount = gameplay_traffic.getNumOfTraffic(true)
  local policeAmount = tableSize(gameplay_police.getPoliceVehicles())
  local parkedAmount = tableSize(gameplay_parking.getParkedCarsList())