# Configuration

## 1. Main Scripts

Here you must to change this config to work with your server, like your Core Name and your target name script ...

```lua
Shared.Exports = {
    core = 'qb-core',
    input = 'qb-input',
    password = 'l2s-password',
    target = 'qb-target',
}
```

## 2. Events

You have more than one event in this config, you have a client and server events.

```lua
Shared.Events = {
  
    itembox = 'inventory:client:ItemBox', -- your inventory event (client event)
    phone = 'qb-phone:server:sendNewMailToOffline', -- your phone event (server event) file open source if you want make it export server/mail.lua
    outfits = "qb-clothing:server:openOutfitMenu", -- your outfits event (server event)
    doorlock = "qb-doorlock:server:ToggleHotel" -- if you uses your v4 files dont touch
}
```

## 3. Bossmenu

l2s-hotel has a advanced system of bossmenu, if you wanna enable or desible the bossmenu you just need to do it false or true, and you can change the export and the name.

```lua
Shared.BossMenu = {
    enable = false, -- to add money in boss menu job name
    export = 'qb-management', -- AddMoney() server side export
    JobName = 'hotel', -- job name like : realestate, hotel, etc...
}
```

## 4. Card Price

Here, you can change the price of the new card and the price if the player want to Change card serial number.

```lua
Shared.NewCardPrice = 500 -- Take New Card (Price)
Shared.SafetyChange = 1000 -- Change card serial number + new card (Price)
```

## 5. Stash Weight

In this short tutorial you will learn how to change Stash Weigh, you have two types Normal stash and Suite, you can change the space and slots.

```lua
Shared.StashWeight = {
    normal = { -- Normal Rooms
        Space = 100000,
        Slots = 60,
    },
    suite = { -- Suite Rooms 
        Space = 2500000,
        Slots = 100,
    },
}
```

## 6. Webhook

We must add our discord webhook, If you don't know how to get a webhook, it's easy and we explain it in a few steps in the following video. Watch it carefully so you don't miss any step:

{% embed url="<https://www.youtube.com/watch?v=fKksxz2Gdnc>" %}

```lua
Shared.Webhook = '' -- Discord Log Webhook
```

## 7. v4 Package

If you use the l2s v4 files you must to change it to true.

```lua
Shared.V4Files = false -- if you use L2S v4 Files 
Shared.firstdoorlock = 234 -- if you uses V4 l2s files only set first doorlock number Defult : 234
```

## 8. Language

In l2s-hotel you can change the Language to any Language do you want.

```lua
Shared.Language = {
    -- Chairs
    [1] = 'Press [X] To Stand',
    [2] = "Sit Down",
    [3] = "Are you using another chair",
    -- Elevetors ,to edit go to cl_elevetors and edit its open source
    [4]= "Crastenburg Hotel",
    [5]= "Click on the room to take the card",
    [6]= 'We apologize, you have the maximum number of rooms and their number : ',
    -- Others , any thing else we can't make it here so you can change somings in index.html 
    [7]= 'Open Outfits',
    [8]= 'Open Safe',
    [9]= 'Incorrect password',
    [10]= "Extend stay for 7 days",
    [11]=  "Extend stay for 15 days",
    [12]=  "Extend stay for 30 days",
    [13]=  "Back",
    [14]=  'Sorry, your card is no longer active',
    [15]=  'You only have 5 minutes and then the safe will be deleted',
    [16]=  "Click in stash to open",
    [17]=  'Sorry, you dont have any lost property in the hotel',
    -- MORE THAN 53 --
```


---

# 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/configuration.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.
