GE Lua Documentation

Press F to search!

openSelectorUI_legcay

Definition


-- @/lua/ge/extensions/core/vehicles.lua:1021

-- the old vehicle selector can still be opened using this
local function openSelectorUI_legcay()
  if getMissionFilename() == '' then
    -- no vehicle selector in main menu
    return
  end
  log("I", "", "Vehicle selector triggered")
  if profilerEnabled then p = LuaProfiler("Vehicle Selector menu (triggered by a binding)") end
  if p then p:start() end
  guihooks.trigger('MenuOpenModule','vehicleselect')
  if p then p:add("guihook trigger") end
end

Callers