Coder Social home page Coder Social logo

jim-mining's Introduction

jim-mining

FiveM Custom QBCORE mining script by me from scratch

  • Highly customisable via config.lua

    • Locations are easily changeable/removable
  • Features several ways to get materials

    • Gold Panning - Search specified streams for gold and silver, or trash
    • Mining - Mine to get stones that can be wash or cracked for materials
    • Stone Washing - Wash stone to find rare gems or gold
    • Stone Cracking - Crack open stones to find ores for crafting materials
  • Customisable points for mining, stone cracking and gold panning

    • Add a Location for an ore to the config and it will use this location for both qb-target and a prop
    • Can place them anywhere, doesn't have to be just one mining location
    • I opted for a drilling animation as opposed to the pickaxe swinging
    • Nicely animated for better immersion
  • NPC's spawn on the blip locations

    • These locations can also give third eye and select ones have context menus for selling points
  • NPC's and ore's Spawn at Mineshaft + Quarry so your players can go to either

  • Features simplistic built in crafting that uses recipes in the config.lua

  • Features Jewel Cutting bench as an attempt to add more than just gold bars and such to sell

    • You can use your gold bars and jewels to craft other items to sell to a Jewellery Buyer

Video Previews

Custom Items & Images

General

  • Should be easy to understand and add/remove items you want or not

Dependencies

  • qb-menu - for the menus
  • qb-target - for the third eye selection

How to install

Minimal

If you want to use your own items or repurpose this script:

  • Place in your resources folder
  • add the following code to your server.cfg/resources.cfg below [qb]
ensure jim-mining

If you want to use my items then:

  • Add the images to your inventory folder

  • Put these lines in your items.lua

	-- jim-mining stuff
