# Installation

{% hint style="info" %}
Installing this resource is like any other resource only verified that you have the required dependencies
{% 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="https://4276650587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVpsT0CEZ6FFjUJ4WIhHY%2Fuploads%2F9VLJQrER0vR95r1E5YVB%2Fimage.png?alt=media&#x26;token=a96d3707-655a-41ce-901a-016a4e1feb5d" 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.var-fivem.com/casino/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
