# Our Scripts

Learn more about Dolaji's scripts, follow installation guides or troubleshoot a script.

{% tabs %}
{% tab title="QBCore" %}
{% content-ref url="/pages/CfdWvZYLbFpAmM8ZcQ9G" %}
[ds-fruitpicker](https://docs.dolajiscripts.com/resources/ds-fruitpicker)
{% endcontent-ref %}

{% content-ref url="/pages/aQC8KL1cwaNtAfeFqo6s" %}
[ds-mining](https://docs.dolajiscripts.com/resources/ds-mining)
{% endcontent-ref %}

{% content-ref url="/pages/AIn9obpF8oCSWW3wUYrX" %}
[ds-cutscene](https://docs.dolajiscripts.com/resources/ds-cutscene)
{% endcontent-ref %}

{% content-ref url="/pages/CtDvw10ILthaNbz1u4iI" %}
[ds-milkjob](https://docs.dolajiscripts.com/resources/ds-milkjob)
{% endcontent-ref %}

{% content-ref url="/pages/TpM0Kzd1e4b6jpkV3ycA" %}
[ds-drilling](https://docs.dolajiscripts.com/resources/ds-drilling)
{% endcontent-ref %}

{% content-ref url="/pages/Td6NzzQqzN2976QK8mA4" %}
[ds-atmrobbery](https://docs.dolajiscripts.com/resources/ds-atmrobbery)
{% endcontent-ref %}

{% content-ref url="/pages/5jAP4gBGOFQsZuYn3sWA" %}
[ds-electrician](https://docs.dolajiscripts.com/resources/ds-electrician)
{% endcontent-ref %}
{% endtab %}

{% tab title="ESX" %}
{% content-ref url="/pages/aQC8KL1cwaNtAfeFqo6s" %}
[ds-mining](https://docs.dolajiscripts.com/resources/ds-mining)
{% endcontent-ref %}

{% content-ref url="/pages/AIn9obpF8oCSWW3wUYrX" %}
[ds-cutscene](https://docs.dolajiscripts.com/resources/ds-cutscene)
{% endcontent-ref %}

{% content-ref url="/pages/CtDvw10ILthaNbz1u4iI" %}
[ds-milkjob](https://docs.dolajiscripts.com/resources/ds-milkjob)
{% endcontent-ref %}

{% content-ref url="/pages/TpM0Kzd1e4b6jpkV3ycA" %}
[ds-drilling](https://docs.dolajiscripts.com/resources/ds-drilling)
{% endcontent-ref %}

{% content-ref url="/pages/Td6NzzQqzN2976QK8mA4" %}
[ds-atmrobbery](https://docs.dolajiscripts.com/resources/ds-atmrobbery)
{% endcontent-ref %}

{% content-ref url="/pages/5jAP4gBGOFQsZuYn3sWA" %}
[ds-electrician](https://docs.dolajiscripts.com/resources/ds-electrician)
{% endcontent-ref %}
{% endtab %}

{% tab title="Free" %}
{% content-ref url="/pages/TpM0Kzd1e4b6jpkV3ycA" %}
[ds-drilling](https://docs.dolajiscripts.com/resources/ds-drilling)
{% endcontent-ref %}
{% endtab %}
{% endtabs %}


# calibrate-distributor

Unique and Advance Among Us Calibrate Distributor Mini-Game for FiveM.

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

## Installation

use this export in client to start minigame

```lua
exports['calibrate-distributor']:startDistributor(true)
```

## Example

```
RegisterCommand('calibratedistributor', function()
     local result = exports['calibrate-distributor']:startDistributor(true)
     print(result, 'calibrate distributor result')
end, false)
```


# ds-drilling

Unique and Advance Oil Drilling Job with responsive UI and Compatible with any QBCore and ESX server.

![](https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2FuKznTWDzdzbiZbabIit1%2Fdrilling.png?alt=media\&token=ef6cde27-979b-4762-89eb-1f6fcfbd171e)

[<mark style="color:purple;">**View on Tebex**</mark>](https://dolajiscripts.com/package/5108477) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**CFX Fourm Post**</mark>](https://youtu.be/nihdezKcZgI) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Youtube Video**</mark>](https://youtu.be/nihdezKcZgI) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Discord**</mark>](https://discord.gg/vhF9ke3hJG)

## Installaction(optional)

### Dependencies

| Dependency                                       | Download                                                                                            | Description                           |
| ------------------------------------------------ | --------------------------------------------------------------------------------------------------- | ------------------------------------- |
| <mark style="color:purple;">**qb-target**</mark> | [Link](https://cdn.discordapp.com/attachments/932109362623832146/1036890639276724324/qb-target.zip) | A better interaction system for FiveM |
| <mark style="color:purple;">**qb-input**</mark>  | [Link](https://github.com/qbcore-framework/qb-input)                                                | batter input menu for fivem           |

### Start

* Extract `ds-drilling.zip` and place it into your resource folder.
* Install and ensure [dependencies](#dependencies) for the resource.
* Setup`config.lua` (⚠️see [#CONFIGURATION](#configuration) for instructions).&#x20;
* Add`ensure ds-drilling`to your server start config (place it anywhere below the dependency & framework resources).

### Configuration

{% hint style="warning" %}
Please go through **all** configurable options & settings in `config.lua and config.js` and configure them to your server's preferences.

Also please read the comments at the end of each line, for a brief information on what the option does.&#x20;
{% endhint %}

### **Add Items**

{% tabs %}
{% tab title="QBCore" %}
{% code lineNumbers="true" %}

```lua
['kerosene'] = {
	['name'] = 'kerosene', 			 	  	  	
	['label'] = 'kerosene', 					
	['weight'] = 0, 		
	['type'] = 'item', 		
	['image'] = 'kerosene.png', 				
	['unique'] = true, 		
	['useable'] = true, 	
	['shouldClose'] = false,   
	['combinable'] = nil,   
	['description'] = 'oil'
},
['gasoline'] = {
	['name'] = 'gasoline', 			 	  	  	
	['label'] = 'gasoline', 					
	['weight'] = 0, 		
	['type'] = 'item', 		
	['image'] = 'gasoline.png', 				
	['unique'] = true, 		
	['useable'] = true, 	
	['shouldClose'] = false,   
	['combinable'] = nil,   
	['description'] = 'oil'
},
```

{% endcode %}
{% endtab %}

{% tab title="ESX" %}

```sql
INSERT INTO items (name, label, weight, rare, can_remove) VALUES ('kerosene', 'Kerosene', 1, 0, 1), ('gasoline', 'Gasoline', 2, 0, 1);
```

{% endtab %}

{% tab title="Images" %}
[Download link](https://cdn.discordapp.com/attachments/952436645267922994/1012727311218528286/images.rar)
{% endtab %}
{% endtabs %}


# ds-atmrobbery

Unique ATM Robbery for qbcore and esx servers with VOLTlab Signal and Drilling Minigame.

<figure><img src="https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2F2yXa9461sUviT2F1JVFJ%2Fatmrobbery.png?alt=media&amp;token=bebebdd7-503d-410f-be1d-80f8bad6a954" alt=""><figcaption></figcaption></figure>

[<mark style="color:purple;">**View on Tebex**</mark>](https://dolajiscripts.com/package/5299504) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**CFX Fourm Post**</mark>](https://youtu.be/nihdezKcZgI) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Youtube Video**</mark>](https://youtu.be/4HZUSkXbtKU) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Discord**</mark>](https://discord.gg/vhF9ke3hJG)

## Installaction

### Dependencies

| Dependency                                                | Download                                           | Description               |
| --------------------------------------------------------- | -------------------------------------------------- | ------------------------- |
| [**VOLTlab**](https://github.com/ultrahacx/ultra-voltlab) | [Link](https://github.com/ultrahacx/ultra-voltlab) | Voltlab Hacking Minigame. |

### Start

* Extract `ds-atmrobbery.zip` and place it into your resource folder.
* Install and ensure [dependencies](#dependencies) for the resource.
* Setup`config.lua` (⚠️see [#CONFIGURATION](#configuration) for instructions).&#x20;
* Add `ensure ds-atmrobbery` to your server start config (place it anywhere below the dependency & framework resources).

### Configuration

{% hint style="warning" %}
Please go through **all** configurable options & settings in `config.lua`and configure them to your server's preferences.

Also please read the comments at the end of each line, for a brief information on what the option does.&#x20;
{% endhint %}

### **Add Items**

{% tabs %}
{% tab title="QBCore" %}
{% code lineNumbers="true" %}

```lua
['thermite'] = {
    ['name'] = 'thermite', 			  			
    ['label'] = 'Thermite', 				
    ['weight'] = 1000, 		
    ['type'] = 'item', 		
    ['image'] = 'thermite.png', 			
    ['unique'] = false, 	
    ['useable'] = true, 	
    'shouldClose'] = true,    
    ['combinable'] = nil,   
    ['description'] = 'Sometimes you\'d wish for everything to burn'
},

['drill'] = {
    ['name'] = 'drill', 			    		
    ['label'] = 'Drill', 					
    ['weight'] = 20000, 	
    ['type'] = 'item', 		
    ['image'] = 'drill.png', 				
    ['unique'] = false, 	
    ['useable'] = false, 	
    ['shouldClose'] = false,   
    ['combinable'] = nil,   
    ['description'] = 'The real deal...'
},

```

{% endcode %}
{% endtab %}

{% tab title="ESX" %}

```sql
INSERT INTO items (name, label, weight, rare, can_remove) VALUES ('drill', 'Drill', 1, 0, 1), ('thermite', 'Thermite', 2, 0, 1);
```

{% endtab %}

{% tab title="Images" %}
[Download link](https://cdn.discordapp.com/attachments/932109362623832146/1019911735609655347/images.rar)
{% endtab %}
{% endtabs %}


# ds-fruitpicker

Unique and Advanced fruit picker job for qbcore

<div align="center"><img src="https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2FwqBv5m3iGWqN5Wq7WKHA%2Ffruit.png?alt=media&amp;token=a3360d4b-d889-4c19-8bb8-2427c1247b73" alt=""></div>

[<mark style="color:purple;">**View on Tebex**</mark>](https://dolajiscripts.com/package/5128611) <mark style="color:purple;">**| CFX Fourm Post |**</mark> [<mark style="color:purple;">**Youtube Video**</mark>](https://youtu.be/cjgSVUB858c) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Discord**</mark>](https://discord.gg/vhF9ke3hJG)

## Installaction

### Dependencies

| Dependency           | Download                                                                                   | Description                                                       |
| -------------------- | ------------------------------------------------------------------------------------------ | ----------------------------------------------------------------- |
| orangeprop           | [Link](https://drive.google.com/file/d/1UCeepX2Hh2EDVn7f9sScnxr5QIrjEsRS/view?usp=sharing) | Custom orange prop                                                |
| qb-input (Optional)  | [Link](https://github.com/qbcore-framework/qb-input)                                       | qb-input for add input option on sell oranges and pickup oranges. |
| qb-target (Optional) | [Link](https://github.com/qbcore-framework/qb-target)                                      | you need eye target script if you don't want to use drawtext      |

### Start

1. Extract `ds-fruitpicker.zip` and place it into your resource folder.
2. Install and ensure [dependencies](#dependencies) for the resource.
3. Setup`config.lua` (⚠️see [#CONFIGURATION](#configuration) for instructions).&#x20;
4. Add`ensure ds-fruitpicker`to your server start config (place it anywhere below the dependency & framework resources).

### Configuration

{% hint style="warning" %}
Please go through **all** configurable options & settings in `config.lua` and configure them to your server's preferences.

Also please read the comments at the end of each line, for a brief information on what the option does.&#x20;
{% endhint %}

### Add Items

#### Open `qb-core/shared/items.lua`and add this lines

{% tabs %}
{% tab title="Items" %}

```lua
orange = {
    ["name"] = "orange",
    ["label"] = "Orange",
    ["weight"] = 1000,
    ["type"] = "item",
    ["image"] = "orange.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "This is Orange you can eat this"
},
fruit_basket = {
    ["name"] = "fruit_basket",
    ["label"] = "Fruit Basket",
    ["weight"] = 1000,
    ["type"] = "item",
    ["image"] = "fruit_basket.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Fruit Basket"
},
```

{% endtab %}

{% tab title="Inventory Images" %}
![](https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2FIhtAiw7D1CRTsvra3K2n%2Ffruit_basket.png?alt=media\&token=129145f9-b223-4ba8-92ac-a2e8a467752d) ![](https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2FaGtVAxtGOv9d0Yi3LUmD%2Forange.png?alt=media\&token=58bb13bb-b06c-434f-8812-d209bc254326)
{% endtab %}
{% endtabs %}

### Add In `qb-radialmenu`

replace below code in `qb-radialmenu\client\main.lua` in SetupRadialMenu function.

{% tabs %}
{% tab title="Code" %}

```lua
local function SetupRadialMenu()
    FinalMenuItems = {}
    if (IsDowned() and IsPoliceOrEMS()) then
        FinalMenuItems = {
            [1] = {
                id = 'emergencybutton2',
                title = Lang:t("options.emergency_button"),
                icon = 'circle-exclamation',
                type = 'client',
                event = 'police:client:SendPoliceEmergencyAlert',
                shouldClose = true,
            },
        }
    else
        SetupSubItems()
        FinalMenuItems = deepcopy(Config.MenuItems)
        for _, v in pairs(DynamicMenuItems) do
            FinalMenuItems[#FinalMenuItems + 1] = v
        end

        local basket = exports['ds-fruitpicker']:Checkbasket()
        if basket == "drop" then
            FinalMenuItems[#FinalMenuItems + 1] = {
                id = "basket",
                title = "Drop Basket",
                icon = "basket-shopping",
                type = 'client',
                event = 'dropbasket',
                shouldClose = true,
            }
        elseif basket == "pickup" then
            FinalMenuItems[#FinalMenuItems + 1] = {
                id = "basket2",
                title = "Pickup Basket",
                icon = "basket-shopping",
                type = 'client',
                event = 'dropbasket',
                shouldClose = true,
            }
        end
    end
end
```

{% endtab %}
{% endtabs %}

### Add in `qb-core`

Add below code or replace function in `qb-inventory\server\main.lua.`

{% tabs %}
{% tab title="Replace Function (recommended)" %}
replace `RemoveItem` function.

```lua
local function RemoveItem(source, item, amount, slot)
	local Player = QBCore.Functions.GetPlayer(source)

	if not Player then return false end

	amount = tonumber(amount) or 1
	slot = tonumber(slot)

	if slot then
		if not Player.PlayerData.items[slot] then
			DropPlayer(source, 'Failed to remove item, most likely cheating')
			return false
		end
		if Player.PlayerData.items[slot].amount > amount then
			Player.PlayerData.items[slot].amount = Player.PlayerData.items[slot].amount - amount
			Player.Functions.SetPlayerData('items', Player.PlayerData.items)

			if item == 'fruit_basket' then
                TriggerClientEvent("ds-fruitpicker:removebasket", source)
            end

			if not Player.Offline then
				TriggerEvent('qb-log:server:CreateLog', 'playerinventory', 'RemoveItem', 'red', '**' .. GetPlayerName(source) .. ' (citizenid: ' .. Player.PlayerData.citizenid .. ' | id: ' .. source .. ')** lost item: [slot:' .. slot .. '], itemname: ' .. Player.PlayerData.items[slot].name .. ', removed amount: ' .. amount .. ', new total amount: ' .. Player.PlayerData.items[slot].amount)
			end



			return true
		elseif Player.PlayerData.items[slot].amount == amount then
			Player.PlayerData.items[slot] = nil
			Player.Functions.SetPlayerData('items', Player.PlayerData.items)

			if item == 'fruit_basket' then
                TriggerClientEvent("ds-fruitpicker:removebasket", source)
            end

			if Player.Offline then return true end

			TriggerEvent('qb-log:server:CreateLog', 'playerinventory', 'RemoveItem', 'red', '**' .. GetPlayerName(source) .. ' (citizenid: ' .. Player.PlayerData.citizenid .. ' | id: ' .. source .. ')** lost item: [slot:' .. slot .. '], itemname: ' .. item .. ', removed amount: ' .. amount .. ', item removed')

			return true
		end
	else
		local slots = GetSlotsByItem(Player.PlayerData.items, item)
		local amountToRemove = amount

		if not slots then return false end

		for _, _slot in pairs(slots) do
			if not Player.PlayerData.items[_slot] then
				DropPlayer(source, 'Failed to remove item, most likely cheating')
				return false
			end
			if Player.PlayerData.items[_slot].amount > amountToRemove then
				Player.PlayerData.items[_slot].amount = Player.PlayerData.items[_slot].amount - amountToRemove
				Player.Functions.SetPlayerData('items', Player.PlayerData.items)

				if item == 'fruit_basket' then
					TriggerClientEvent("ds-fruitpicker:removebasket", source)
				end

				if not Player.Offline then
					TriggerEvent('qb-log:server:CreateLog', 'playerinventory', 'RemoveItem', 'red', '**' .. GetPlayerName(source) .. ' (citizenid: ' .. Player.PlayerData.citizenid .. ' | id: ' .. source .. ')** lost item: [slot:' .. _slot .. '], itemname: ' .. Player.PlayerData.items[_slot].name .. ', removed amount: ' .. amount .. ', new total amount: ' .. Player.PlayerData.items[_slot].amount)
				end

				return true
			elseif Player.PlayerData.items[_slot].amount == amountToRemove then
				Player.PlayerData.items[_slot] = nil
				Player.Functions.SetPlayerData('items', Player.PlayerData.items)

				if item == 'fruit_basket' then
					TriggerClientEvent("ds-fruitpicker:removebasket", source)
				end

				if Player.Offline then return true end

				TriggerEvent('qb-log:server:CreateLog', 'playerinventory', 'RemoveItem', 'red', '**' .. GetPlayerName(source) .. ' (citizenid: ' .. Player.PlayerData.citizenid .. ' | id: ' .. source .. ')** lost item: [slot:' .. _slot .. '], itemname: ' .. item .. ', removed amount: ' .. amount .. ', item removed')

				return true
			end
		end
	end
	return false
end
```

{% endtab %}

{% tab title="add Code" %}
add this three lines after&#x20;

```lua
Player.Functions.SetPlayerData('items', Player.PlayerData.items) 

in RemoveItem function.
```

```lua
 if item == 'fruit_basket' then
     TriggerClientEvent("ds-fruitpicker:removebasket", source)
 end
```

![](https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2FpjPblnVJF9ZVyw5XHBQx%2FScreenshot_112.png?alt=media\&token=9b81d8e4-82cb-4497-bf4b-c2245f730533)
{% endtab %}
{% endtabs %}


# ds-milkjob

Advance & Unique Milkjob script and Compatible with any Qbcore and ESX server.

<div align="center"><img src="https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2FhsYkmyS60Wn0oY7Q53o2%2F57a90d77eb6cfc8d836594bf0e7f0300a04d0fef.png?alt=media&amp;token=f381adfc-c3dd-456b-ad74-8b8344d8d16a" alt=""></div>

<mark style="color:purple;">**View on Tebex |**</mark> [<mark style="color:purple;">**CFX Fourm Post**</mark>](https://forum.cfx.re/t/paid-qbcore-esx-milk-job-most-advanced-unique-milking-job-on-fivem/4842542) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Youtube Video**</mark>](https://youtu.be/dpIQZO1RYIQ) <mark style="color:purple;">**| Discord**</mark>

## Installaction

### Dependencies

| Dependency | Download                                                                                   | Description                                                       |
| ---------- | ------------------------------------------------------------------------------------------ | ----------------------------------------------------------------- |
| qb-input   | [Link](https://github.com/qbcore-framework/qb-input)                                       | qb-input for add input option on sell oranges and pickup oranges. |
| milk-prop  | [Link](https://drive.google.com/file/d/1-sr6eVSbS8NmgVr16vfkJ96aF9zg1MfM/view?usp=sharing) | Custom prop for milk processing                                   |

### Start

1. Extract ds-milkjob.`zip` and place it into your resource folder.
2. Install and ensure [dependencies](#dependencies) for the resource.
3. Setup`config.lua` (⚠️see [#CONFIGURATION](#configuration) for instructions).&#x20;
4. Add`ensure` ds-milkjob to your server start config (place it anywhere below the dependency & framework resources).

### Configuration

{% hint style="warning" %}
Please go through **all** configurable options & settings in `config.lua` and configure them to your server's preferences.

Also please read the comments at the end of each line, for a brief information on what the option does.&#x20;
{% endhint %}

### Add Items

{% tabs %}
{% tab title="QBCore" %}

#### Open `qb-core/shared/items.lua`and add this lines

```lua
["milk"] = {
    ["name"] = "milk",
    ["label"] = "Milk",
    ["weight"] = 200,
    ["type"] = "item",
    ["image"] = "milk.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Milk"
},

["bucket"] = {
    ["name"] = "bucket",
    ["label"] = "Bucket",
    ["weight"] = 200,
    ["type"] = "item",
    ["image"] = "bucket.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Bucket"
},

["rope"] = {
    ["name"] = "rope",
    ["label"] = "Rope",
    ["weight"] = 200,
    ["type"] = "item",
    ["image"] = "rope.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "rope"
},
```

{% endtab %}

{% tab title="ESX" %}

```sql
INSERT INTO items (name, label, weight, rare, can_remove) VALUES ('milk', 'Milk', 1, 0, 1), ('bucket', 'Bucket', 2, 0, 1), ('rope', 'Rope', 1, 0, 1);
INSERT INTO jobs (name, label, whitelisted) VALUES ('farmer', 'Farmer', 0);
INSERT INTO job_grades (job_name, grade, name, label, salary, skin_male, skin_female) VALUES ('farmer', 0, 'recruit', 'Recruit', 20, '{}', '{}');
```

{% endtab %}

{% tab title="Inventory Images" %}
![](https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2Fg7tuSpGPZJoIjEtkcl3d%2Fbucket.png?alt=media\&token=65433336-44ca-453f-bbc1-0faa41c8fbae) ![](https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2FGh0oseDrYGTUp8h3eHq6%2Fmilk.png?alt=media\&token=cc7e40cf-d38a-4fd3-b90e-5f36c97c3879) ![](https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2F4gR1o0pq5wEm85yHxC16%2Frope.png?alt=media\&token=1afec8a2-2289-4719-9d1c-f0bd12abc042)
{% endtab %}
{% endtabs %}


# ds-cutscene

Welcome your players with fantastic entry cutscene with GTA Character Lamar.

<div align="center"><img src="https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2FeOOksUhFKnXWdLFJV9xs%2Fcutscene.png?alt=media&amp;token=1d22cf46-42a2-4f3a-aeb0-b874e73a697a" alt=""></div>

[<mark style="color:purple;">**View on Tebex**</mark> ](https://dolajiscripts.com/package/5162488)<mark style="color:purple;">**| CFX Fourm Post |**</mark> [<mark style="color:purple;">**Youtube Video**</mark>](https://youtu.be/r-QPtQiwWhw) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Discord**</mark>](https://discord.gg/vhF9ke3hJG)

## Installaction

### Start

1. Extract `ds-cutscene.zip` and place it into your resource folder.
2. Setup`config.lua` (⚠️see [#CONFIGURATION](#configuration) for instructions).&#x20;
3. Add`ensure ds-cutscene`to your server start config (place it anywhere below the framework resources).

### Configuration

{% hint style="warning" %}
Please go through **all** configurable options & settings in `config.lua` and configure them to your server's preferences.

Also please read the comments at the end of each line, for a brief information on what the option does.&#x20;
{% endhint %}

### Add Trigger Event

{% tabs %}
{% tab title="QBCore" %}
put his line on top of the `qb-clothing/client/main.lua`

```lua
local CreateFirstCharacter = false
```

open `qb-clothing/client/main.lua` and replace this close callback.

```lua
RegisterNUICallback('close', function()
    SetNuiFocus(false, false)
    if CreateFirstCharacter then 
        TriggerEvent('ds-cutscene:start')
    end
    CreateFirstCharacter = false
    creatingCharacter = false
    disableCam()

    FreezeEntityPosition(PlayerPedId(), false)
end)
```

find `qb-clothes:client:CreateFirstCharacter` event and replace with this.

```lua
RegisterNetEvent('qb-clothes:client:CreateFirstCharacter')
AddEventHandler('qb-clothes:client:CreateFirstCharacter', function()
    CreateFirstCharacter = true
    QBCore.Functions.GetPlayerData(function(PlayerData)
        local skin = "mp_m_freemode_01"
        openMenu({
            {menu = "character", label = "Character", selected = true},
            {menu = "clothing", label = "Features", selected = false},
            {menu = "accessoires", label = "Accessories", selected = false}
        })

        if PlayerData.charinfo.gender == 1 then
            skin = "mp_f_freemode_01"
        end

        ChangeToSkinNoUpdate(skin)
        SendNUIMessage({
            action = "ResetValues",
        })
    end)
end)
```

{% endtab %}

{% tab title="ESX" %}
open `esx_skin/client/main.lua` and edit replace below code or add lines as per example image.

```lua
local newCharacter = false  --- add this line before below function
function OpenSaveableMenu(submitCb, cancelCb, restrict)
    TriggerEvent('skinchanger:getSkin', function(skin) lastSkin = skin end)

    OpenMenu(function(data, menu)
        menu.close()
        DeleteSkinCam()

        TriggerEvent('skinchanger:getSkin', function(skin)
            TriggerServerEvent('esx_skin:save', skin)
            if newCharacter then --- add this lines here
                TriggerEvent('ds-cutscene:start') --- add this lines here
                newCharacter = false --- add this lines here
            end
            if submitCb ~= nil then
                submitCb(data, menu)
            end
        end)

    end, cancelCb, restrict)
end


AddEventHandler('esx_skin:playerRegistered', function()
    CreateThread(function()
        while not ESX.PlayerLoaded do
            Wait(100)
        end

        if firstSpawn then
            newCharacter = true  --- add this lines here
            ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin)
                if skin == nil then
                    TriggerEvent('skinchanger:loadSkin', {sex = 0}, OpenSaveableMenu)
                    Wait(100)
                    skinLoaded = true
                else
                    TriggerEvent('skinchanger:loadSkin', skin)
                    Wait(100)
                    skinLoaded = true
                end
            end)
            
            firstSpawn = false
        end
    end)
end)
```

![](https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2FNl9kgRTmL3vfW22tnYHX%2FScreenshot_127.png?alt=media\&token=b596dc1c-57c9-40f8-8219-6693306dbf12)
{% endtab %}

{% tab title="Other" %}
Trigger below client side event when you want to start cutscene.

you can trigger after player close clothing menu on player create new creaction.

```lua
TriggerEvent('ds-cutscene:start')
```

{% endtab %}

{% tab title="fivem-appearance" %}
Find `qb-clothes:client:CreateFirstCharacter` event and replace with this.

```lua
RegisterNetEvent('qb-clothes:client:CreateFirstCharacter', function()
    QBCore.Functions.GetPlayerData(function(pd)
        local skin = 'mp_m_freemode_01'
        if pd.charinfo.gender == 1 then
            skin = "mp_f_freemode_01"
        end
        exports['fivem-appearance']:setPlayerModel(skin)
        -- Fix for tattoo's appearing when creating a new character
        local ped = PlayerPedId()
        exports['fivem-appearance']:setPedTattoos(ped, {})
        ClearPedDecorations(ped)
        QBCore.Functions.TriggerCallback("QBCore:HasPermission", function(permission)
            local config = getConfigForPermission(permission)
            exports['fivem-appearance']:startPlayerCustomization(function(appearance)
                if (appearance) then
                    TriggerServerEvent('fivem-appearance:server:saveAppearance', appearance)
                    --TriggerEvent('introCinematic:start')
                    TriggerEvent('ds-cutscene:start')  
                end
            end, config)
        end, Config.PedMenuGroup)
    end)
end)

```

{% endtab %}

{% tab title="illenium-appearance" %}
go to `illenium-appearance/client/client.lua` and replace this function

```lua
function InitializeCharacter(gender, onSubmit, onCancel)
    SetInitialClothes(Config.InitialPlayerClothes[gender])
    local config = getNewCharacterConfig()
    TriggerServerEvent("illenium-appearance:server:ChangeRoutingBucket")
    client.startPlayerCustomization(function(appearance)
     TriggerEvent('ds-cutscene:start')
        if (appearance) then
            TriggerServerEvent("illenium-appearance:server:saveAppearance", appearance)
            if onSubmit then
                onSubmit()
            end
        elseif onCancel then
            onCancel()
        end
        Framework.CachePed()
        TriggerServerEvent("illenium-appearance:server:ResetRoutingBucket")
    end, config)
end
```

{% endtab %}
{% endtabs %}


# ds-mining

Mining for QBCOre & ESX

<div align="center"><img src="https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2FbQFRoUAbaDOVu8dyqIxE%2Fmining.png?alt=media&amp;token=7ae6a1fc-381e-4821-9bd7-c82cbc67eaad" alt=""></div>

[<mark style="color:purple;">**View on Tebex**</mark>](https://dolajiscripts.com/package/5049720) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**CFX Fourm Post**</mark>](https://forum.cfx.re/t/paid-qbcore-esx-cave-mining-realistic-unique-mining-on-fivem/4836677) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Youtube Video**</mark>](https://www.youtube.com/watch?v=IFxTmacY4d8) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Discord**</mark>](https://discord.gg/vhF9ke3hJG)

## Installaction

### Dependencies

| Dependency               | Download                                              | Description                                                  |
| ------------------------ | ----------------------------------------------------- | ------------------------------------------------------------ |
| qb-input                 | [Link](https://github.com/qbcore-framework/qb-input)  | qb-input for add input option on sell stuff.                 |
| qb-target (**Optional**) | [Link](https://github.com/qbcore-framework/qb-target) | you need eye target script if you don't want to use drawtext |

### Start

1. Extract `ds-mining.zip` and place it into your resource folder.
2. Install and ensure [dependencies](#dependencies) for the resource.
3. Setup`config.lua` (⚠️see [#CONFIGURATION](#configuration) for instructions).&#x20;
4. Add`ensure ds-mining` to your server start config (place it anywhere below the dependency & framework resources).

### Configuration

{% hint style="warning" %}
Please go through **all** configurable options & settings in `config.lua` and configure them to your server's preferences.

Also please read the comments at the end of each line, for a brief information on what the option does.&#x20;
{% endhint %}

### Add Job (Optional)

{% tabs %}
{% tab title="QBCore" %}

#### Open `qb-core/shared/jobs.lua`and add this lines

```lua
mining = {
	label = 'Mining',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
		['0'] = {
			name = 'Recruit',
			payment = 10
		},
	},
},

```

{% endtab %}

{% tab title="ESX" %}

#### Run this query in database

```sql
INSERT INTO `jobs` (name, label) VALUES
    ('mining','Mining')
;

INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
    ('mining',0,'recruit','Recruit',10,'{}','{}')
; 
```

{% endtab %}
{% endtabs %}

### Add Items

{% tabs %}
{% tab title="QBCore" %}

#### Open `qb-core/shared/items.lua`and add this lines

```lua
c4 = {
        ["name"] = "c4",
        ["label"] = "C4",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "weapon_stickybomb.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "C4 For mining"
    },

    copper_bar = {
        ["name"] = "copper_bar",
        ["label"] = "Copper Bar",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "copper_bar.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "Copper Bar made from melted copper ore"
    },
    gold_bar = {
        ["name"] = "gold_bar",
        ["label"] = "Gold Bar",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "gold_bar.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "Gold Bar made from melted Gold ore"
    },
    iron_bar = {
        ["name"] = "iron_bar",
        ["label"] = "Iron Bar",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "iron_bar.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "Iron Bar made from melted Iron ore"
    },
    tin_bar = {
        ["name"] = "tin_bar",
        ["label"] = "Tin Bar",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "tin_bar.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "Tin Bar made from melted Tin ore"
    },
    unshapped_copper = {
        ["name"] = "unshapped_copper",
        ["label"] = "Unshapped Copper",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unshapped_copper.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unshapped copper"
    },
    unshapped_gold = {
        ["name"] = "unshapped_gold",
        ["label"] = "Unshapped Gold",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unshapped_gold.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unshapped gold"
    },
    unshapped_iron = {
        ["name"] = "unshapped_iron",
        ["label"] = "Unshapped Iron",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unshapped_iron.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unshapped iron"
    },
    unshapped_tin = {
        ["name"] = "unshapped_tin",
        ["label"] = "Unshapped Tin",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unshapped_tin.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unshapped tin"
    },
    unwashed_copper = {
        ["name"] = "unwashed_copper",
        ["label"] = "Unwashed Copper",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unwashed_copper.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unwashed copper"
    },
    unwashed_gold = {
        ["name"] = "unwashed_gold",
        ["label"] = "Unwashed Gold",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unwashed_gold.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unwashed gold"
    },
    unwashed_iron = {
        ["name"] = "unwashed_iron",
        ["label"] = "Unwashed Iron",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unwashed_iron.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unwashed iron"
    },
    unwashed_tin = {
        ["name"] = "unwashed_tin",
        ["label"] = "Unwashed Tin",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unwashed_tin.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unwashed tin"
    },

    aquamarine_unshapped = {
        ["name"] = "aquamarine_unshapped",
        ["label"] = "Aquamarine Unshapped",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "aquamarine_unshapped.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "aquamarine unshapped"
    },

    aquamarine = {
        ["name"] = "aquamarine",
        ["label"] = "Aquamarine",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "aquamarine.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "aquamarine"
    },

    greenberyl_unshapped = {
        ["name"] = "greenberyl_unshapped",
        ["label"] = "Greenberyl Unshapped",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "greenberyl_unshapped.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "greenberyl unshapped"
    },

    greenberyl = {
        ["name"] = "greenberyl",
        ["label"] = "Green Beryl",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "greenberyl.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "greenberyl"
    },

    ruby_unshapped = {
        ["name"] = "ruby_unshapped",
        ["label"] = "Ruby Unshapped",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "ruby_unshapped.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "ruby unshapped"
    },

    ruby = {
        ["name"] = "ruby",
        ["label"] = "Ruby",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "ruby.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "ruby"
    },

    unwashed_stone = {
        ["name"] = "unwashed_stone",
        ["label"] = "Unwashed Stone",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unwashed_stone.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unwashed stone"
    },

    unshapped_coal = {
        ["name"] = "unshapped_coal",
        ["label"] = "Unshapped Coal",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unshapped_coal.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unshapped_coal"
    },

    coal = {
        ["name"] = "coal",
        ["label"] = "Coal",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "coal.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "coal"
    },

    ds_diamond = {
        ["name"] = "ds_diamond",
        ["label"] = "Diamond",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "ds_diamond.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "iamond"
    },


    ------------ New Mining Update Items

    unwashed_sulfur = {
        ["name"] = "unwashed_sulfur",
        ["label"] = "Unwashed Sulfur",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "unwashed_sulfur.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unwashed_sulfur"
    },
    unshapped_sulfur = {
        ["name"] = "unshapped_sulfur",
        ["label"] = "Ushapped Sulfur",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "unshapped_sulfur.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unshapped_sulfur"
    },

    sulfur_bar = {
        ["name"] = "sulfur_bar",
        ["label"] = "Sulfur",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "sulfur_bar.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "sulfurr"
    },
    unwashed_lead = {
        ["name"] = "unwashed_lead",
        ["label"] = "Unwashed Lead",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "unwashed_lead.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unwashed_lead"
    },
    unshapped_lead = {
        ["name"] = "unshapped_lead",
        ["label"] = "Unshapped Lead",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "unshapped_lead.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "Unshapped Lead"
    },
    lead_ore = {
        ["name"] = "lead_ore",
        ["label"] = "Lead Ore",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "lead_ore.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "lead ore"
    },
    bauxite = {
        ["name"] = "bauxite",
        ["label"] = "Bauxite",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "bauxite.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "bauxite"
    },
    unshapped_bauxite = {
        ["name"] = "unshapped_bauxite",
        ["label"] = "Unshapped Bauxite",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "unshapped_bauxite.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unshapped_bauxite"
    },
    unwashed_bauxite = {
        ["name"] = "unwashed_bauxite",
        ["label"] = "Unwashed Bauxite",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "unwashed_bauxite.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unwashed_bauxite"
    },
    uncut_diamond = {
        ["name"] = "uncut_diamond",
        ["label"] = "Uncut Diamond",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "uncut_diamond.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "uncut_diamond"
    },
```

{% endtab %}

{% tab title="ESX" %}

#### Run this query in database

```sql
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('c4', 'C4', 1, 0, 1),
('copper_bar', 'Copper Bar', 2, 0, 1),
('gold_bar', 'Gold Bar', 1, 0, 0),
('iron_bar', 'Iron Bar', 2, 0, 1),
('tin_bar', 'Tin Bar', 1, 0, 1),
('unshapped_copper', 'Unshapped Copper', 3, 0, 1),
('unshapped_gold', 'Unshapped Gold', 3, 0, 1),
('unshapped_iron', 'Unshapped Iron', 2, 0, 1),
('unshapped_tin', 'Unshapped Tin', 1, 0, 1),
('unwashed_copper', 'Unwashed Copper', 1, 0, 1),
('unwashed_gold', 'Unwashed Gold', 3, 0, 1),
('unwashed_iron', 'Unwashed Iron', 2, 0, 1),
('unwashed_tin', 'Unwashed Tin', 1, 0, 1),
('aquamarine_unshapped', 'Aquamarine Unshapped', 1, 0, 1),
('aquamarine', 'Aquamarine', 1, 0, 1),
('greenberyl_unshapped', 'Greenberyl Unshapped', 1, 0, 1),
('greenberyl', 'Green Beryl', 1, 0, 1),
('ruby_unshapped', 'Ruby Unshapped', 1, 0, 1),
('ruby', 'Ruby', 3, 0, 1),
('unwashed_stone', 'Unwashed Stone', 2, 0, 1),
('unshapped_coal', 'Unshapped Coal', 2, 0, 1),
('coal', 'Coal', 1, 0, 1),
('ds_diamond', 'Diamond', 1, 0, 1),
('unwashed_sulfur', 'Unwashed Sulfur', 1, 0, 1),
('unshapped_sulfur', 'Ushapped Sulfur', 1, 0, 1),
('sulfur_bar', 'Sulfur', 1, 0, 1),
('unwashed_lead', 'Unwashed Lead', 1, 0, 1),
('unshapped_lead', 'Unshapped Lead', 1, 0, 1),
('lead_ore', 'Lead Ore', 1, 0, 1),
('bauxite', 'Bauxite', 1, 0, 1),
('unshapped_bauxite', 'Unshapped Bauxite', 1, 0, 1),
('unwashed_bauxite', 'Unwashed Bauxite', 1, 0, 1),
('uncut_diamond', 'Uncut Diamond', 1, 0, 1),
('drill', 'Drill', 1, 0, 1),
('weapon_hammer', 'Hammer', 1, 0, 1);
```

{% endtab %}

{% tab title="Images" %}
[Download Link](https://drive.google.com/file/d/1Us_uDW3Nh0H6dlRDO8Zo8iVXY4B-g9Ep/view?usp=sharing)
{% endtab %}

{% tab title="qs-inventory" %}

```
['c4']                                = {['name'] = 'c4', ['label'] = 'C4', ['weight'] = 0, ['type'] = 'item', ['image'] = 'weapon_stickybomb.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'C4 For mining'},
['copper_bar']                        = {['name'] = 'copper_bar', ['label'] = 'Copper Bar', ['weight'] = 0, ['type'] = 'item', ['image'] = 'copper_bar.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Copper Bar made from melted copper ore'},
['gold_bar']                          = {['name'] = 'gold_bar', ['label'] = 'Gold Bar', ['weight'] = 0, ['type'] = 'item', ['image'] = 'gold_bar.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Gold Bar made from melted Gold ore'},
['i
 = 'Iron Bar made from melted Iron ore'},
['tin_bar']                           = {['name'] = 'tin_bar', ['label'] = 'Tin Bar', ['weight'] = 0, ['type'] = 'item', ['image'] = 'tin_bar.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Tin Bar made from melted Tin ore'},
['unshapped_copper']                  = {['name'] = 'unshapped_copper', ['label'] = 'Unshapped Copper', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unshapped_copper.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unshapped copper'},
['unshapped_gold']                    = {['name'] = 'unshapped_gold', ['label'] = 'Unshapped Gold', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unshapped_gold.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unshapped gold'},
['unshapped_iron']                    = {['name'] = 'unshapped_iron', ['label'] = 'Unshapped Iron', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unshapped_iron.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unshapped iron'},
['unshapped_tin']                     = {['name'] = 'unshapped_tin', ['label'] = 'Unshapped Tin', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unshapped_tin.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unshapped tin'},
['unwashed_copper']                   = {['name'] = 'unwashed_copper', ['label'] = 'Unwashed Copper', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unwashed_copper.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unwashed copper'},
['unwashed_gold']                     = {['name'] = 'unwashed_gold', ['label'] = 'Unwashed Gold', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unwashed_gold.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unwashed gold'},
['unwashed_iron']                     = {['name'] = 'unwashed_iron', ['label'] = 'Unwashed Iron', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unwashed_iron.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unwashed iron'},
['unwashed_tin']                      = {['name'] = 'unwashed_tin', ['label'] = 'Unwashed Tin', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unwashed_tin.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unwashed tin'},
['aquamarine_unshapped']              = {['name'] = 'aquamarine_unshapped', ['label'] = 'Aquamarine Unshapped', ['weight'] = 0, ['type'] = 'item', ['image'] = 'aquamarine_unshapped.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'aquamarine unshapped'},
['aquamarine']                        = {['name'] = 'aquamarine', ['label'] = 'Aquamarine', ['weight'] = 0, ['type'] = 'item', ['image'] = 'aquamarine.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'aquamarine'},
['greenberyl_unshapped']              = {['name'] = 'greenberyl_unshapped', ['label'] = 'Greenberyl Unshapped', ['weight'] = 0, ['type'] = 'item', ['image'] = 'greenberyl_unshapped.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'greenberyl unshapped'},
['greenberyl']                        = {['name'] = 'greenberyl', ['label'] = 'Green Beryl', ['weight'] = 0, ['type'] = 'item', ['image'] = 'greenberyl.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'greenberyl'},
['ruby_unshapped']                    = {['name'] = 'ruby_unshapped', ['label'] = 'Ruby Unshapped', ['weight'] = 0, ['type'] = 'item', ['image'] = 'ruby_unshapped.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'ruby unshapped'},
['ruby']                              = {['name'] = 'ruby', ['label'] = 'Ruby', ['weight'] = 0, ['type'] = 'item', ['image'] = 'ruby.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'ruby'},
['unwashed_stone']                    = {['name'] = 'unwashed_stone', ['label'] = 'Unwashed Stone', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unwashed_stone.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unwashed stone'},
['unshapped_coal']                    = {['name'] = 'unshapped_coal', ['label'] = 'Unshapped Coal', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unshapped_coal.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unshapped_coal'},
['coal']                              = {['name'] = 'coal', ['label'] = 'Coal', ['weight'] = 0, ['type'] = 'item', ['image'] = 'coal.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'coal'},
['ds_diamond']                        = {['name'] = 'ds_diamond', ['label'] = 'Diamond', ['weight'] = 0, ['type'] = 'item', ['image'] = 'ds_diamond.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'diamond'},
['unwashed_sulfur']                   = {['name'] = 'unwashed_sulfur', ['label'] = 'Unwashed Sulfur', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'unwashed_sulfur.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unwashed_sulfur'},
['unshapped_sulfur']                  = {['name'] = 'unshapped_sulfur', ['label'] = 'Ushapped Sulfur', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'unshapped_sulfur.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unshapped_sulfur'},
['sulfur_bar']                        = {['name'] = 'sulfur_bar', ['label'] = 'Sulfur', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'sulfur_bar.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'sulfur'},
['unwashed_lead']                     = {['name'] = 'unwashed_lead', ['label'] = 'Unwashed Lead', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'unwashed_lead.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unwashed_lead'},
['unshapped_lead']                    = {['name'] = 'unshapped_lead', ['label'] = 'Unshapped Lead', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'unshapped_lead.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Unshapped Lead'},
['lead_ore']                          = {['name'] = 'lead_ore', ['label'] = 'Lead Ore', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'lead_ore.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'lead ore'},
['bauxite']                           = {['name'] = 'bauxite', ['label'] = 'Bauxite', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'bauxite.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'bauxite'},
['unshapped_bauxite']                 = {['name'] = 'unshapped_bauxite', ['label'] = 'Unshapped Bauxite', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'unshapped_bauxite.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unshapped_bauxite'},
['unwashed_bauxite']                  = {['name'] = 'unwashed_bauxite', ['label'] = 'Unwashed Bauxite', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'unwashed_bauxite.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unwashed_bauxite'},
['uncut_diamond']                     = {['name'] = 'uncut_diamond', ['label'] = 'Uncut Diamond', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'uncut_diamond.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'uncut_diamond'},

```

{% endtab %}

{% tab title="ox-inventory" %}
add this to bottom of ox\_inventory/data/shops.lua

```lua
MiningFood = {
		name = 'Mining Food Shop',
		inventory = {
			{ name = 'sandwich', price = 10 },
			{ name = 'water_bottle', price = 10 },
		}, locations = {
			vec3(2920.3, 2647.94, 43.15),
		}
},

MiningTools = {
	name = 'Mining Tools Shop',
	inventory = {
		{ name = 'c4', price = 10 },
		{ name = 'drill', price = 10 },
		{ name = 'weapon_hammer', price = 10 },
	}, locations = {
		vec3(2949.01, 2751.78, 43.35),
	}
},
```

{% endtab %}
{% endtabs %}


# ds-electrician

Electrician Job for QBCore & ESX

<figure><img src="https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2FRQpYn9CremWkxI8dxsH1%2Felejob.png?alt=media&amp;token=fa660f79-16ea-4cd6-861f-dc97c0ba450b" alt=""><figcaption></figcaption></figure>

[<mark style="color:purple;">**View on Tebex**</mark>](https://dolajiscripts.com/package/5049720) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**CFX Fourm Post**</mark>](https://forum.cfx.re/t/paid-qbcore-esx-cave-mining-realistic-unique-mining-on-fivem/4836677) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Youtube Video**</mark>](https://www.youtube.com/watch?v=IFxTmacY4d8) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Discord**</mark>](https://discord.gg/dolaji-s-scripts-952174929518936114)

## Installaction

### Dependencies

| Dependency               | Download                                                   | Description                                                  |
| ------------------------ | ---------------------------------------------------------- | ------------------------------------------------------------ |
| calibrate-distributor    | [Link](https://github.com/dolaji-op/calibrate-distributor) | minigame to job                                              |
| qb-target (**Optional**) | [Link](https://github.com/qbcore-framework/qb-target)      | you need eye target script if you don't want to use drawtext |

### Start

1. Extract `ds-electrician.zip` and place it into your resource folder.
2. Install and ensure [dependencies](#dependencies) for the resource.
3. Setup`config.lua` (⚠️see [#CONFIGURATION](#configuration) for instructions).&#x20;
4. Add`ensure ds-electrician` to your server start config (place it anywhere below the dependency & framework resources).

### Configuration

{% hint style="warning" %}
Please go through **all** configurable options & settings in `config.lua` and configure them to your server's preferences.

Also please read the comments at the end of each line, for a brief information on what the option does.&#x20;
{% endhint %}

### Add Job (Optional)

{% tabs %}
{% tab title="QBCore" %}

#### Open `qb-core/shared/jobs.lua`and add this lines

```lua
['electrician'] = {
    label = 'Electrician',
    defaultDuty = true,
    offDutyPay = false,
    grades = {
        ['0'] = {
            name = 'Recruit',
            payment = 10
        },
    },
},
```

{% endtab %}

{% tab title="ESX" %}

#### Run this query in database

```sql
INSERT INTO jobs (name, label, whitelisted) VALUES ('electrician', 'Electrician', 0);
INSERT INTO job_grades (job_name, grade, name, label, salary, skin_male, skin_female) VALUES ('electrician', 0, 'recruit', 'Recruit', 20, '{}', '{}');
```

{% endtab %}
{% endtabs %}

### Add Items

{% tabs %}
{% tab title="QBCore" %}

#### Open `qb-core/shared/items.lua`and add this lines

<pre class="language-lua"><code class="lang-lua"><strong>["repairtool"] = {
</strong>    ["name"] = "repairtool",
    ["label"] = "Repair Tool",
    ["weight"] = 0,
    ["type"] = "item",
    ["image"] = "repairtool.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = "Repair tool for Electrician"
},

["eletool"] = {
    ["name"] = "eletool",
    ["label"] = "Electrician Tools",
    ["weight"] = 0,
    ["type"] = "item",
    ["image"] = "repairtool.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = "Tool box for Electrician"
},
</code></pre>

{% endtab %}

{% tab title="ESX" %}

#### Run this query in database

```sql
INSERT INTO items (name, label, weight, rare, can_remove) VALUES ('repairtool', 'Repair Tool', 1, 0, 1), ('eletool', 'Electrician Tool', 2, 0, 1);
```

{% endtab %}

{% tab title="Images" %}
[Download Link](https://cdn.discordapp.com/attachments/932109362623832146/1126059213836259398/ds-electrician.zip)
{% endtab %}
{% endtabs %}


# weazel-news

A complete FiveM Weazel News system with article management, staff chat, employee roles, analytics, and public news portal. Supports QBCore, ESX, and Qbox.

<figure><img src="https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2Fi5FKl2JJWqknl2IeqbFB%2Fweazelnews.png?alt=media&amp;token=f29e004e-8d8d-471a-93ed-bddf7f85617f" alt=""><figcaption></figcaption></figure>

[<mark style="color:purple;">**View on Tebex**</mark>](https://dolajiscripts.com/script/weazel-news-portal-and-newspaper)  <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Youtube Video**</mark>](https://youtu.be/00ftZsm6ybY) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Discord**</mark>](https://discord.gg/dolaji-s-scripts-952174929518936114)

### ⚙️ Dependencies

* QBCore, ESX, or Qbox framework
* oxmysql
* screenshot-basic

### 📦 Installation

1. **Purchase and Download**
   * Extract the resource to your server's resources folder
   * Rename the folder to `weazel-news`
2. **Database Setup**

   ```sql
   -- Import the provided SQL file
    SQL/weazel-news.sql
   ```
3. **Server Configuration**\
   Add to your `server.cfg`:

   ```cfg
   ensure oxmysql
   ensure screenshot-basic
   ensure weazel-news
   ```
4. **Framework Configuration**

   * QBCore: Add job to `qb-core/shared/jobs.lua`

   ```lua
   ['reporter'] = {
      label = 'Weazel News',
      defaultDuty = true,
      grades = {
        ['0'] = { name = 'Reporter', payment = 50 },
        ['1'] = { name = 'Senior Reporter', payment = 75 },
        ['2'] = { name = 'Editor', payment = 100 },
        ['3'] = { name = 'Chief Editor', payment = 125 },
        ['4'] = { name = 'Chief', isboss = true, payment = 125 },
      },
      },
   ```

   * ESX: Add job to your jobs database

   ```sql
   INSERT INTO `jobs` (`name`, `label`) VALUES ('reporter', 'Weazel News');
   INSERT INTO `job_grades` (`job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
   ('reporter', 0, 'reporter', 'Reporter', 50, {}, {}),
   ('reporter', 1, 'senior', 'Senior Reporter', 75, {}, {}),
   ('reporter', 2, 'editor', 'Editor', 100, {}, {}),
   ('reporter', 3, 'chief_editor', 'Chief Editor', 125, {}, {}),
   ('reporter', 4, 'boss', 'Chief', 125, {}, {}),
   ```

   * Qbox: Add job to `qbx_core/shared/jobs.lua`

   ```lua
   ['reporter'] = {
      label = 'Weazel News',
      defaultDuty = true,
      offDutyPay = false,
      grades = {
        [0] = { name = 'Reporter', payment = 50 },
        [1] = { name = 'Senior Reporter', payment = 75 },
        [2] = { name = 'Editor', payment = 100 },
        [3] = { name = 'Chief Editor', payment = 125 },
        [4] = { name = 'Chief', isboss = true, payment = 125 },
      },
      },
   ```
5. **Discord Webhook**
   * Create a webhook in your Discord server
   * Update `Config.DiscordWebhook` in `config.lua`

### ⚡ Commands

* `/weazel` - Open MDT (Staff only)
* `/newspaper` - Open public news interface (All players)

### 📝 License

This is a paid resource. Reselling or sharing is strictly prohibited.

### 🔄 Updates

* Regular updates and maintenance
* Bug fixes and security patches
* Feature requests consideration
* Framework compatibility updates

### ⚠️ Important Notes

* Requires FiveM build 2802 or higher
* Minimum MySQL version: 5.7

For additional support or custom development, contact us through our Discord.

### Language Configuration

The translation files are located in the `web/locales` directory. To modify translations:

1. Edit the language files in `web/locales` (e.g., `en.js`)

### 🆘 Support

For support, join our Discord server: \[[Discord](https://discord.gg/vhF9ke3hJG)]


# ID Card

Documentation relating to the ds-idcard.

{% tabs %}
{% tab title="BUY" %}
[Buy the script](https://dolajiscripts.com/script/redm-id-card)
{% endtab %}

{% tab title="Preview" %}
<https://www.youtube.com/watch?v=kMOGG7YtFTE>
{% endtab %}
{% endtabs %}

### 1. Installation[​](https://docs.jumpon-studios.com/RedM/camp-builder#_1-installation) <a href="#id-1-installation" id="id-1-installation"></a>

\
ds-idcard works on all frameworks compatible with jo\_libs ([the list](https://docs.jumpon-studios.com/jo_libs/)).

To install ds-idcard:

* Download the library: [jo\_libs](https://github.com/Jump-On-Studios/RedM-jo_libs/releases/latest/download/jo_libs.zip)
* Unzip the folder and drop it in your resource folder
* Download ds-idcard from your [keymaster](https://keymaster.fivem.net/asset-grants?search=hairdresser)
* Unzip the folder and drop it in your resource folder
* Add this ensure in your server.cfg
  * `ensure jo_libs`
  * `ensure ds-idcard`
* add `idcard` item in your items

### 2. Usage[​](https://docs.jumpon-studios.com/RedM/clothing-store#_2-usage) <a href="#id-2-usage" id="id-2-usage"></a>

Go on the Identity Creation (blip on the map) to get the prompt. Press the key to open the book.

### 3. Config.lua <a href="#id-3-config-lua" id="id-3-config-lua"></a>

<details>

<summary>Config.lua</summary>

```lua
Config = Config or {}

Config.Locations = {
    [1] = {
        coords = vector3(2732.16, -1401.94, 46.18),
        pedCoords = vector3(2732.16, -1401.94, 45.28),
        pedHeading = 27.96,
	distancePrompt = 2.0,
        EnablePrompt = true,
        EnableJob = true,
        job = 'shariff',
    },
}

Config.Ped = {
    enable = true,
    pedModel = `s_m_m_ambientblwpolice_01`,
}

Config.Blip = {
    enable = true,
    BlipName = "Identity Creation",
    BlipSprite = `blip_ambient_vip`,
}

Config.Prompt = {
    key = 'INPUT_FRONTEND_ACCEPT',
    groupName = 'Identity Creation',
    keyName = "Open Creator"
}
```

</details>

### 4. For developers <a href="#id-4-for-developers" id="id-4-for-developers"></a>

#### Events <a href="#events" id="events"></a>

**Open the Identity Creator (Client)**

```lua
TriggerEvent("ds-idcard:openCreator")
```

[​](https://docs.jumpon-studios.com/RedM/clothing-store#_4-for-developers)

\ <br>


