> For the complete documentation index, see [llms.txt](https://tefox-scripts.gitbook.io/tefox-scripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tefox-scripts.gitbook.io/tefox-scripts-docs/tefox-scripts-documentation/tefox_multicharacter/configuration.md). Agents can also search and read this documentation through its [MCP server](https://tefox-scripts.gitbook.io/tefox-scripts-docs/~gitbook/mcp).

# Configuration

The TEFOX Multicharacter system is highly modular and gives the server owner absolute freedom. Core settings, integrations, and visual locations can be adjusted in <mark style="color:yellow;">`shared/config.lua`</mark>, while custom logic is safely handled in <mark style="color:yellow;">`shared/open.lua`</mark><mark style="color:yellow;">.</mark>

#### <mark style="color:$danger;">1. Core Settings & Integrations</mark>

* <mark style="color:green;">**`Config.Framework`**</mark><mark style="color:green;">**:**</mark> Select your framework <mark style="color:$info;">(</mark><mark style="color:$info;">`"auto"`</mark><mark style="color:$info;">,</mark> <mark style="color:$info;"></mark><mark style="color:$info;">`"qbcore"`</mark><mark style="color:$info;">,</mark> <mark style="color:$info;"></mark><mark style="color:$info;">`"qbox"`</mark><mark style="color:$info;">, or</mark> <mark style="color:$info;"></mark><mark style="color:$info;">`"esx"`</mark><mark style="color:$info;">)</mark>. It is highly recommended to leave this as <mark style="color:$info;">`"auto"`</mark>, as the script will intelligently detect your framework out of the box.
* <mark style="color:green;">**`Config.SpawnSystem`**</mark><mark style="color:green;">**:**</mark> Gives you the freedom to define which spawn selector your server uses. Don't have a spawn system? No problem! Simply set this to <mark style="color:$info;">`"none"`</mark> and the script will handle everything automatically.
* <mark style="color:green;">**`Config.DefaultSpawn`**</mark><mark style="color:green;">**:**</mark> The default spawn coordinates for characters. *<mark style="color:$info;">(Used ONLY if</mark> <mark style="color:$info;"></mark><mark style="color:$info;">`Config.SpawnSystem`</mark>* *is set to* *<mark style="color:$info;">`"none"`</mark><mark style="color:$info;">)</mark>.*
* <mark style="color:green;">**`Config.NewCharClothingLocation`**</mark><mark style="color:green;">**:**</mark> The exact coordinates where newly created characters will be teleported to configure their initial appearance (clothing menu).
* <mark style="color:green;">**`Config.ApartmentSystem`**</mark><mark style="color:green;">**:**</mark> Choose the starting apartment system used for newly created characters.
* <mark style="color:green;">**`Config.Clothing`**</mark><mark style="color:green;">**:**</mark> Define which clothing menu triggers when a player creates a new character.
* <mark style="color:green;">**`Config.WeatherSync`**</mark><mark style="color:green;">**:**</mark> Select your server's weather/time sync script so the preview screen takes control smoothly.

#### <mark style="color:$danger;">2. Preview Screen Locations</mark>

* <mark style="color:green;">**`Config.Locations`**</mark><mark style="color:green;">**:**</mark> This section is dedicated to the character selection UI. It defines the beautiful backgrounds where your characters stand while you browse them, setting the exact coordinates for the character (`ped`) and the camera angle (`cam`).

<mark style="color:blue;">Example Setup:</mark>

Lua

```lua
Config.Locations = {
    [1] = {
        name = "Legion Square",
        cam = vector4(187.51, -957.25, 30.17, 144.44),
        ped = vector4(186.47, -958.57, 30.01, 323.01)
    },
    [2] = {
        name = "Del Perro Beach",
        cam = vector4(-1599.58, -1042.20, 13.18, 140.05),
        ped = vector4(-1600.62, -1043.52, 13.02, 318.62)
    },
    [3] = {
        name = "Richman",
        cam = vector4(-1349.12, -90.45, 50.8, 227.07),
        ped = vector4(-1347.87, -91.71, 50.7, 48.85)
    }
}
```

#### <mark style="color:$danger;">3. Developer Integrations (</mark><mark style="color:$danger;">`shared/open.lua`</mark><mark style="color:$danger;">)</mark>

**This file is left completely unescrowed (open source) for server owners and developers.**

* <mark style="color:green;">**Limitless Compatibility:**</mark> Even if your specific Spawn, Clothing, or Apartment system isn't listed in the config, you can easily plug your custom exports or events directly into <mark style="color:yellow;">`open.lua`</mark> to make it 100% compatible with your unique server setup!
