# Ez-DrugEffect

## Configuration :

**Ce script est très simple à configurer si vous suivez attentivement cette documentation !**&#x20;

{% tabs %}
{% tab title="👨‍💻 Config.lua" %}
**Configurez la couleur des barres de progression :**&#x20;

```lua
PrincipalColor = '#00FF93',
```

\
\
**Configurer les items que vous souhaitez rendre utilisable :**

```lua
ItemsList = {
    ["item_name"]   = {typeofdrugs = "coke", timer = 10000, druglabel = "NOM DE LA DROGUE"},
},
```

\
\
\
\
**Modifiez la liste des animaux si vous le souhaitez :**

```lua
ListOfFiveAnimals = {
    "a_c_cow",
    "a_c_poodle",
    "a_c_westy",
    "a_c_coyote",
    "a_c_chimp"
},
```

\
\
\
\
**Configurez la fonctions de reprise de skin & tenue** :&#x20;

```lua
RetakeGoodSkin = function()
    -- fonctions pour reprendre son skin après les effets des baies de Peyote !
    -- la focntion peux varier selon votre système de esx_skin/skinchanger/etc...

    -- celui-ci est compatible avec : esx_skin - skinchanger - fivem-appearance
    ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin)
        TriggerEvent('skinchanger:loadSkin', skin)
    end)
end,
```

\
\
\
\
**Configurez le système de notifications :**&#x20;

```lua
Cl_CustomNotify = function(title, text, time, type)

    -- type changement if u use an special notif system :D
    if type == "success" then
        type = "success"
    elseif type == "error" then
        type = "error"
    elseif type == "info" then
        type = "info" 

        -- if u use ox notifications : 
        -- type = "inform"
    end 

    -- si vous utilisez okokNotify :
    -- exports["okokNotify"]:Alert(title, text, time, type, true)

    -- si vous voulez les notif by ox_lib :
    -- lib.notify({
    --     title = title,
    --     description = text,
    --     type = type
    -- })

    -- si vous voulez les notifications via ESX :
    -- ESX.ShowNotification(text, type, time)



    -- Si vous voulez changer le title de la notification ("EzDrugsEffect"), enlevez "--" au debut de la ligne ci dessous :
    -- exports["okokNotify"]:Alert("CUSTOM TITLE", text, time, type, true)
        
end,
```

{% endtab %}

{% tab title="🎉 Enjoy !" %}
Votre système d'effets de drogues est enfin prêt à être utilisé sur votre serveur ! 🎉
{% endtab %}
{% endtabs %}


---

# 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://ezdeveloppement.gitbook.io/ezdev-script/script-ez-illegal/ez-drugeffect.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.
