# Ez-PedsMenu

{% hint style="warning" %}
**AVERTISSEMENT :** ez-pedsmenu utilise un système de debug de derniére minute, notre équipe de support la prend encore en charge en cas de soucis mais celle-ci n'est pu mis a jour et n'est, au final, présent que sur ce script...&#x20;
{% endhint %}

## Configuration :

**Ce script est très simple a installer sur votre serveur FiveM, que vous soyez en localhost, sur un VPS ou bien sur une machine dédiée FiveM !**

{% tabs %}
{% tab title="👨‍💻 Config.lua" %}
**Configurez les joueurs pouvant accéder au Menu Peds en insérant leurs SteamHex !**\
\- Ligne #19 :

```
Config.WhitelistPlayers = {
    'steam:11000014c62c149', -- salva
    'steam:your_steam_hex_here'
}
```

\
\
**Choisissez le mode d'ouverture du menu entre le trigger, la commande et le keybind :**\
\- Ligne #28 à #39 :

<pre><code>Config.MenuTriggerCommand = 'Menu' 
-- 'Trigger' pour avoir un trigger a insérer dans un autre menu (nom du trigger configurable en dessous)
-- 'Menu' pour avoir le menu directement via une touche bindable dans les touches FiveM !
-- 'Command' pour avoir seulement la commande custom !

Config.ToucheParDefaut = 'P' -- Touche par défaut pour le Menu, si celui-ci est activé !

<strong>Config.CustomCommand = 'ezpeds' -- Commande Custom pour ouvrir le menu !
</strong>Config.DescriptionDeLaCommand = 'Menu Peds [G.M Uniquement !]'
Config.CustomTrigger = 'ezfree-pedsmenu'
</code></pre>

\
\
\
\
**Configurer l'esthetique de votre menu :**\
\- Ligne #42 à #49 :

```
Config.ImageDansMenu = false
Config.CustomImagePourLePremierBouton = 'https://cdn-icons-png.flaticon.com/512/458/458594.png' -- utilse que si Config.ImageDansMenu est définit sur true !
Config.Icon = 'user'
Config.IconColor = 'FF0000'
Config.Title = 'Menu Ez-Peds'
Config.Progress = 'Circle'
-- PROGRESS BAR CUSTOMISABLE :
-- 'Custom' Custom Progress Bar (descendre en bas pour mettre en place la votre !)
-- 'Circle' ProgressCircle OverExtended
-- 'Bar' ProgressBar OverExtended
```

\
\
\
\
**Configurez la data des peds présent dans votre menu** :\
\- Ligne #61 à #89 :&#x20;

```
Config.Peds = {
    {nom = "Mec Cool", peds = "ig_claypain", desc = 'Transforme toi tel un Transformers mon G !', img = 'https://cdn.discordapp.com/attachments/1089671640054505504/1135743183922413618/logo.png'},
}

-- {nom = "NOMBOUTTON", peds = "PEDSMODELS", desc = "DESC", img = "LINK_OF_IMG_OF_PEDS"}

-- img = "LINK"
-- or
-- img = false
```

\
\
\
\
**Configurez votre système de notifications :** \
\- Ligne #91 & #100 :

```
EzNotify = function(title, text, time, notiftype)
-- INSERT HERE YOUR CUSTOM SYSTEM OF NOTIFY
-- INSERER VOTRE SYSTEME DE NOTIFICATION PERSONNALISÉ

-- ESX Notify
    --ESX.ShowNotification(text, notiftype, time)
-- okokNotify
    exports['okokNotify']:Alert(title, text, time, notiftype)
end
```

\
\
\
\
**Configurez la barre de progression :** \
\- Ligne #102 à #104 :&#x20;

```
EzCustomProgress = function(text)
 lib.progressBar({ duration = 1500, label = text, useWhileDead = false, canCancel = true, })
end
```

{% 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-cosmetics/ez-pedsmenu.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.
