# QBCore

## Download Resource

You will receive the script in [`keymaster.fivem.net`](https://keymaster.fivem.net/asset-grants) profile, after this click in blue "download" button.

After download, put the script in your server files.

{% hint style="warning" %}
Remeber:

You need to be logged with the same cfx.re account you used to buy in my tebex store.
{% endhint %}

## Dependencies Part

* [**qb-core**](https://github.com/qbcore-framework/qb-core) **or** [**es\_extended**](https://github.com/ESX-Official/es_extended)
* [**qb-menu**](https://github.com/qbcore-framework/qb-menu) **or custom one (ESX uses default menu, no need of this)**
* **input script (provided)**
* [**oxmysql**](https://github.com/overextended/oxmysql)

Download all the scripts by clicking on their respective names, put them in the server files and start server.cfg

## Inventory Setup

{% tabs %}
{% tab title="Usual Inventorys" %}
Go to `qb-core, shared, items.lua`, replace **phone item** line to this ones:

```lua
['phone'] = {['name']='phone',['label']='Phone',['weight']=700,['type']='item',['image']='phone.png',['unique']=true,['useable']=true,['shouldClose']=true,['combinable']=nil,['description']='Neat phone ya got there'},
['phone_white']={['name']='phone_white',['label']='White Phone',['weight']=700,['type']='item',['image']='phone_white.png',['unique']=true,['useable']=true,['shouldClose']=true,['combinable']=nil,['description']='Neat white phone ya got there'},
['phone_gold']={['name']='phone_gold',['label']='Gold Phone',['weight']=700,['type']='item',['image']='phone_gold.png',['unique']=true,['useable']=true,['shouldClose']=true,['combinable']=nil,['description']='Neat gold phone ya got there'},
['phone_red']={['name']='phone_red',['label']='Red Phone',['weight']=700,['type']='item',['image']='phone_red.png',['unique']=true,['useable']=true,['shouldClose']=true,['combinable']=nil,['description']='Neat red phone ya got there'},
['phone_blue']={['name']='phone_blue',['label']='Blue Phone',['weight']=700,['type']='item',['image']='phone_blue.png',['unique']=true,['useable']=true,['shouldClose']=true,['combinable']=nil,['description']='Neat blue phone ya got there'},
['phone_green']={['name']='phone_green',['label']='Green Phone',['weight']=700,['type']='item',['image']='phone_green.png',['unique']=true,['useable']=true,['shouldClose']=true,['combinable']=nil,['description']='Neat green phone ya got there'},
['phone_pink']={['name']='phone_pink',['label']='Pink Phone',['weight']=700,['type']='item',['image']='phone_pink.png',['unique']=true,['useable']=true,['shouldClose']=true,['combinable']=nil,['description']='Neat pink phone ya got there'},
['phone_green_light']={['name']='phone_greenLight',['label']='Green Light Phone',['weight']=700,['type']='item',['image']='phone_greenLight.png',['unique']=true,['useable']=true,['shouldClose']=true,['combinable']=nil,['description']='Neat green light phone ya got there'},
['powerbank'] 			 	 	 	 = {['name'] = 'powerbank', 	
```

{% endtab %}

{% tab title="Lastest QB-Core" %}
Go to `qb-core, shared, items.lua`, replace **phone item** line to this ones:

```lua
casinochips = { name = 'casinochips', label = 'Casino Chips', weight = 1, type = 'item', image = 'casinochips.png', unique = false, useable = false, shouldClose = false, combinable = nil, description = 'Casino Chips' },
casino_member = { name = 'casino_member', label = 'Casino Member', weight = 600, type = 'item', image = 'casino_member.png', unique = false, useable = false, shouldClose = false, combinable = nil, description = 'A good membership' },
casino_vip = { name = 'casino_vip', label = 'Casino VIP', weight = 800, type = 'item', image = 'casino_vip.png', unique = true, useable = false, shouldClose = true, combinable = nil, description = 'A fantastic membership' },
```

{% endtab %}

{% tab title="Ox Inventory" %}
Go to `ox_inventory > data > items.lua`, **add** this ones:

```lua
["casinochips"] = {
	label = "Casino Chips",
	weight = 1,
	stack = true,
	close = true,
},
["casino_member"] = {
	label = "Casino Member",
	weight = 1,
	stack = true,
	close = true,
},
["casino_vip"] = {
	label = "Casino VIP",
	weight = 1,
	stack = true,
	close = true,
},
```

{% endtab %}
{% endtabs %}

{% hint style="success" %}
All good.\
As you can see, this is more than easy :pancakes:
{% endhint %}


---

# 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://joaos-organization-3.gitbook.io/jpresources-documentation/installation/casino-system/how-to-install/qbcore.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.
