# Elevator Menu

### ShowRoom Server

If you’d like to edit the colors in the Elevator Menu (to match your server’s UI, etc.), you can do so in the Config file under the "Config.Colors" section.

```
Config.Colors = {
    menuBackground = {0, 0, 0, 200},
    headerBackground = {0, 38, 200, 200},
    selectedOption = {0, 38, 200, 100},
    optionText = {255, 255, 255, 255},
    headerText = {255, 255, 255, 255},
}
```

Additionally, you can add as many teleport points as you like in the Config by editing the "Config.Elevators" and "Config.Floors" sections. It’s best to provide the same coordinates in both sections.

```
Config.Elevators = {
    {x = -1077.99, y = -828.92, z = 31.26},  -- Roof
    {x = -1069.82, y = -833.49, z = 23.14},  -- Second Floor
    {x = -1069.93, y = -833.69, z = 19.29},  -- First Floor
    {x = -1069.77, y = -833.5, z = 11.53},  -- Laboratory
    {x = -1069.7, y = -833.62, z = 4.87},  -- Garage

}

Config.Floors = {
    {label = Config.Locales.roof, x = -1077.99, y = -828.92, z = 31.26},
    {label = Config.Locales.secondfloor, x = -1069.82, y = -833.49, z = 23.14},
    {label = Config.Locales.firstfloor, x = -1069.93, y = -833.69, z = 19.29},
    {label = Config.Locales.laboratory, x = -1069.77, y = -833.5, z = 11.53},
    {label = Config.Locales.garage, x = -1069.7, y = -833.62, z = 4.877},

}
```

The function responsible for displaying the Elevator Menu is called "OpenElevatorMenu." If you want to customize it to better fit your server, you can do so here. This file is at your disposal for any adjustments you wish to make.

<pre><code>Citizen.CreateThread(function()
    while true do
        Citizen.Wait(0)
        local playerPed = PlayerPedId()
        local playerCoords = GetEntityCoords(playerPed)

        for _, elevator in pairs(Config.Elevators) do
            local distance = #(playerCoords - vector3(elevator.x, elevator.y, elevator.z))
            if distance &#x3C; 2.0 then
                DrawMarker(1, elevator.x, elevator.y, elevator.z - 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0, 255, 0, 100, false, true, 2, false, false, false, false)
                if distance &#x3C; 1.0 then
                    ShowHelpNotification(Config.Locales.notification)
                    if IsControlJustReleased(0, 38) then
                       <a data-footnote-ref href="#user-content-fn-1"> OpenElevatorMenu(elevator)</a>
                    end
                end
            end
        end
    end
end)
</code></pre>

[^1]: This One


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://octavista-development.gitbook.io/octavista-development/mlos/vespuccilspdpreview/publish-your-docs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
