Adding Items
These items are required for the script to work as they are used when giving rewards and tools. If you choose to use different items then you can change the rewards and tools in the config file found inside the mining script.
If you are using the items setup by default then add these items into ox_inventory's data/items.lua. Images need to be provided by you and go in web/images and need to be named the same as the items are.
['jackhammer'] = {
label = 'Jack Hammer',
weight = 10000,
stack = false,
close = true,
},
['pickaxe'] = {
label = 'Pickaxe',
weight = 2500,
stack = false,
close = true,
},
['shovel'] = {
label = 'Shovel',
weight = 1500,
stack = false,
close = true,
},
['full_bucket'] = {
label = 'Full Bucket',
weight = 1000,
stack = true,
close = false,
},
['empty_bucket'] = {
label = 'Empty Bucket',
weight = 500,
stack = true,
close = false,
},
['gem_rock'] = {
label = 'Gem Rock',
weight = 1,
stack = true,
close = false,
},
['ruby'] = {
label = 'Ruby',
weight = 0.1,
stack = true,
close = false,
},
['sapphire'] = {
label = 'Sapphire',
weight = 0.1,
stack = true,
close = false,
},
['emerald'] = {
label = 'Emerald',
weight = 0.1,
stack = true,
close = false,
},
```Last updated