# Ez-IAAHeist

## Configuration :

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

{% tabs %}
{% tab title="👨‍💻 Config.lua" %}
**Configurez le type d'inventaire que vous possedez :**\
**(Si vous utilisez ox\_inventory, même sur ESX Legacy, veuillez préciser ox\_inventory !)**&#x20;

```lua
InventoryRessource = "ox_inventory",
```

\
\
**Configurer le montant d'argent que le joueur gagnera suite au braquage :**

```lua
RewardOfHeist = math.random(2000, 5000),
```

\
\
\
\
**Modifiez les fonction server/client des notifications :**

```lua
    Cl_CustomNotify = function(title, text, type)
        exports["okokNotify"]:Alert(title, text, 5000, type, true)
    end,

    Sv_CustomNotify = function(aqui, title, text, type)
        TriggerClientEvent("okokNotify:Alert", aqui, title, text, 5000, type, true)
    end,
```

\
\
\
\
**Vous pouvez désactiver le Blips de démarrage** :&#x20;

```lua
EnableBlips = true,
```

\
\
\
\
**Possibilités de changer l'emplacement de démarrage du braquage :**&#x20;

```lua
StartHeistPosition = vector3(2049.5830078125, 2950.4704589844, 48.167804718018),
```

\
\
\
\
**Vous pouvez rajouter des PNJ ennemis** :&#x20;

```lua
GoonsAtInterior = {
        {model = "s_m_m_fibsec_01", weapon = "weapon_smg", position = vector3(2117.7189941406, 2927.9665527344, -61.901676177979)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_combatpdw", position = vector3(2113.8171386719, 2918.8952636719, -61.901889801025)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_smg", position = vector3(2105.1875000000, 2929.6716308594, -61.902004241943)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_combatpdw", position = vector3(2098.1159667969, 2922.6604003906, -61.909313201904)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_smg", position = vector3(2136.0083007812, 2917.9460449219, -61.90189743042)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_combatpdw", position = vector3(2136.0786132812, 2924.8203125000, -61.90189743042)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_smg", position = vector3(2130.5895996094, 2924.8806152344, -61.911083221436)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_combatpdw", position = vector3(2124.0710449219, 2918.7392578125, -61.901931762695)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_smg", position = vector3(2120.6564941406, 2926.1757812500, -61.901935577393)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_combatpdw", position = vector3(2115.9543457031, 2928.0664062500, -61.926300048828)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_smg", position = vector3(2109.7246093750, 2930.0219726562, -61.905899047852)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_combatpdw", position = vector3(2099.8862304688, 2932.9150390625, -61.901992797852)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_smg", position = vector3(2097.8327636719, 2944.1911621094, -61.902729034424)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_combatpdw", position = vector3(2074.3601074219, 2946.4091796875, -61.902015686035)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_smg", position = vector3(2049.0178222656, 2956.1184082031, -61.897605895996)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_combatpdw", position = vector3(2050.8352050781, 2968.4360351562, -61.901794433594)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_smg", position = vector3(2057.1806640625, 2978.1135253906, -61.901786804199)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_combatpdw", position = vector3(2060.5646972656, 2988.2021484375, -62.302089691162)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_smg", position = vector3(2065.7192382812, 2984.0844726562, -62.302043914795)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_combatpdw", position = vector3(2060.5400390625, 2993.3620605469, -67.701652526855)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_smg", position = vector3(2067.8247070312, 2986.2082519531, -67.701553344727)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_combatpdw", position = vector3(2051.9250488281, 2971.3850097656, -67.301383972168)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_smg", position = vector3(2068.6247558594, 2973.3383789062, -69.901611328125)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_combatpdw", position = vector3(2060.3527832031, 2993.9345703125, -72.702392578125)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_smg", position = vector3(2053.3208007812, 2998.8244628906, -72.702087402344)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_combatpdw", position = vector3(2041.1263427734, 2993.2131347656, -72.706237792969)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_smg", position = vector3(2034.7248535156, 3000.2934570312, -72.702003479004)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_combatpdw", position = vector3(2035.8449707031, 3012.2343750000, -72.702011108398)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_smg", position = vector3(2031.0174560547, 3021.3193359375, -72.703964233398)},
        {model = "s_m_m_fibsec_01", weapon = "weapon_combatpdw", position = vector3(2021.3403320312, 3022.6010742188, -72.691772460938)},
        -- u can add more pnj in iaa complex if u want :D
},
```

\
\
\
\
**Possibilités de configurer votre fonction de dispatch pour les appels police :**&#x20;

```lua
   DispatchNotify = function()
        --- insert ur dispatch notify here !
    end,
```

\
\
\
\
**Pour proteger votre serveur des cheateurs, EzDev a fait en sorte de pouvoir punir les cheateurs en cas d'exploitation du côté serveur, pour ca configurer votre fonction (côté server)** **pour punir un joueur en cas d'abus des fonctions de reward !**

```lua
    BanIfExploitsTheRewardByCheat = function()
        -- insert the function for ban players if he have exploits the reward event ! :D
        -- server side !!!
    end,
```

{% endtab %}

{% tab title="🎉 Enjoy !" %}
Votre braquage du Complexe de l'IAA 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-iaaheist.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.
