# Ez-DrugSystem

{% hint style="info" %}
**DISCLAIMER :** ez-drugsystem peut utiliser un système de notifications payant, pensez à vous les procurer via leurs propre boutique Tebex !\
\ <mark style="color:blue;">**okokNotify**</mark> : [*https://okok.tebex.io/package/4724993*](https://okok.tebex.io/package/4724993)\ <mark style="color:blue;">**okokTextUI**</mark> : [*https://okok.tebex.io/package/6024831*](https://okok.tebex.io/package/6024831) &#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 d'abord le système de notifications !**&#x20;

*(support pour notifications : "okok" okokNotify & okokTextUI / "overextended" ox\_lib Notify & TextUI / "esx" esx\_notify & esx\_textui)*\
\- Ligne #9 :

```
NotifySystem = "esx",
```

\
\
**Maintenant, configurez la totalité des positions de récolte ainsi que du traitement :**\
\- Ligne #22 à #56 :

```
RecoltePos???     = vector3(0.0, 0.0, 0.0),
TraitementPos???  = vector3(0.0, 0.0, 0.0),
```

\
\
\
\
**Vous êtes en capacité de changer la durée de récolte ou la durée du traitement :**\
\- Ligne #65 à #100 :

```
RecolteTime???     = vector3(0.0, 0.0, 0.0),
TraitementTime???  = vector3(0.0, 0.0, 0.0),
```

\
\
\
\
**Configurez la quantité d'items données** :&#x20;

*(après-récolte/avant-traitement/après-traitement)*\
\- Ligne #105 à #109 :&#x20;

```
QuantityRecolte     = 5,
QuantityTraitement  = 5,
QuantityToRecup     = 5,
```

\
\
\
\
**Configurez le nom des ressources que vous utilisez :**&#x20;

*(support pour inventaire : ESX - qb-inventory - ox\_inventory)*\
*(support pour inventaire : qb-target - ox\_target)*\
\- Ligne #125 & #126 :

```
Config.inventoryResource = 'ox_inventory'
Config.targetResource = 'ox_target'
```

\
\
\
\
**Configurez la fonction d'appel a la police :** \
\- Ligne #129 :&#x20;

```
Config.policeCallClientFunction = function ()
	exports["ps-dispatch"]:CustomAlert({
		coords = vector3(0.0, 0.0, 0.0),
		message = "Vente de drogues",
		dispatchCode = "10-200 Narcotiques ou drogues impliquées",
		description = " VENTE DE DROGUES ",
		radius = 0,
		sprite = 64,
		color = 2,
		scale = 1.0,
		length = 3,
	})
end
```

\
\
\
\
**Configurez les peds auxquels la vente sera impossible :** \
\- Ligne #144 :&#x20;

```
Config.forbiddenModels = {
    -- Human peds
    `mp_m_freemode_01`,
    `mp_f_freemode_01`,
    `csb_cop`,
    `ig_trafficwarden`,
    `s_f_y_cop_01`,
    `s_m_m_snowcop_01`,
    `s_m_y_cop_01`,
    `s_m_y_hwaycop_01`,
    `mp_m_shopkeep_01`,
    `mp_m_fibsec_01`,
    `mp_s_m_armoured_01`,
    `mp_m_securoguard_01`,
    `s_m_y_swat_01`,
    `s_m_y_sheriff_01`,
    `s_m_m_paramedic_01`,
    `s_m_m_paramedic_01`,

    -- Animal peds
    `a_c_boar`,
    `a_c_cat_01`,
    `a_c_chickenhawk`,
    `a_c_chimp`,
    `a_c_chop`,
    `a_c_cormorant`,
    `a_c_cow`,
    `a_c_coyote`,
    `a_c_crow`,
    `a_c_deer`,
    `a_c_dolphin`,
    `a_c_fish`,
    `a_c_hen`,
    `a_c_humpback`,
    `a_c_husky`,
    `a_c_killerwhale`,
    `a_c_mtlion`,
    `a_c_pig`,
    `a_c_pigeon`,
    `a_c_poodle`,
    `a_c_pug`,
    `a_c_rabbit_01`,
    `a_c_rat`,
    `a_c_retriever`,
    `a_c_rhesus`,
    `a_c_rottweiler`,
    `a_c_seagull`,
    `a_c_sharkhammer`,
    `a_c_sharktiger`,
    `a_c_shepherd`,
    `a_c_stingray`,
    `a_c_westy`,
}
```

{% endtab %}

{% tab title="📦 Items" %}
**Pour ajouter les nouveaux items a votre inventaire, suivez cette procédure :**&#x20;

\
\
1️⃣ - Coller tout ça dans votre inventaire ! \
&#x20;        \- "***ox\_inventory/data/items.lua***" \
\
\
\- ***Ox\_inventory support only !!!***

```lua
	["champipure"] = {
		label = "Champignons Pure",
		weight = 200,
		stack = true,
		close = true,
	},

	["champi1g"] = {
		label = "Champignons [1G]",
		weight = 1,
		stack = true,
		close = true,
	},
	--
	["cokepure"] = {
		label = "Coke Pure",
		weight = 200,
		stack = true,
		close = true,
	},

	["coke1g"] = {
		label = "Coke [1G]",
		weight = 1,
		stack = true,
		close = true,
	},
	--
	["crackpure"] = {
		label = "Crack Pure",
		weight = 200,
		stack = true,
		close = true,
	},

	["crack1g"] = {
		label = "Crack [1G]",
		weight = 1,
		stack = true,
		close = true,
	},
	--
	["ecstasypure"] = {
		label = "Ecstasy Pure",
		weight = 200,
		stack = true,
		close = true,
	},

	["ecstasy1g"] = {
		label = "Ecstasy [1G]",
		weight = 1,
		stack = true,
		close = true,
	},
	--
	["heroinepure"] = {
		label = "Héroine Pure",
		weight = 200,
		stack = true,
		close = true,
	},

	["heroine1g"] = {
		label = "Héroine [1G]",
		weight = 1,
		stack = true,
		close = true,
	},
	--
	["leanpure"] = {
		label = "Lean Pure",
		weight = 200,
		stack = true,
		close = true,
	},

	["lean1g"] = {
		label = "Lean [1G]",
		weight = 1,
		stack = true,
		close = true,
	},
	--
	["lsdpure"] = {
		label = "LSD Pure",
		weight = 200,
		stack = true,
		close = true,
	},

	["lsd1g"] = {
		label = "LSD [1G]",
		weight = 1,
		stack = true,
		close = true,
	},
	--
	["methpure"] = {
		label = "Meth Pure",
		weight = 200,
		stack = true,
		close = true,
	},

	["meth1g"] = {
		label = "Meth [1G]",
		weight = 1,
		stack = true,
		close = true,
	},
	--
	["morphinepure"] = {
		label = "Morphine Pure",
		weight = 200,
		stack = true,
		close = true,
	},

	["morphine1g"] = {
		label = "Morphine [1G]",
		weight = 1,
		stack = true,
		close = true,
	},
	--
	["opiumpure"] = {
		label = "Opium Pure",
		weight = 200,
		stack = true,
		close = true,
	},

	["opium1g"] = {
		label = "Opium [1G]",
		weight = 1,
		stack = true,
		close = true,
	},
	--
	["peyotepure"] = {
		label = "Baie de Peyote Pure",
		weight = 200,
		stack = true,
		close = true,
	},

	["peyote1g"] = {
		label = "Baie de Peyote [1G]",
		weight = 1,
		stack = true,
		close = true,
	},
	--
	["toseinepure"] = {
		label = "Toséine Pure",
		weight = 200,
		stack = true,
		close = true,
	},

	["toseine1g"] = {
		label = "Toséine [1G]",
		weight = 1,
		stack = true,
		close = true,
	},
	--
	["weedpure"] = {
		label = "Weed Pure",
		weight = 200,
		stack = true,
		close = true,
	},

	["weed1g"] = {
		label = "Weed [1G]",
		weight = 1,
		stack = true,
		close = true,
	},
	--
	["xanaxpure"] = {
		label = "Xanax Pure",
		weight = 200,
		stack = true,
		close = true,
	},

	["xanax1g"] = {
		label = "Xanax [1G]",
		weight = 1,
		stack = true,
		close = true,
	},
	--
	["zombiepure"] = {
		label = "Drogue du Zombie Pure",
		weight = 200,
		stack = true,
		close = true,
	},

	["zombie1g"] = {
		label = "Drogue du Zombie [1G]",
		weight = 1,
		stack = true,
		close = true,
	},
```

{% endtab %}

{% tab title="🖼️ Image for items" %}
Vous pouvez téléchargez l'entièreté des images des drogues via ce lien : \
\
[CLIQUEZ POUR TÉLÉCHARGER L'ARCHIVE .ZIP](https://cdn.discordapp.com/attachments/1191400583077302312/1191400604023656488/ez-drugsystem-itemimg.zip?ex=65a54d47\&is=6592d847\&hm=34c9b0b02251ba07cda139c187711e074e569028d7359519350649fb70e48122&)
{% endtab %}

{% tab title="🎉 Enjoy !" %}
Votre système de drogues est enfin prêt à être utilisée ! 🎉
{% 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-drugsystem.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.
