#Jim-Mining [QBOX]

1 messages · Page 1 of 1 (latest)

hidden stream
#

Re-introducing one of the most popular mining scripts for FiveM to QBOX servers. Featuring a redesigned mining job, smeltry, and gem cracking.

This script is DIFFERENT from the original jim-mining script. Do NOT expect all of the same features as the original jim-mining. This is redesigned SPECIFICALLY for QBOX servers.

  • Removed Gold Panning
    I don't like the idea of players being able to specifically obtain silver and gold, therefore this has been removed

  • Removed Stone Washing
    I dislike the idea of players being able to turn stones into gems just because they want to, therefore this has been removed

  • Removed Stone Cracking
    Because of the changes to the actual mining job, Stone Cracking is no longer needed, and therefore has also been removed

  • ** Removed Ore Selling and Jewel Buyer**
    In my community we use the Lation PawnShop for our ore selling and gem selling, therefore this has been removed.

  • Changes to Mining Job
    The script now operates sort of like Rust, where players can identify the ore before they mine it. This allows players to really only mine what they need, providing a different dynamic to the traditional mining script that Jimathy created.

Download on GitHub

somber edge
#

interesting ill have to look into trhis script and see if it like it better than the script im currently using

wooden jasper
#

This is absolutely amazing! Thank you so much for this!

fathom tapir
#

as long as theres no exploits

#

nevermind lol

wooden jasper
#

works like a dream except smelting, i have the ore but cant smelt it

#

gonna dig into the client file in a bit

#

seems like it not pulling inventory data

hidden stream
#

Okay I see what you've sent now.

#

I will fix this

final pasture
#

Hi Swag! Also not sure why but also have this issue

Maybe this will help you.

viral seal
final pasture
#

@viral seal its the same error he is working with in regards to the smelter, Everything else works apart from the Smelting 🙂

viral seal
limber lance
#

should of just let the script burn and saved yourself the headache

opaque osprey
hidden stream
#

I didn't know this script was so exploitable. I've used this script for years.

#

I'm fixing everything, thank you to everyone who helped identifiy this for me

opaque osprey
#

also, in that event, what is triggering the function (or passing the pool value)?

ivory obsidian
#

I do everything on server side, i know if something is exploitable

#

and events are.

hidden stream
#

yeah i'll be using callbacks with distance checks instead of events

#

also will use functions instead of triggerEvent

hidden stream
zenith girder
#

callbacks dont make an event safe sad

hidden stream
#

but dist checks do

zenith girder
#

sure, but even then u just go to that location and do the same stuff

hidden stream
#

i'll share what i'm doing. if it needs changed again, i'm happy to continue refactoring.

#

I think my issue is i need to stop passing rewardItem from the client

#

or figure a way to verify reward item

ivory obsidian
hidden stream
#

but, couldn't the player change it to the best reward every time??

ivory obsidian
#

no

#

you should randomly choose one anyways

#

on server

#

not client

#

from the list

#

like Server.Rewards

#

so the client cant even edit it

hidden stream
#

ah see thats the issue then because jim loads the rocks client side and we determine what the rock is client side

#

so this is gonna go so much deeper than i thought

ivory obsidian
#

what rocks

hidden stream
#

question becomes now: is this worth it?

limber lance
ivory obsidian
limber lance
hidden stream
#

I changed the rock function. it spawns different nodes (like the game Rust where you can see the sulfur node before you mine it)

limber lance
#

i wanna see cb-mining, not jim-mining-qbx

prisma flame
#

lation mining v2 >>>

hidden stream
#

i'm horrible at animations, the reason i chose to edit Jim was because of his mininlaser, and miningdrill. i thought those were really cool.

limber lance
#

i'll spend hours on plebmaster digging through anims.

#

and then make a small script to test them by inputting dict and anim.

hidden stream
#

i'm thankful for all of you. I think i'm going to leave this script where it's at. It works for QBOX, but it is EXPLOITABLE so you use at your own risk. I will update the README and start today on CB-Mining.

I need a better mining script for my community anyways.

ivory obsidian
#

oh thats what u doin

hidden stream
#

I'm going to make my own mining script. I think i'm going to make it like rust, where we spawn the rocks server side, assign it an item, and then then verify that rock when the player mines it.

I am also considering scrapping the rocks and just letting the users walk up to the side of the mountain use their pickaxe.

#

Thats kinda where i'm at rn. 2 options. I'll probably build option #2 first, and then go back and add option #1 for htose that want to use it

