# ylean\_cryptosystem

## 1. Setup

Import `yl.sql` file into your database

**\[IMPORTANT]** If you are using other targeting resource than qb-target remember to change export in `client.lua`!

## 2. config.lua

```lua
Ylean = {}

Ylean.Blip = {
    name = "Bitcoin Center",
    type = 607
}

Ylean.ASIC_CFG = {
    offline_income = false, --IMPORTANT [!]
    miner_price = 50000,
    upgrade_price = 15000,
    max_level = 20,
    increase_per_level = 10 -- 10MH/h = 0.05 BTC
}

Ylean.ASIC = {
    model = "prop_cs_tv_stand",
    coords = vector4(705.83, -963.59, 29.4, 51.17),
    text_coords = vector4(706.1, -963.77, 31.21, 47.54)
}


Ylean.Pc = {
    model = "prop_dyn_pc_02", 
    coords = vector4(706.42, -967.66, 30.35, 181.69),
    display_model = "v_serv_ct_monitor04",
    display_coords = vector4(706.95, -967.7, 30.41, 185.75)
}
```

`offline_income` - if set to true all (offline and online) players will receive payment.

`increase_per_level` - 10 MH/s =  0.05 BTC per hour. If you set the value of this variable to 20, then players will receive an additional 0.1 BTC per hour with every upgrade.

## 3. How to change Bitcoin prices on a chart

Whole chart is located in `nui/script.js` - **lines: 146 to 262**


---

# 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://ylean.gitbook.io/ylean_-docs/paid-releases/ylean_cryptosystem.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.
