> For the complete documentation index, see [llms.txt](https://wolf-shield.gitbook.io/doc-wolf-shield/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wolf-shield.gitbook.io/doc-wolf-shield/documentation/configuration/server-config/ped.md).

# Ped

***

```lua
WolfShield.AntiPedSpawn= {
```

#### 🛡️ `WolfShield.AntiPedSpawn`

This is a configuration module dedicated to detecting and preventing unauthorized ped spawns.

***

```lua
    Enable = true,
```

#### ✅ `Enable`

* **Type** : `boolean`
* **Function** : Enables (true) or disables (false) the anti-ped spawn system.
* **Description**: Enable or disable detection.

***

```lua
    TypeOfPunishment = "ban",
```

#### 🚫 `TypeOfPunishment`

* **Type** : `string`
* Possible values : `"ban"`, `"kick"`, `"logs"`
* **Fonction** : Determines the penalty applied when a player attempts to spawn an unauthorized ped.
  * `"ban"` : Ban the player + discord log
  * `"kick"` : Just Drop the player + discord log
  * `"logs"` : Just Discord log

***

```lua
    TypeOfSetup = "auto",
```

#### ⚙️ `TypeOfSetup`

* **Type** : `string`
* **Value** : `"auto"` ou `"manual"`
* **Fonction** :
  * `"auto"` : the system automatically detects Ped considered suspicious
  * `"manual"` : Must manually define the allowed Ped via the WhitelistPed table (it is strongly recommended to manually Whitelist the Ped )

***

```lua
    WhitelistPed = {
        -- Exemple Usage
        -- [123456789] = true,
        -- [GetHashKey("prop_barrel_02a")] = true,
        -- [`prop_barrel_02a`] = true,
    },
```

#### ✅ `WhitelistPed`

* **Type** : `table` (object hash)
* **Function** : Whitelist of allowed ped
  * Each entry corresponds to a prop hash (GetHashKey("ped\_model") / \`Ped\_Model\` / or direct hash)

***

```lua
    DoYouUseCSharpOrJavaScriptPed= false,
```

#### 🌐 `DoYouUseCSharpOrJavaScriptPed`

* **Type** : `boolean`
* **Fonction** : If enabled (true), the system will also consider client-side scripts in C# or JS provided that the script name is whitelist (WhitelistScript)

***

```lua
    WhitelistScript = {
        ["vMenu"], -- exemple
    },
```

#### ✅ `WhitelistScript`

* **Type** : `table` (script name)
* **Function** : Specifies which scripts are allowed to spawn Ped (C# / dll or Javascript only)

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://wolf-shield.gitbook.io/doc-wolf-shield/documentation/configuration/server-config/ped.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.
