jimathy / jim-mining Goto Github PK
View Code? Open in Web Editor NEWFiveM QBCore Script for Mining
FiveM QBCore Script for Mining
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 = {}, }
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
Title says it all, whenever I mine I can keep mining even though I'm exceeding the ox_inventory carry weight tried adding my own checks to get it to look for player weight but no luck... Any ideas or snippets would be awesome!
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.
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
Line 108 contains undefined value "Crafting"
for _, v in pairs(Crafting) do ...
Correction, so that this value uses the defined values in config.lua:
for _, v in pairs(Config.Crafting) do ...
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)
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
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 } },
For non ox inventories the line in the config has a typo on line 11. Should read 'JimShop' not 'JimShops'
;)
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.
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')
Cheater can easy spawn item with these event.
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.
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.
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?
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?
Just installed this and the smelter menu isn't working,any ideas on what could be wrong?
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
['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
I have people complain that the bits, pickaxes break to fast.
They said like around 6 per 1 a 2 nodes.
Getting that error for the panning zones. Any ideas?
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
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.
please sir im on esx build but i want this script in my server because your script very interesting, can u make it ?
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'
Hey i love your script but i have an esx server i s there a chance that you can write it for both frameworks
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.
qb target doesn't work on the peds
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
As title states.
[ 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
any help on getting this script to fully work with qs-inventory? particularly the mining shop
While im mining the laser never stops cutting and no minerals come out. i made changes to any files.
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
all aspects of mining are working only the smelters menu is not opening and this is whats showing in f8 console
SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:739: SCRIPT ERROR: @jim_bridge/wrapper.lua:240: attempt to concatenate a nil value (field 'header')
openMenu (@jim_bridge/wrapper.lua:240)
craftingMenu(@jim_bridge/crafting.lua:87)
ref (@jim-mining/client.lua:151)
(@qb-target/client.lua:87)
all items in the lua as well
any help is verry appreciated
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 :)
Ive have the issue,
Ive installed the script and followed the README file.
Everything works Except the "Browse store" The NPC in the mining location's
I can give my self the item's and mine and do everthing else. but ive tryed many different thing's and i can't figure out what is the problem.
I run QBcore "latest version"
ive tryed it on my VPS and my local pc. Same thing.
hope you can help :D
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
I just updated the script and props or peds aren't spawning.
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".
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.