# Installation

## Dealerships 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-Dealerships`
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
```

5. Restart the Server and play S-Dealerships on your Server!

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