# Anti-Exploit & Security text

## 🛡️ Security

Elena Truck Job V2 includes multiple layers of protection.

### Server-Side Validation

All critical calculations are performed server-side

| Data           | Source               | Status    |
| -------------- | -------------------- | --------- |
| Delivery Time  | Server os.time()     | Secure    |
| Vehicle Damage | Server entity health | Secure    |
| Night Bonus    | Server clock         | Secure    |
| Route ID       | Server job data      | Validated |
| Payment        | Server calculation   | Secure    |
| XP Reward      | Server calculation   | Secure    |
| Spawn Location | Server config        | Secure    |

No client-sent data is trusted for payment calculations.

### Rate Limiting

Events are rate-limited with a 3 second cooldown:

```
AntiExploit_Check(source, eventName)
```

Rapid event spam is detected and logged.

### Exploit Detection

| Exploit                        | Detection               |
| ------------------------------ | ----------------------- |
| Speed hack (too fast delivery) | Minimum 10 second check |
| Route manipulation             | Route ID validation     |
| Event spam                     | Rate limiting           |
| No active job                  | Active job check        |
| Vehicle spawn abuse            | Existing vehicle check  |

### Discord Logging

All suspicious activity is logged to Discord.

```
Config.DiscordLog = true
Config.DiscordWebhook = 'YOUR_WEBHOOK_URL'
```

Logged Events:

| Event             | Color  |
| ----------------- | ------ |
| Job Started       | Blue   |
| Delivery Complete | Green  |
| Level Up          | Yellow |
| Exploit Attempt   | Red    |

### Recommendations

1. Keep `Config.Debug = false` in production
2. Set up Discord webhook for monitoring
3. Use `Config.LevelLock = true` to prevent route abuse
4. Monitor logs for suspicious patterns

<br>


---

# 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://elena-scripts.gitbook.io/elenascripts/jobs-and-activities/truck-job-v2/anti-exploit-and-security-text.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.
