> For the complete documentation index, see [llms.txt](https://lumio-studio.gitbook.io/intro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lumio-studio.gitbook.io/intro/pets/configuration.md).

# Configuration

Let's configure your new script to your liking!

## Language

There are a few default languages that come with the script. You can easily add your own language or just translate one of the default ones. Let me show you how to choose your language.

1\) Go to the `fxmanifest.lua` and look for `shared_scripts`.&#x20;

2\) You will find this on that spot:

```lua
shared_scripts {
    'locales/en.lua', --Choose a language, you can add some yourself if you want
    'config.lua'
}
```

3\) On the 2nd line you see `locales/en.lua` this stands for English. So if you want Dutch for example you choose `nl.lua` instead of `en.lua`. This is possible because `nl.lua` is already present in the `locales folder`.

## Blip and location

The `storeLocation` is only if you don't use target, just leave it as it is if you have target. Blip icons and colours are found [here](https://docs.fivem.net/docs/game-references/blips/).

```lua
Config.Store = {
    storelocation = vector3(562.27, 2751.56, 42.88), --Location where you can buy pets
    blipcoords = vector3(562.37, 2751.36, 42.88), -- Location on the map for the blip
    blipsprite = 273, --Blip icon
    blipcolor = 24,
    blipscale = 0.6,
    bliplabel = "Pet store",
    blipshortrange = true, --If false then it will be visible on minimap when not near it (should stay on true)
}
```

## Whitelisting

{% hint style="info" %}
If you don't want to use any whitelist and enable it for all players do this
{% endhint %}

```lua
Config.UseIds = false --true to use id's, false to disable
Config.UseRoles = false --true to use roles, false to disable
```

{% hint style="info" %}
If you're only using whitelist on id's do this
{% endhint %}

```lua
Config.UseIds = true --true to use id's, false to disable
Config.UseRoles = false --true to use roles, false to disable
```

And put the players id's in the correct place:

```lua
Config.WhitelistedIds = {
    discord = {
        --"discord:000000000000000000",
        --"discord:000000000000000000",
    },
    citizenid = {
        --"ABC123",
        --"ABC123",
    },
    fivem = {
        --"license:0000000000000000000000000000000000000000",
        --"license:0000000000000000000000000000000000000000",
    },
}
```

{% hint style="info" %}
If you're only using whitelist on discord roles do this
{% endhint %}

```lua
Config.UseIds = false --true to use id's, false to disable
Config.UseRoles = true --true to use roles, false to disable
```

And put the roles in the correct place:

```lua
Config.WhitelistedRoles = { --paste your discord id's here
    -- "001894851541518484",
    -- "441874784078487484",
}
```

## Other configurations

In the config we can adjust how the pet behaves.

<details>

<summary>Config.UseTarget</summary>

Enable or disable target.

</details>

<details>

<summary>Config.FoodTimer</summary>

Time in minutes to lower percentage of health and hunger.

</details>

<details>

<summary>Config.DefaultPetName</summary>

The default name a newly bought pet gets. Later the player can choose a name itself.

</details>

<details>

<summary>Config.EatTime</summary>

Time it seconds it takes to eat

</details>

<details>

<summary>Config.RevivePrice</summary>

The price you pay when the vet has to revive your pet

</details>

## Changing seller and vet

All Fivem peds are found [here](https://docs.fivem.net/docs/game-references/ped-models/). Do not change the `spawned` and `event`!

```lua
Config.Peds = {
    [1] = {
        pos = vector4(559.86, 2747.25, 41.88, 280.29),
        name = 's_m_m_doctor_01',
        spawned = false,
        targetLabel = 'Bring pet to vet',
        targetIcon = 'fas fa-stethoscope',
        event = 'lumio-pets:client:vetmenu',
    },
    [2] = {
        pos = vector4(561.52, 2752.86, 41.88, 190.26),
        name = 'a_f_y_eastsa_03',
        spawned = false,
        targetLabel = 'Pet store',
        targetIcon = 'fas fa-cat',
        event = 'lumio-pets:client:shopmenu',
    },
}
```
