> For the complete documentation index, see [llms.txt](https://gocomedyfunstoredocs.gitbook.io/gocomedyfun-store/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gocomedyfunstoredocs.gitbook.io/gocomedyfun-store/scripts-free/appli-fun/english/configuration/config/applications.md).

# Applications

```
Config.Applications = {
    {
        Lieux = "example",
        Coordonner = vec3(0000, 0000, 0000),
        Distance = 1.0,
        Debug = true,
        OxTarget = true,
        Marqueur = false,
        LienDiscord = "",
        ImageEmbed = "",
        CouleurEmbed = 3447003,
        Types = {
            { label = "EXAMPLE", value = "Example" },
        }
    }
}
```

## Application Configuration

This part of the configuration file allows you to create the different **application points** used by the script\
An application point allows players to send a request, join a service, get information, or perform any interaction you want to offer

***

## Step 1 — Add an application

In `Config.Applications`, each block `{ ... }` corresponds to a **different application**

In this example, only one application is configured:

```
{
    Lieux = "example",
    ...
}
```

You can add **as many applications as you want** simply by adding a new block to the configuration

***

## Step 2 — Define the location

The parameter:

```
Lieux = "example",
```

defines the name of the location or service associated with this application

This makes it easier to identify the application in the configuration

***

## Step 3 — Define the coordinates

The parameter:

```
Coordonner = vec3(0000, 0000, 0000),
```

defines the exact position of the interaction point on the map

The values correspond to the coordinates:

• **X**\
• **Y**\
• **Z**

This is the location where players will be able to interact with the application

***

## Step 4 — Define the interaction distance

The parameter:

```
Distance = 1.0,
```

defines the maximum distance at which a player can interact with the application point

***

## Step 5 — Enable debug mode

The parameter:

```
Debug = true,
```

enables the script’s **debug mode**

When enabled, certain information or zones may appear to help you verify that the location and interaction are working correctly

***

## Step 6 — Choose the interaction system

Two interaction systems are available:

```
OxTarget = true,
Marqueur = false,
```

#### ox\_target

If `OxTarget = true`, the interaction will use **ox\_target**

#### Marker

If `Marqueur = true`, a **ground marker** will be displayed and players will be able to interact with it.

⚠️ **Important**

You must use **either ox\_target or the marker**, but **not both at the same time**

Example:

Using **ox\_target**

```
OxTarget = true,
Marqueur = false,
```

Using **the marker**

```
OxTarget = false,
Marqueur = true,
```

***

## Step 7 — Add the Discord webhook

The parameter:

```
LienDiscord = "",
```

allows you to add the **Discord webhook** that will receive the applications or requests sent by players

***

## Step 8 — Set the embed image

The parameter:

```
ImageEmbed = "",
```

allows you to add an image to the **Discord embed** sent by the webhook.

***

## Step 9 — Set the embed color

The parameter:

```
CouleurEmbed = 3447003,
```

defines the color of the **Discord embed** using a decimal color value

***

## Step 10 — Add request types

The parameter:

```
Types = {
    { label = "EXAMPLE", value = "Example" },
}
```

defines the different **options available to players**

Each line corresponds to a request type:

• **label** → text displayed to the player\
• **value** → internal value used by the script

Example:

```
Types = {
    { label = "Join EMS", value = "join" },
    { label = "Need information", value = "info" },
    { label = "Other", value = "other" }
}
```

You can add **as many request types as you want** depending on your needs

***

## Adding multiple applications

You can create **as many applications as needed**

Example:

```
Config.Applications = {
    {
        Lieux = "gouv",
        Coordonner = vec3(1.0, 1.0, 1.0),
        Distance = 2.0,
        Debug = false,
        OxTarget = true,
        Marqueur = false,
        LienDiscord = "",
        ImageEmbed = "",
        CouleurEmbed = 3447003,
        Types = {
            { label = "Join", value = "join" }
        }
    },

    {
        Lieux = "ems",
        Coordonner = vec3(2.0, 2.0, 2.0),
        Distance = 2.0,
        Debug = false,
        OxTarget = false,
        Marqueur = true,
        LienDiscord = "",
        ImageEmbed = "",
        CouleurEmbed = 3447003,
        Types = {
            { label = "Information", value = "info" }
        }
    }
}
```

Each `{ ... }` block adds a **new application point**, which means you can create **as many as you want depending on your server’s needs**
