# Installation

### Dependencies

<table data-header-hidden><thead><tr><th width="311">Dependency</th><th width="173.37557351977276">Install</th></tr></thead><tbody><tr><td><strong>Resource</strong></td><td><strong>Install</strong></td></tr><tr><td><a href="https://github.com/overextended/oxmysql"><code>oxmysql</code></a></td><td>Required</td></tr><tr><td><a href="https://github.com/mkafrin/PolyZone"><code>PolyZone</code></a></td><td>Required</td></tr><tr><td><a href="https://cdn.discordapp.com/attachments/1028307243948572714/1060314093053030651/l2s-password"><code>l2s-password</code></a></td><td>Required</td></tr></tbody></table>

## Asset download

1. Download your resource from FiveM's Keymaster.
2. Unzip zip folder and place it into your resource folder.&#x20;
3. Add ensure l2s-hotel to your server start config. Make sure to place anywhere below the framework and dependencies resources.

## Items installation

```
["hotel_card"] = {["name"] = "hotel_card",["label"] = "Room Access",["weight"] = 5000,["type"] = "item",["image"] = "hotel_card.png",["unique"] = true,["useable"] = true,["shouldClose"] = true,["combinable"] = nil,["description"] = "Hotel Room Access"},
```

Go To qb-inventory/html/js/app.js and item info in FormatItemInfo function

```
} else if (itemData.name == "hotel_card") {
        $(".item-info-title").html('<p>Room Access</p>')
        $(".item-info-description").html('<p><strong>Room Number: </strong><span>' + itemData.info.roomnumber + '</span></p><strong>Expires: </strong><span>' + itemData.info.date + '</span></p>');
```

<figure><img src="/files/siNV6XFCc8bPhCaZNdIm" alt=""><figcaption></figcaption></figure>

Item Image:

<div align="left"><figure><img src="https://media.discordapp.net/attachments/1076366947744239677/1128738235661688972/hotel_card.png?width=476&#x26;height=450" alt="" width="188"><figcaption><p>hotel_card.png</p></figcaption></figure></div>

{% hint style="danger" %}
Important : if the stash and the outfits do not work with you, all you have to do is make sure that the script is installed correctly first, and secondly, use the script elevator by eye \[target inside elevator buttons ( qb-target or your in config)], and do not use the elevator in the map shown in the picture

<img src="https://media.discordapp.net/attachments/1028319943713890385/1126753393445179522/image.png" alt="" data-size="original">
{% endhint %}

## Finally Customize Your setting in shared/sh\_config.lua

And don't forget setup webhocks in config


---

# 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://l2s.gitbook.io/l2s-dev-documentations/qbcore/hotel/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.
