# Ez-CCTV

**Ce script est très simple a installer sur votre serveur, mais pour ça suivez attentivement cette documentation !**

##

## Configuration :

{% tabs %}
{% tab title="👨‍💻 Config.lua" %}
**Configurez la couleur principale dans le menu ox\_context :**

```lua
PrincipalColor = "#000000",
```

\
\
\
**Configurez un webhook sur Discord et inserez le lien ici :**

```lua
HostOfScreenshotWebhook = 'INSERT_YOUR_WEBHOOK_HERE', 
```

\
\
\
**Configurez le nom du grade admin ayant accès a la tablette AdminCCTV :**

```lua
ESXAdminGroup = "admin",
```

\
\
\
**Configurez la liste des caméra disponible sur votre tablette AdminCCTV**:

```lua
AllCCTV = { -- for admin cctv menu !
    { localisation = "Description", label = "Titre du boutton", position = vector4(0.0, 0.0, 0.0, 0.0) },
},
```

\
\
\
\
**Configurez les caméra pour vos différents job :**

```lua
JobCCTV = {
    --                                  EXEMPLE FOR JOB CCTV :
    -- ["job_name"] = {
    --     { label = "CAMERA NAME", position = vector4(1.1760247945786, -1821.4815673828, 30.047473907471, 1.1267840862274) },
    -- },
},
```

\
\
\
**Configurez le nom de l'item uniquement si vous l'avez modifier :**

```lua
TabletItemName = "cctv_tablet",
```

\
\
\
**Modifiez les fonctions pour cacher l'HUD et la fonction de notifications a votre gout :**

```lua
    HideCustomHud = function(state)
        DisplayRadar(state)

        -- if u have 2 functions for hide and show your HUD :D
        if state == true then
            exports["ez-hud"]:HideHUD(true)
        elseif state == false then
            exports["ez-hud"]:HideHUD(false)
        end
    end,

    CustomNotify = function(title, text, type)
        exports["okokNotify"]:Alert(title, text, 5000, type, 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-cctv.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.
