> For the complete documentation index, see [llms.txt](https://docs.stndev.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stndev.xyz/configuration/auto-safe-event.md).

# Auto Safe Event

*StnDev Trigger Protection automatically secures supported resources against unauthorized event execution, executor abuse, and common trigger-based exploits.*

*Once installed, supported resources are protected without requiring manual configuration.*

***

### Install Trigger Protection

Run the following command in your server console:

```bash
stndev_install_triggers
```

The installer will automatically scan supported resources and apply trigger protection where possible.

***

### Uninstall Trigger Protection

To completely remove trigger protection and restore all previously modified resources, run:

```bash
stndev_uninstall_triggers
```

After uninstalling, restart your server.

***

### Server.cfg Configuration

Ensure the following lines are placed **below all resources** inside your `server.cfg`:

```cfg
add_ace resource.stndev_anticheat command allow
ensure stndev_anticheat
```

Failure to configure these permissions may prevent the installer from functioning correctly.

***

### Event Whitelist

If a legitimate event is incorrectly flagged by Trigger Protection, it can be whitelisted through the Web Panel.

#### Whitelisting an Event

1. Open the StnDev Web Panel
2. Navigate to **Administration**
3. Open **Configuration**
4. Locate **Ignored Events**
5. Add the event name
6. Save your changes
7. Restart the affected resource if necessary

Changes are applied instantly after saving.

***

### Troubleshooting

#### Resource Stops Working After Installation

If a resource becomes unusable after Trigger Protection has been installed:

1. Run:

```bash
stndev_uninstall_triggers
```

2. Restart your server.
3. Add the resource to your exclusion list.
4. Run the installer again.

#### Players Cannot Connect

This is usually caused by:

* Broken or outdated resources
* Modified framework files
* Incorrect resource startup order
* Installation conflicts with unsupported resources

Review your server console for additional error information.

#### Installer Cannot Modify Resource Manifests

If the installer reports errors such as:

```txt
Failed to modify manifest
Manifest write failed
Permission denied
Unable to patch resource
```

This is usually caused by newer FiveM artifacts.

Recent FiveM artifacts have introduced changes that may prevent automatic resource modification and manifest patching.

#### Recommended Fix

Downgrade your server to the recommended artifact version:

```txt
25770
```

After changing the artifact version:

1. Restart the server.
2. Run the installer again:

```bash
stndev_install_triggers
```

3. Verify that all resources were successfully secured.

{% hint style="warning" %}
**Important**

Artifact version **25770** is currently the recommended version for Trigger Protection installations.

Newer artifacts may prevent automatic manifest modifications and can cause installation failures.
{% endhint %}

***

#### False Detections

False detections are extremely rare but can occur on heavily modified servers.

Recommended steps:

* Add the event to the whitelist
* Verify resource compatibility
* Ensure the resource is up to date
* Contact StnDev Support if the issue persists

***

{% hint style="danger" %}
**Important**

Trigger Protection modifies supported resources automatically.

Before installing Trigger Protection, always create a backup of your server files and database.

StnDev AntiCheat is not responsible for issues caused by third-party modified resources or unsupported frameworks.
{% endhint %}

{% hint style="warning" %}
**Need Help?**

If you experience installation issues, false detections, or resource compatibility problems, please contact the StnDev AntiCheat Support Team through the official Discord server.
{% endhint %}


---

# 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://docs.stndev.xyz/configuration/auto-safe-event.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.
