> For the complete documentation index, see [llms.txt](https://s-service.gitbook.io/s-service-documentations/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://s-service.gitbook.io/s-service-documentations/docs-for-our-products-v1/s-deathscreen/installation.md).

# Installation

Welcome to our installation guide! In this section, we'll walk you through the steps to effortlessly set up the Script S-Deathscreen!

## Deathscreen System Installation

Follow this steps to install the script:&#x20;

1. Download the Script from [<mark style="color:red;">Keymaster</mark>](https://keymaster.fivem.net/login?return_url=/)
2. Drag the Script into your resources
3. Add this to you your server.cfg: `start S-Deathscreen`
4. For ESX 1.1 and 1.2 insert this in <mark style="color:red;">\<es\_extended></mark> > <mark style="color:red;">\<server></mark> > <mark style="color:red;">\<functions.lua></mark> under ESX.GetPlayers

```lua
function ESX.GetExtendedPlayers(key, val)
	local xPlayers = {}
	for k, v in pairs(ESX.Players) do
		if key then
			if (key == 'job' and v.job.name == val) or v[key] == val then
				xPlayers[#xPlayers + 1] = v
			end
		else
			xPlayers[#xPlayers + 1] = v
		end
	end
	return xPlayers
end
```

6. Delete some code from esx\_ambulancejob/client/main.lua\
   Delete the following line of code:&#x20;

```lua
AddEventHandler("esx:onPlayerDeath", function(data)
    OnPlayerDeath()
end)
```

6. Restart the Server and play S-Deathscreen on your Server!

{% hint style="success" %}
Thats All! Enjoy the Script on your Server!
{% endhint %}