["stone"] 		 	 			 = {["name"] = "stone",           				["label"] = "Stone",	 				["weight"] = 2000, 	    ["type"] = "item", 		["image"] = "stone.png", 				["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "Stone woo"},

["uncut_emerald"] 				 = {["name"] = "uncut_emerald", 			  	["label"] = "Uncut Emerald", 			["weight"] = 100, 		["type"] = "item", 		["image"] = "uncut_emerald.png", 		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "A rough Emerald"},
["uncut_ruby"] 					 = {["name"] = "uncut_ruby", 			  	  	["label"] = "Uncut Ruby", 				["weight"] = 100, 		["type"] = "item", 		["image"] = "uncut_ruby.png", 			["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "A rough Ruby"},
["uncut_diamond"] 				 = {["name"] = "uncut_diamond", 			  	["label"] = "Uncut Diamond", 			["weight"] = 100, 		["type"] = "item", 		["image"] = "uncut_diamond.png", 		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "A rough Diamond"},
["uncut_sapphire"] 				 = {["name"] = "uncut_sapphire", 			  	["label"] = "Uncut Sapphire", 			["weight"] = 100, 		["type"] = "item", 		["image"] = "uncut_sapphire.png", 		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "A rough Sapphire"},

["emerald"] 					 = {["name"] = "emerald", 			  	  		["label"] = "Emerald", 					["weight"] = 100, 		["type"] = "item", 		["image"] = "emerald.png", 				["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "A Emerald that shimmers"},
["ruby"] 						 = {["name"] = "ruby", 			  	  			["label"] = "Ruby", 					["weight"] = 100, 		["type"] = "item", 		["image"] = "ruby.png", 				["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "A Ruby that shimmers"},
["diamond"] 					 = {["name"] = "diamond", 			  	  		["label"] = "Diamond", 					["weight"] = 100, 		["type"] = "item", 		["image"] = "diamond.png", 				["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "A Diamond that shimmers"},
["sapphire"] 					 = {["name"] = "sapphire", 			  	  		["label"] = "Sapphire",					["weight"] = 100, 		["type"] = "item", 		["image"] = "sapphire.png", 			["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "A Sapphire that shimmers"},

["gold_ring"] 					 = {["name"] = "gold_ring", 			  	  	["label"] = "Gold Ring", 				["weight"] = 200, 		["type"] = "item", 		["image"] = "gold_ring.png", 			["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["diamond_ring"] 				 = {["name"] = "diamond_ring", 			  	  	["label"] = "Diamond Ring", 			["weight"] = 200, 		["type"] = "item", 		["image"] = "diamond_ring.png", 		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["ruby_ring"] 					 = {["name"] = "ruby_ring", 			  	  	["label"] = "Ruby Ring", 				["weight"] = 200, 		["type"] = "item", 		["image"] = "ruby_ring.png", 			["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["sapphire_ring"] 				 = {["name"] = "sapphire_ring", 			  	["label"] = "Sapphire Ring", 			["weight"] = 200, 		["type"] = "item", 		["image"] = "sapphire_ring.png", 		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["emerald_ring"] 				 = {["name"] = "emerald_ring", 			  	  	["label"] = "Emerald Ring", 			["weight"] = 200, 		["type"] = "item", 		["image"] = "emerald_ring.png", 		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},

["silver_ring"] 				 = {["name"] = "silver_ring", 			  		["label"] = "Silver Ring", 				["weight"] = 200, 		["type"] = "item", 		["image"] = "silver_ring.png", 			["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["diamond_ring_silver"] 		 = {["name"] = "diamond_ring_silver", 		  	["label"] = "Diamond Ring Silver", 		["weight"] = 200, 		["type"] = "item", 		["image"] = "diamond_ring_silver.png", 	["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["ruby_ring_silver"] 			 = {["name"] = "ruby_ring_silver", 			  	["label"] = "Ruby Ring Silver", 		["weight"] = 200, 		["type"] = "item", 		["image"] = "ruby_ring_silver.png", 	["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["sapphire_ring_silver"] 		 = {["name"] = "sapphire_ring_silver", 		 	["label"] = "Sapphire Ring Silver", 	["weight"] = 200, 		["type"] = "item", 		["image"] = "sapphire_ring_silver.png", ["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["emerald_ring_silver"] 		 = {["name"] = "emerald_ring_silver", 		  	["label"] = "Emerald Ring Silver", 		["weight"] = 200, 		["type"] = "item", 		["image"] = "emerald_ring_silver.png", 	["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},

["goldchain"] 				 	 = {["name"] = "goldchain", 			  	  	["label"] = "Golden Chain", 			["weight"] = 200, 		["type"] = "item", 		["image"] = "goldchain.png", 			["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["diamond_necklace"] 			 = {["name"] = "diamond_necklace", 			  	["label"] = "Diamond Necklace", 		["weight"] = 200, 		["type"] = "item", 		["image"] = "diamond_necklace.png", 	["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["ruby_necklace"] 				 = {["name"] = "ruby_necklace", 			  	["label"] = "Ruby Necklace", 			["weight"] = 200, 		["type"] = "item", 		["image"] = "ruby_necklace.png", 		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["sapphire_necklace"] 			 = {["name"] = "sapphire_necklace", 			["label"] = "Sapphire Necklace", 		["weight"] = 200, 		["type"] = "item", 		["image"] = "sapphire_necklace.png", 	["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["emerald_necklace"] 			 = {["name"] = "emerald_necklace", 			  	["label"] = "Emerald Necklace", 		["weight"] = 200, 		["type"] = "item", 		["image"] = "emerald_necklace.png", 	["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},

["silverchain"] 				 = {["name"] = "silverchain", 			  	 	["label"] = "Silver Chain", 			["weight"] = 200, 		["type"] = "item", 		["image"] = "silverchain.png", 			["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["diamond_necklace_silver"] 	 = {["name"] = "diamond_necklace_silver", 		["label"] = "Diamond Necklace Silver", 	["weight"] = 200, 		["type"] = "item", 		["image"] = "diamond_necklace_silver.png", 	["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["ruby_necklace_silver"] 		 = {["name"] = "ruby_necklace_silver", 			["label"] = "Ruby Necklace Silver", 	["weight"] = 200, 		["type"] = "item", 		["image"] = "ruby_necklace_silver.png", 		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["sapphire_necklace_silver"] 	 = {["name"] = "sapphire_necklace_silver", 		["label"] = "Sapphire Necklace Silver", ["weight"] = 200, 		["type"] = "item", 		["image"] = "sapphire_necklace_silver.png", 	["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["emerald_necklace_silver"] 	 = {["name"] = "emerald_necklace_silver", 		["label"] = "Emerald Necklace Silver", 	["weight"] = 200, 		["type"] = "item", 		["image"] = "emerald_necklace_silver.png", 	["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},

["goldearring"] 				 = {["name"] = "goldearring", 				  	["label"] = "Golden Earrings", 			["weight"] = 200, 		["type"] = "item", 		["image"] = "gold_earring.png", 		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["diamond_earring"] 			 = {["name"] = "diamond_earring", 			  	["label"] = "Diamond Earrings", 		["weight"] = 200, 		["type"] = "item", 		["image"] = "diamond_earring.png", 		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["ruby_earring"] 				 = {["name"] = "ruby_earring", 			  		["label"] = "Ruby Earrings", 			["weight"] = 200, 		["type"] = "item", 		["image"] = "ruby_earring.png", 		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["sapphire_earring"] 			 = {["name"] = "sapphire_earring", 				["label"] = "Sapphire Earrings", 		["weight"] = 200, 		["type"] = "item", 		["image"] = "sapphire_earring.png", 	["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["emerald_earring"] 			 = {["name"] = "emerald_earring", 			  	["label"] = "Emerald Earrings", 		["weight"] = 200, 		["type"] = "item", 		["image"] = "emerald_earring.png", 		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},

["silverearring"] 				 = {["name"] = "silverearring", 				["label"] = "Silver Earrings", 			["weight"] = 200, 		["type"] = "item", 		["image"] = "silver_earring.png", 		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["diamond_earring_silver"] 		 = {["name"] = "diamond_earring_silver", 		["label"] = "Diamond Earrings Silver", 	["weight"] = 200, 		["type"] = "item", 		["image"] = "diamond_earring_silver.png", 		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["ruby_earring_silver"] 		 = {["name"] = "ruby_earring_silver", 			["label"] = "Ruby Earrings Silver", 	["weight"] = 200, 		["type"] = "item", 		["image"] = "ruby_earring_silver.png", 		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["sapphire_earring_silver"] 	 = {["name"] = "sapphire_earring_silver", 		["label"] = "Sapphire Earrings Silver", ["weight"] = 200, 		["type"] = "item", 		["image"] = "sapphire_earring_silver.png", 	["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["emerald_earring_silver"] 		 = {["name"] = "emerald_earring_silver", 		["label"] = "Emerald Earrings Silver", 	["weight"] = 200, 		["type"] = "item", 		["image"] = "emerald_earring_silver.png", 		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},

["carbon"] 					 	 = {["name"] = "carbon", 			  	  		["label"] = "Carbon", 					["weight"] = 1000, 		["type"] = "item", 		["image"] = "carbon.png", 				["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "Carbon, a base ore."},
["ironore"] 					 = {["name"] = "ironore", 			  	  		["label"] = "Iron Ore", 				["weight"] = 1000, 		["type"] = "item", 		["image"] = "ironore.png", 				["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "Iron, a base ore."},
["copperore"] 					 = {["name"] = "copperore", 			  	  	["label"] = "Copper Ore", 				["weight"] = 1000, 		["type"] = "item", 		["image"] = "copperore.png", 			["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "Copper, a base ore."},
["goldore"] 					 = {["name"] = "goldore", 			  	  		["label"] = "Gold Ore", 				["weight"] = 1000, 		["type"] = "item", 		["image"] = "goldore.png", 				["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "Gold Ore"},
["silverore"] 					 = {["name"] = "silverore", 			  	  	["label"] = "Silver Ore", 				["weight"] = 1000, 		["type"] = "item", 		["image"] = "silverore.png", 			["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "Silver Ore"},

["goldingot"] 					 = {["name"] = "goldingot", 			  	  	["label"] = "Gold Ingot", 				["weight"] = 1000, 		["type"] = "item", 		["image"] = "goldingot.png", 			["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},
["silveringot"] 				 = {["name"] = "silveringot", 			  	  	["label"] = "Silver Ingot", 			["weight"] = 1000, 		["type"] = "item", 		["image"] = "silveringot.png", 			["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = ""},

["pickaxe"] 					 = {["name"] = "pickaxe", 			  	  		["label"] = "Pickaxe", 					["weight"] = 1000, 		["type"] = "item", 		["image"] = "pickaxe.png", 				["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "" },
["miningdrill"] 				 = {["name"] = "miningdrill", 			  	  	["label"] = "Mining Drill", 			["weight"] = 1000, 		["type"] = "item", 		["image"] = "miningdrill.png", 			["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "" },
["mininglaser"] 				 = {["name"] = "mininglaser", 			  	  	["label"] = "Mining Laser", 			["weight"] = 900, 		["type"] = "item", 		["image"] = "mininglaser.png", 			["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "" },
["drillbit"] 					 = {["name"] = "drillbit", 			  	  		["label"] = "Drill Bit", 				["weight"] = 10, 		["type"] = "item", 		["image"] = "drillbit.png", 			["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "" },

["goldpan"] 					 = {["name"] = "goldpan", 			  	  		["label"] = "Gold Panning Tray", 		["weight"] = 10, 		["type"] = "item", 		["image"] = "goldpan.png", 				["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "" },

["bottle"] 						 = {["name"] = "bottle", 			  	  		["label"] = "Empty Bottle", 			["weight"] = 10, 		["type"] = "item", 		["image"] = "bottle.png", 				["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "A glass bottle"},
["can"] 						 = {["name"] = "can", 			  	  			["label"] = "Empty Can", 				["weight"] = 10, 		["type"] = "item", 		["image"] = "can.png", 					["unique"] = false, 	["useable"] = false, 	["shouldClose"] = false, ["combinable"] = nil,   ["description"] = "An empty can, good for recycling"},

jim-mining's People

Contributors

abrahammoody avatar dertweaky avatar holidayy95 avatar i-kulgu avatar iplayer1337fivem avatar jimathy avatar k2xp avatar vosscat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jim-mining's Issues

Player lockup

When you are mining and attempt to open your inventory, the player will finish his animation and then lockup, forcing the player to close their client to fix the issue..

How to duplicate:
Not sure if it is only the pickaxe but that is what i was using.

-Use pickaxe on a rock, use the open inv hotkey.

Problems installing the script

I have followed everything as in the readme and let the script start only after the [qb] folder

nevertheless the script does not work as it should and there are always timeout errors in the f8 console and the blips always alternate after each restart.

what i want to say with this is sometimes the quarry blip is displayed (where the functions then also don't work)
and sometimes the melt blip and then the quarry blip is gone again

Timeout errors:

[ 82219] [b2699_GTAProce] MainThrd/ ^5Debug^7: ^3LoadModel^7: ^2Timed out loading model ^7'^6k4mb1_leadore2^7'
[ 99797] [b2699_GTAProce] MainThrd/ ^5Debug^7: ^3LoadModel^7: ^2Timed out loading model ^7'^6k4mb1_emptyore2^7'
[ 115656] [b2699_GTAProce] MainThrd/ ^5Debug^7: ^3LoadModel^7: ^2Timed out loading model ^7'^6k4mb1_crystalblue^7'
[ 131938] [b2699_GTAProce] MainThrd/ ^5Debug^7: ^3LoadModel^7: ^2Timed out loading model ^7'^6k4mb1_crystalempty^7'
[ 149578] [b2699_GTAProce] MainThrd/ ^5Debug^7: ^3LoadModel^7: ^2Timed out loading model ^7'^6k4mb1_tinore2^7'
[ 167547] [b2699_GTAProce] MainThrd/ ^5Debug^7: ^3LoadModel^7: ^2Timed out loading model ^7'^6k4mb1_emptyore2^7'
[ 186141] [b2699_GTAProce] MainThrd/ ^5Debug^7: ^3LoadModel^7: ^2Timed out loading model ^7'^6k4mb1_copperore2^7'
[ 204891] [b2699_GTAProce] MainThrd/ ^5Debug^7: ^3LoadModel^7: ^2Timed out loading model ^7'^6k4mb1_emptyore2^7'
[ 222906] [b2699_GTAProce] MainThrd/ ^5Debug^7: ^3LoadModel^7: ^2Timed out loading model ^7'^6k4mb1_crystalred^7'
[ 241531] [b2699_GTAProce] MainThrd/ ^5Debug^7: ^3LoadModel^7: ^2Timed out loading model ^7'^6k4mb1_crystalempty^7'

Issue Using Smelter

Im having an issue using the smelter. All the other stations work fine its just the smelter that wont load the menu and throws up the following in the F8 console:

https://i.imgur.com/Z7q9TQO.png

I've done a fresh install of your most recent version and its still happening

Falling threw map

So i noticed sometimes when people goldpan and also cutting/making jewls it makes the users fall threw the map, they are still there in there eyes but in other peoples eyes they keep falling threw then popping back up, also many people have also said they can not talk or hear others once they fall threw the map.

Also a suggestion maybe add more props (drill benches) for cracking / cutting as we have up to 10 people inside each other sometimes using the drilles :P

Cheers bro.

basically duping of items

if you are going near crafting table to craft gold rings you can only use 1 goldbar to make unlimited rings just press tab instantly after selecting the thing you want to craft and then drag the stuff to ground ! this glitch works in everywhere progressbar is used but not at selling because in selling item is removed first and then progressbar comes out but in crafting / mining / even melting this works just press tab instantly after selecting

help with qs-inventory

any help on getting this script to fully work with qs-inventory? particularly the mining shop

ESX

Hey i love your script but i have an esx server i s there a chance that you can write it for both frameworks

Config.JimShops typo

For non ox inventories the line in the config has a typo on line 11. Should read 'JimShop' not 'JimShops'

;)

Mining

While im mining the laser never stops cutting and no minerals come out. i made changes to any files.

not sure but game crashed in foundry

[ script:jim-mining] SCRIPT ERROR: @jim-mining/server.lua:24: attempt to index a nil value
[ script:jim-mining] > TriggerCallback (@qb-core/server/functions.lua:219)
[ script:jim-mining] > handler (@qb-core/server/events.lua:119)
[ script:qb-core] SCRIPT ERROR: error object is not a string

Script returning nill value for vehicle class

All trailers return a nill value when attempting to repair, upgrade, etc. As well as returning class numbers for known vehicles that are not standard classes in GTA 5, such as 50.

Breaking pickaxe

I have people complain that the bits, pickaxes break to fast.
They said like around 6 per 1 a 2 nodes.

Rocks Not able to mine after 2 mines

im not sure why, but the first time you mine the rock it will break, the second time it will not and then the rock becomes unmineable again until the person leaves the city and flies back in again, im not sure why this could be but unless you have a set place with 100s of rocks to make use off, you can only mine them 2s - 0 errors etc

f8 Console Area - When mining stones

I am receiving a f8 console error when I try and mine the stones, I have all the dependencies and properly installed it. Could I get some help please

Portuguese Translation File

Greetings, i have made a translation file pt.lua for jim-mining, dont know how to put a pull request for a new file, so here it goes if you wish to use it.

Loc["pt"] = { error = { ["cancelled"] = "Cancelado!", ["no_drill"] = "Você não tem uma furadeira", ["no_drill_bit"] = "Você não tem uma broca", ["no_stone"] = "Você não tem nenhuma pedra", ["no_ingredients"] = "Você não tem os ingredientes corretos", ["dont_have"] = "Você não tem nenhum ", }, success = {}, info = { ["blip_mining"] = "Mineração", ["browse_store"] = "Ver loja", ["use_smelter"] = "Usar Fundição", ["sell_ores"] = "Vender Minérios", ["jewelcut"] = "Use bancada de corte de joias", ["jewelbuyer"] = "Fale com o comprador de joias", ["crackingbench"] = "Usar bancada de rachaduras", ["mine_ore"] = "Mine ore", ["drilling_ore"] = "Minério de Perfuração..", ["cracking_stone"] = "Pedra quebrada..", ["smelting"] = "Fundição ", ["cutting"] = "Cutting ", ["header_oresell"] = "Venda de minério", ["oresell_txt"] = "Vender Lotes de Minério por dinheiro", ["close"] = "✘ Fechar", ["return"] = "⬅ Retornar", ["copper_ore"] = "Minerar Cobre", ["iron_ore"] = "Minerar Ferro", ["gold_ore"] = "Minerar Ouro", ["carbon"] = "Carbono", ["emeralds"] = "Esmeralda", ["uncut_emerald"] = "Esmeralda Bruta", ["rubys"] = "Rubys", ["uncut_ruby"] = "Rubys Nruto", ["diamonds"] = "Diamante", ["uncut_diamond"] = "Diamante Bruto", ["sapphires"] = "Safira", ["uncut_sapphire"] = "Safira Bruta", ["rings"] = "Aneis", ["gold_rings"] = "Anéis de Ouro", ["diamond_rings"] = "Anéis de Diamante", ["emerald_rings"] = "Anéis de Esmeralda", ["ruby_rings"] = "Anéis de Ruby", ["sapphire_rings"] = "Anéis de Safira", ["necklaces"] = "Colares", ["gold_chains"] = "Corrente de Ouro", ["10kgold_chain"] = "Corrente de Ouro 10K", ["diamond_neck"] = "Corrente de Diamante", ["emerald_neck"] = "Corrente de Esmeralda", ["ruby_neck"] = "Corrente de Ruby", ["sapphire_neck"] = "Corrente de Safira", ["smelter"] = "Fundidora", ["smelt_ores"] = "Fundir minérios em materiais utilizáveis", ["sell_jewel"] = "Venda suas joias aqui", ["see_options"] = "Veja todas as opções de venda", ["jewel_buyer"] = "Comprador de joias", ["sell_all"] = "Vender tudo por $", ["sell_each"] = "cada", ["craft_bench"] = "Bancada de joalheria", ["req_drill_bit"] = "Requer furadeira e broca", ["gem_cut"] = "Corte de gemas", ["gem_cut_section"] = "Vá para a seção de corte de gemas", ["make_ring"] = "Fazer anéis", ["ring_craft_section"] = "Vá para a seção de criação de anéis", ["make_neck"] = "Fazer colares", ["neck_craft_section"] = "Vá para a Seção de Criação de Colar", }, warning = {}, }

makePed and makeBlip

This are throwing errors, I have looked it over and I am not sure what I am missing.

image

not an issue but an ask

i was wondering if it would be possible to be able to resmelt your gold chain/rings for gold bars? im not sure how it would look but

Crafting = {}
Crafting.SmeltMenu = {
[1] = { ["copper"] = { ["copperore"] = 2 } },
[2] = { ["goldbar"] = { ["goldore"] = 2 } or { ["goldchain"] = 2 } or { ["10kgoldchain"] = 1 } or { ["goldring"] = 4 } },
[3] = { ["iron"] = { ["ironore"] = 2 } },
[4] = { ["steel"] = { ["ironore"] = 2, ["carbon"] = 1 } },

shared and png issue

['diamond_ring']
['goldchain']
you might want to change or let people know to remove the other instance of these two. as there in by default.

And with your 10ct-gold-chain.png shouldn't it be 10kgoldchain.png

issue

qb target doesn't work on the peds

cant third eye rocks

i recently updated my inventory from QB to Quasar aka QS right after i did that and moved everything over Minning stopped working all my shops and everything are still there and i can smelt cut etc. if i add them into the inventory it just won't allow me to mine with any of the items is there a way to fix this?

copper issue

the error you get when you use the smelter, to do copper, you don't get the message to say you don't have any and when you do have copper it gives you 3 back, so i had 5 and then i had 8
and it does nothing if you have copper ore.

[      script:qb-core] (nil stack trace)SCRIPT ERROR: @jim-mining/server.lua:7: bad argument #1 to 'pairs' (table expected, got number)
[   script:jim-mining] > ref (@jim-mining/server.lua:7)
[   script:jim-mining] > TriggerCallback (@qb-core/server/functions.lua:221)
[   script:jim-mining] > handler (@qb-core/server/events.lua:115)
[      script:qb-core] SCRIPT ERROR: error

no mining option on rocks.

I even tried updating qb target.... I can target ped shop no problem but the ore/rocks dont show any option to mine like they used to.

been like this for over a month now. SOS

I remain bent over while washing stone

I am washing stone and my character won't stop bending over after the stone is washed. I am unable to move until I hit CTRL a couple of times to change my stance. Also doing any other emote and then canceling will fix it. Other than that, I have not found a way.

I am able to reproduce the problem, but there are no errors in F8 or the console logs.

By "bent over", he bends at the waist for about 5 seconds, stands straight up and then goes back to bending over like he is in a loop.

During a natural loop, you can hit ESC and cancel the action of washing and that will work for canceling the actual action but your model will still remain "washing".

just lost

i have put mining in to the city and its only loaded the blip for the quarry but no ped the rocks are there

the smelter has loaded in with peds but does not have the working tools in shop to go mining, it has food and torch

the mining shaft is open but no ped so no shop and no blip for it

could you help me please

sound of instrument

a great scenario, for complete beauty there is not enough sound of the instrument when you work with it in a mine or quarry, is it possible to add it?

Feature.

Can you make it so blips only show if you have the job you have added into the config and get removed if you change jobs?

Jewellery Crafting Bench Issue.

I get 1 error code when I press return at the gem cutting station, It closes the whole menu down instead of returning to the Jewellery Crafting Bench.

SCRIPT ERROR: @jim-mining/client.lua:585: attempt to index a nil value (local 'data')

Kick for Duping Bug

When you accidentally try and craft jewellery or cut a gem which you do not have you will be kicked for attempting duping.

The kick for attempt at duping also occurs when you try and smelt more than one item at a time as well.

LUA Injector

Cheater can easy spawn item with these event.

  • jim-mining:MineReward
  • jim-mining:CrackReward
  • jim-mining:WashReward
  • jim-mining:PanReward

Attempt to index a nil value (field '?') and QBCore.Shared errors

Hey mate, just came across your script, thank you very much, first of all, it's great and especially for FREE. Though not a game-breaking bug I have some feedback for you. The first one is (Attempt to index a nil value (field '?').

And the 2nd one is an error about QBCore.Shared.Items. (imgs attached)

hhhh
Screenshot_1

[QBcore] Smelthing Menu

Hi there.
i'm using server version 5546

I've recently installed your script and the smelting doesn't appear to be working.
i'm constantly getting this error

script:jim-mining | SCRIPT ERROR: @jim-mining/client.lua:411: attempt to index a nil value (field '?')
script:jim-mining | > handler (@jim-mining/client.lua:411)
script:jim-mining | > handler (@qb-core/client/events.lua:175)

any assistance in resolving this issue would be much appreciated :)

cant seem to mine.

i have no errors server side or client side. i can go buy the laser drill and pickaxe but when i go inside to third eye the stones it doesnt turn blue or allow me to do anything. could you possibly help me with this issue please? thank you in advance

Sapphire Rings & Necklace doesn't work.

Hello @jimathy,

So I've been setting everything up as it should, with everything added to both the "shared.lua" and images in the inventory.

So when I Collect the stones I crack them to get materials. No problem there. I can even get som sapphire, from it.

But here's the problem.

Whenever I have a sapphire uncutted, I cut it, so it can be used to the rings and necklace.
So when I've done that. I try to make the ring or the necklace and I get this error in the F8 console.
image

And yes, running the lastest qbcore, if that could be the problem.
But it shouldn't be, since every other gem works fine, its only that one gem, that doesn't.

This does not happend with any of the other gems. Only sapphire.
I haven't changed anything, from what I just got here on github.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.