# Comandos Gerais

Comandos utilizados para gerenciar e atualizar as configurações do EQPG-Pro em tempo real.

## `update.config.eqpg`

Atualiza as proteções do anticheat sem necessidade de reiniciar o servidor.

```
update.config.eqpg
```

{% hint style="info" %}
Use este comando sempre que fizer alterações nas configurações de proteção.
{% endhint %}

***

## `update.module.eqpg`

Atualiza as proteções que estão em cache no `module_addon`.

```
update.module.eqpg
```

{% hint style="warning" %}
Este comando é necessário quando você altera arquivos dentro do diretório `module_addon`.
{% endhint %}

***

## `config.eqpg`

Mostra no console do servidor todas as proteções que estão ativas no momento.

```
config.eqpg
```

**Saída esperada:** Lista de todas as proteções com seus respectivos status (ativo/inativo).

***

## `disable.eqpg`

Desativa uma proteção (reason) específica **globalmente** no servidor. Use apenas em situações urgentes onde uma proteção conflita com algum script ou evento crítico.

```
disable.eqpg <reason>
```

**Parâmetros:**

| Parâmetro | Tipo     | Descrição                                  |
| --------- | -------- | ------------------------------------------ |
| `reason`  | `string` | Nome/motivo da proteção a ser desabilitada |

**Exemplo:**

```
disable.eqpg give-weapon
disable.eqpg noclip-1
```

**Saída esperada no console:**

```
[EQPG] Reason desativada: give-weapon
```

**Implementação:**

```lua
RegisterCommand("disable.eqpg", function(source, args)
    if source ~= 0 then return end

    local reason = table.concat(args, " ")
    if reason == "" then
        print("^1[EQPG]^0 Use: disable.eqpg <reason>")
        return
    end

    disabledReasons[reason] = true
    print("^2[EQPG]^0 Reason desativada: " .. reason)
end)
```

{% hint style="warning" %}
**Use apenas em situações urgentes.** Este comando desativa a proteção **permanentemente até o próximo restart**. Para bypasses pontuais por jogador, prefira o export `BypassProtect`.
{% endhint %}


---

# 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://eqpg-network.gitbook.io/eqpg-docs/comandos/comandos-gerais.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.