#

A really huge thank you to all that helped me reach this conclusion.

ivory obsidian
#

spawn them client side but from server

#

client side stuff has bigger limits for props and entities than server side

#

so just spawn it on clients but techincally "register" them on server.

#

so if a client triggers an even to "mine" one it needs to actually give an id of the stuff etc.

fathom tapir
prisma flame
fathom tapir
fathom tapir
prisma flame
#

it is

fathom tapir
#

when

prisma flame
#

next year

fathom tapir
primal shadow
#

I saw the word Jim and knew right away what I was gonna read…. I’m no expert by any means at all but the code gives me the jitters

ashen vigil
#

That stupid toggleItem net event gave me cancer.

hidden stream
#

It's like he throws spaghetti on a wall and hopes it compiles

dusty basalt
#

another banger

primal shadow
timber lake
#

also smelting isnt working

#

@hidden stream

copper crescent
hidden stream
#

I don't support this script anymore. The script is ass and exploitable. I'm building my own

frozen heart
#

Put this code -
function GetItemLabel(item)
local itemData = exports.ox_inventory:Items(item)
if itemData and itemData.label then
return itemData.label
else
print("Warning: Item not found or label is nil for item:", item)
return "Unknown Item"
end
end

function GetItemImage(item)
local itemData = exports.ox_inventory:Items(item)
print("Item data:", json.encode(itemData))
if itemData and itemData.client and itemData.client.image then
return itemData.client.image
else
return "nui://" .. Config.img .. item .. ".png"
end
end

minor island
hidden stream
#

Maybe I'll go back and fix the error. This post is somewhat popular

#

I'll be working on some things tonight. I'll download the repo and take a look. I intend to build my own mining script. But unsure of what I want it to do at this point in time

#

Currently focused on heist scripts

minor island
# hidden stream I'll be working on some things tonight. I'll download the repo and take a look. ...
if not soundId then
    print("Error: Could not retrieve Sound ID")
    return
end

-- Define only K4MB1 props
if not Config.PropTable then
    print("Error: Config.PropTable is not defined")
    return
end

local propTable = Config.PropTable

-- Hide the mineshaft doors
if CreateModelHide then
    CreateModelHide(vec3(-596.04, 2089.01, 131.41), 10.5, -1241212535, true)
else
    print("Error: CreateModelHide function is missing")
end

function removeJob()
    for k in pairs(Targets) do
        exports.ox_target:removeZone(k)
    end
    for _, v in pairs(Peds) do
        unloadModel(GetEntityModel(v))
        DeletePed(v)
    end
    for i = 1, #Props do
        unloadModel(GetEntityModel(Props[i]))
        DeleteObject(Props[i])
    end
    for i = 1, #Blip do
        RemoveBlip(Blip[i])
    end
end

function HasItemClient(item, amount)
    amount = amount or 1
    local itemCount = exports.ox_inventory:GetItemCount(item)
    return itemCount and itemCount >= amount
end

function GetItemLabel(item)
    local itemData = exports.ox_inventory:Items(item)
    return itemData and itemData.label or "Unknown"
end

function GetItemImage(item)
    local itemData = exports.ox_inventory:Items(item)
    if itemData and itemData.client.image then
        return itemData.client.image
    else
        return "nui://" .. (Config.img or "default_path/") .. item .. ".png"
    end
end
``` fixed it for me
#

in client.lua

hidden stream
#

I'll go through and update it

#

surprised at how many people still use this

minor island
#

i love the mining script i could never get jims org one to work and i had just bought the cave mlo during black friday

minor island
#

both the caves / shaft

hidden stream
#

As a reminder this is not the same script as regular Jim mining. Please don't get it confused

I "rewrote" some things. The script operates sorta like rust where you can see the node before you mine it. Players can then mine what they need

#

Lotta activity on this I'm going to go back and update it. But I will NOT fix the exploits. Too much work and I don't like reading jimathys code. It's like spaghetti on a wall

#

I was going to use this script for my community before I released how unsecured it is

minor island
#

Yea I love the rewrite that’s what made me wanna come back to “jim mining” I org moved on to I think Latino mining

minor island
#

i cant find the mining shop?

#

oh there is none jims had one

full forum
minor island
full forum
#

so the one i posted is all the features jim-mining had that works with qbox

fathom tapir
#

Why yall want to use exploitable garbage script?

ivory obsidian
#

because it takes more than 2 minutes to find a new one

fathom tapir