> For the complete documentation index, see [llms.txt](https://codestudio5m.gitbook.io/codestudio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codestudio5m.gitbook.io/codestudio/our-scripts/death-screen/setup.md).

# Setup

This is a detailed setup guide for Death Screen. If you have any questions before making a purchase, you can contact us on Discord

## Config

* This Script requires a death system. Basically, it's an add-on script, not a death system itself.
* You can use the death screen in both ways, either by pressing a key or by using the mouse to perform an action.
* There are four buttons by default to configure: EMS Help, Force Respawn, Accept Die, and Report Player. You can customize these buttons as per your preference.
* If you want to edit the language, you can directly do that under index.html.
* A detailed guide for each thing is provided in the configuration. Please take a look at it.

<figure><img src="https://1034396727-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBXIsRWbAXJHBnjtE4Gxk%2Fuploads%2FqBbY8pDBxY6zX62M0lsP%2Fcode.png?alt=media&amp;token=2be83e4c-de3b-46f8-8d87-d220f0e7ebfa" alt=""><figcaption><p>Detailed Config Preview</p></figcaption></figure>

* Toggle Death Screen UI:<br>

  <pre class="language-lua" data-title="Example Usage:" data-full-width="true"><code class="lang-lua">TriggerEvent('cs:deathscreen:show')
  </code></pre>
* To update the Death Screen buttons, set 'true' or 'false' to disable or enable a particular button, like this: \ <mark style="color:yellow;">TriggerEvent('cs:deathscreen:button', EMSHelp, ForceRespawn, AcceptDie, Report)</mark><br>

  <pre class="language-lua" data-title="Example Usage:" data-full-width="true"><code class="lang-lua">TriggerEvent('cs:deathscreen:button', true, false, false, true)
  </code></pre>
* To update the death screen UI text and timer:\ <mark style="color:yellow;">TriggerEvent('cs:deathscreen:update', 'Any UI Text', death timer in number)</mark><br>

  <pre class="language-lua" data-title="Example Usage:"><code class="lang-lua">TriggerEvent('cs:deathscreen:update', 'You Are Dead', 10)
  </code></pre>
