# Vehicle

***

```lua
WolfShield.AntiVehicleSpawn= {
```

#### 🛡️ `WolfShield.AntiVehicleSpawn`

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

***

```lua
    Enable = true,
```

#### ✅ `Enable`

* **Type** : `boolean`
* **Function** : Enables (true) or disables (false) the anti-prop 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 prop.
  * `"ban"` : Ban the player + discord log
  * `"kick"` : Just Drop the player + discord log
  * `"logs"` : Just Discord log

***

```lua
    DoYouUseCSharpOrJavaScriptVehicle = false,
```

#### 🌐 `DoYouUseCSharpOrJavaScriptVehicle`

* **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 vehicle(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/vehicle.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.
