> For the complete documentation index, see [llms.txt](https://oliver1308pro.gitbook.io/docs.codestormstudios/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oliver1308pro.gitbook.io/docs.codestormstudios/free-assets/redm-assets/css-overwatch/installation-faq.md).

# Installation/FAQ

## Installation

{% stepper %}
{% step %}

### Go to github and download script

First, go to the github page and download the script by [clicking here](https://github.com/oliver1308pro?tab=repositories).
{% endstep %}

{% step %}

### Ensure the script

go to your server.cfg or resources.cfg and ensure the script&#x20;

```lua
ensure CSS-Overwatch
```

{% endstep %}

{% step %}

### Create bot

go to discord developer portal and create bot by [clicking here](https://discord.com/developers/applications). (follow youtube guide to setup discord bot)
{% endstep %}
{% endstepper %}

***

### Update Artifacts and gamebuild

Updating to the latest **artifacts** and **gamebuild** is essential to avoid common server issues. Here's how to do it properly:

{% stepper %}
{% step %}

### Update Artifacts

Completely replace your current artifacts with the latest version. Download the appropriate artifacts for your operating system from the official links:

* **Windows**: [Windows Artifacts](https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/).
* **Linux**: [Linux Artifacts](https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/).
  {% endstep %}

{% step %}

### Update Gamebuild

Using the latest **gamebuild** is critical to take advantage of the newest features and avoid compatibility errors.

Edit the **server.cfg or Resource.cfg** file and add the following line:

```
sv_enforceGameBuild 3258
```

{% endstep %}
{% endstepper %}

***

## FAQ

Here’s a list of common problems people have run into and how to solve them. If you are having a problem that isn’t listed here, check the readme and if there’s still nothing submit a ticket on our discord server.

<details>

<summary>No Slash Commands</summary>

Don’t see slash commands when you type `/` in your server?

* In your discord user settings (bottom left gear icon) > Text & Images > Text Box do you have “Use slash commands..” enabled?
* Does the role trying to access the slash commands have the slash commands permission in discord roles?
* Is your server’s guild id set to your discord server?
* Did you invite the bot to your server with the invite link provided (which includes `&scope=bot%20applications.commands` on the end

</details>

<details>

<summary>How to get a Discord Id?</summary>

Discord has a [guide](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-) on how to do this but the TL;DR is enable “Developer Mode” in your discord settings `Settings (gear in bottom left) > Advanced > Developer Mode` then right click any of the **\[usernames, role names, channel names, server icon]** and `Copy ID`. You now should be able to paste the \~20 digit id.

</details>

<details>

<summary>“ENABLE INTENTS” Error</summary>

CSS-Overwatch **needs** `Presence Intent` and `Server Members Intent` from the discord bot [settings](https://discord.com/developers/applications) to be enabled for basic functionality. Without these the bot is unable to check if a user is in your discord server or if they have the required roles to join the server if using the whitelist feature.

Under the “Bot” section of the discord settings towards the bottom you’ll see 2 toggles under the “Privileged Gateway Intents” section, They both need to be enabled like show below:

<img src="https://1793955533-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTmLXPvQRZuc7P5JUrJ8k%2Fuploads%2FtuS802cZiAvtITYPuiat%2Fbillede_2025-03-28_090126859.png?alt=media&amp;token=47e548ac-a12d-4445-8fee-7d42d5b4cf54" alt="" data-size="original">

</details>

<details>

<summary>Can’t find yarn dependency</summary>

This resource requires CFX's yarn module from [cfx-server-data](https://github.com/citizenfx/cfx-server-data) under `(resources/[system]/[builders]/yarn)` so either add those resources to your resource folder or just put the yarn one in your resources and CSS-Overwatch will enable it for itself so you don’t need to include it in your cfg.

**Note:** If you want to use the /screenshot command which uses [screenshot-basic](https://github.com/citizenfx/screenshot-basic) you will also need the webpack resource also under `[builders]`. So consider having that one ready too if you end up just copying the single resource.

</details>

<details>

<summary>Bot status message updates slow</summary>

By default the bot status updates every 30 seconds to prevent abusing the discord API, you can lower this to probably 10 seconds at the lowest without problems by changing the last line in `/events/ready.js` where it’s `30000` to `10000` (it’s in milliseconds)

</details>

<details>

<summary>Others</summary>

Open a ticket on our discord server

</details>
