GE Lua Documentation

Press F to search!

getPoolById

Definition


-- @/lua/ge/extensions/core/vehicleActivePooling.lua:364

local function getPoolById(id)
  return id and pools[id]
end

Callers

@/lua/ge/extensions/gameplay/traffic.lua
local function getTrafficPool()
  return core_vehicleActivePooling and core_vehicleActivePooling.getPoolById(vehPoolId) -- returns current vehicle pool object used for traffic
end
    local pool = vehPool
    if vehPool.prevPoolId and core_vehicleActivePooling.getPoolById(vehPool.prevPoolId) then -- alternate vehicle pool for cycling (currently unused)
      pool = core_vehicleActivePooling.getPoolById(vehPool.prevPoolId)
    if vehPool.prevPoolId and core_vehicleActivePooling.getPoolById(vehPool.prevPoolId) then -- alternate vehicle pool for cycling (currently unused)
      pool = core_vehicleActivePooling.getPoolById(vehPool.prevPoolId)
    end