> For the complete documentation index, see [llms.txt](https://savana.gitbook.io/savanascripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://savana.gitbook.io/savanascripts/scripts/spawn-selector/config.md).

# Config

{% tabs %}
{% tab title="cfg.lua" %}

```lua
cfg = {
    core = "qb",
    Locations = {
        {
            image = 'selection1',
            name = 'Vinewood',
            boldName = 'Boulevard',
            coords = {x = 226.86, y = -200.17, z =  53.92},
            longDescription = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam ratione quis expedita magni consequatur, non excepturi nesciunt laborum repellendus asperiores?",
            smallDescription = 'small text with information for someone here as example, bla-bla-bla',
        },
        {
            image = 'selection2',
            name = 'Alta',
            boldName = 'Street',
            coords = {x = 10, y = 10, z = 10},
            longDescription = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam ratione quis expedita magni consequatur, non excepturi nesciunt laborum repellendus asperiores?",
            smallDescription = 'small text with information for someone here as example, bla-bla-bla',
        },
        {
            image = 'selection3',
            name = 'Forum Drive',
            boldName = 'Street',
            coords = {x = 10, y = 10, z = 10},
            longDescription = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam ratione quis expedita magni consequatur, non excepturi nesciunt laborum repellendus asperiores?",
            smallDescription = 'small text with information for someone here as example, bla-bla-bla',
        },
        {
            image = 'selection4',
            name = 'Route 68',
            boldName = 'Boulevard',
            coords = {x = 10, y = 10, z = 10},
            longDescription = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam ratione quis expedita magni consequatur, non excepturi nesciunt laborum repellendus asperiores?",
            smallDescription = 'small text with information for someone here as example, bla-bla-bla',
        },
        {
            image = 'selection5',
            name = 'Del Perro',
            boldName = 'Boulevard',
            coords = {x = 10, y = 10, z = 10},
            longDescription = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam ratione quis expedita magni consequatur, non excepturi nesciunt laborum repellendus asperiores?",
            smallDescription = 'small text with information for someone here as example, bla-bla-bla',
        },
        {
            image = 'selection6',
            name = 'Vespucci',
            boldName = 'Boulevard',
            coords = {x = 10, y = 10, z = 10},
            longDescription = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam ratione quis expedita magni consequatur, non excepturi nesciunt laborum repellendus asperiores?",
            smallDescription = 'small text with information for someone here as example, bla-bla-bla',
        },
        {
            image = 'selection7',
            name = 'San Andreas',
            boldName = 'Avenue',
            coords = {x = 10, y = 10, z = 10},
            longDescription = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam ratione quis expedita magni consequatur, non excepturi nesciunt laborum repellendus asperiores?",
            smallDescription = 'small text with information for someone here as example, bla-bla-bla',
        },
        {
            image = 'selection8',
            name = 'Rockford',
            boldName = 'Hils',
            coords = {x = 10, y = 10, z = 10},
            longDescription = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam ratione quis expedita magni consequatur, non excepturi nesciunt laborum repellendus asperiores?",
            smallDescription = 'small text with information for someone here as example, bla-bla-bla',
        },
    },

    useQBApartments = true,
    Apartments = {
        ["apartment1"] = {
            image = "selection1",
            boldName = "",
            longDescription = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam ratione quis expedita magni consequatur, non excepturi nesciunt laborum repellendus asperiores?",
            smallDescription = 'small text with information for someone here as example, bla-bla-bla',
        },
        ["apartment2"] = {
            image = "selection2",
            boldName = "",
            longDescription = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam ratione quis expedita magni consequatur, non excepturi nesciunt laborum repellendus asperiores?",
            smallDescription = 'small text with information for someone here as example, bla-bla-bla',
        },
        ["apartment3"] = {
            image = "selection3",
            boldName = "",
            longDescription = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam ratione quis expedita magni consequatur, non excepturi nesciunt laborum repellendus asperiores?",
            smallDescription = 'small text with information for someone here as example, bla-bla-bla',
        },
        ["apartment4"] = {
            image = "selection4",
            boldName = "",
            longDescription = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam ratione quis expedita magni consequatur, non excepturi nesciunt laborum repellendus asperiores?",
            smallDescription = 'small text with information for someone here as example, bla-bla-bla',
        },
        ["apartment5"] = {
            image = "selection5",
            boldName = "",
            longDescription = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam ratione quis expedita magni consequatur, non excepturi nesciunt laborum repellendus asperiores?",
            smallDescription = 'small text with information for someone here as example, bla-bla-bla',
        },
    },

    lang = {
        spawn = "Spawn",
        selector = "Selector",
        play = "Spawn",
        lastLocation = "Last Location"
    },

    afterPlayerSpawned = function()
        -- print("player spawned")
    end
}


-- events
-- those events uses for opening spawnselector

-- exports["savana-spawnselector"]:open()
-- TriggerEvent("savana-spawnselector:OpenMenu") 
-- TriggerClientEvent("savana-spawnselector:OpenMenu", src)
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://savana.gitbook.io/savanascripts/scripts/spawn-selector/config.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.
