> For the complete documentation index, see [llms.txt](https://doc.var-fivem.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.var-fivem.com/casino/installation.md).

# Installation

{% hint style="info" %}
Installing this resource is like any other resource only verified that you have the required dependencies
{% endhint %}

{% hint style="info" %}
Get Var-Casino : [https://www.var-fivem.com/en/packages/var-casino ](https://www.var-fivem.com/en/packages/var-casino)| Try it live before buying : <https://cfx.re/join/qlkb8v>&#x20;
{% endhint %}

## Step 1

Connect via this site: <https://keymaster.fivem.net/> with your CFX account to which your purchase was made on the store <https://www.var-fivem.com/>

## Step 2

<figure><img src="/files/MHam34YMy9E6VoyfnB3Q" alt=""><figcaption><p>Go to the Granted Assets category and download the most recent version of the Casino</p></figcaption></figure>

## Step 3

Don't forget to add the SQL depending on the framework you are using on your server

## Step 4

Once the download is complete, unzip the file and drag it into the resources folder of your server

{% hint style="info" %}
If you use the FiveM IPL, remember to delete the `function.lua` file at the root of the project, however, if you use, for example, MOLO MODDING mapping, leave it. \
\
If you use another mapping change the coordinates in function.lua. Your casino mappings probably use custom props so remember to put the right values ​​in the function.lua file
{% endhint %}

**For example :**&#x20;

```lua
CreateModelSwap(920.291, 15.625, 74.887, 1.0, -1650151675, GetHashKey("vw_prop_casino_blckjack_01b"), 0)
```

* 920.291, 15.625, 74.887 - Coordinates of the props of the mapping
* 1.0  - Radius to swap the props
* -1650151675 - Original Model so from the mapping !
* New model so leave GetHashKey("vw\_prop\_casino\_blckjack\_01b") (For the blackjack table)

{% hint style="danger" %}
The roulette game is the only one that spawns the props directly so you just need to get the props hashkey and put it in Shared.RouletteToDelete in the roulette config file to delete the props
{% endhint %}

{% hint style="warning" %}
If you added the resource while your server was already running, remember to do the refresh command and then ensure the resource
{% endhint %}

```powershell
refresh
```

```
ensure Var-Casino
```
