[Release] [RedM] Gold Prospecting (panning and mining for nuggets)

Hey guys,

Here is a script that I have been working on, the script allows you to pan or mine for gold nuggets, once you have enough you can smelt then into gold bars and then sell the gold bars for $$ and XP… let me know if you see any issues or improvements.

Please feel free to amend this script for your own needs…

REDEM:RP Version:
rsg_goldprospecting.zip (6.3 KB)

please subscribe to the channel for more releases / thanks

Required resources:

  • redem_roleplay
  • redemrp_inventory v2.0
  • redemrp_notification

Installation:
unzip and add “rsg_goldprospecting” to your resources folder
add the start commands to your server.cfg :

ensure rsg_goldprospecting

In redemrp_inventory/config.lua under Config.Items ensure the items are added:

Config.Items = {

["golden_nugget"] = {
		label = "Golden Nugget",
		description = "Golden Nugget",
		weight = 0.05,
		canBeDropped = true,
		canBeUsed = true,
		requireLvl = 1,
		limit = 1250,
		imgsrc = "items/golden_nugget.png",
		type = "item_standard"
	},
	
["goldbar"] = {
		label = "Gold Bar",
		description = "Solid Gold Bar",
		weight = 1.25,
		canBeDropped = true,
		canBeUsed = true,
		requireLvl = 1,
		limit = 50,
		imgsrc = "items/goldbar.png",
		type = "item_standard"
	},
	
}

restart your server

Hope you enjoy…
RexshackGaming

4 Likes

Hey Liking the work and effort in the script, I’ve followed your instructions and have tested the script. Panning works but upon receiving an item, the Item is dropped on the ground automatically and you cannot pick it up?

have you added the required items to your inventory config?

Config.Items = {

["golden_nugget"] = {
		label = "Golden Nugget",
		description = "Golden Nugget",
		weight = 0.05,
		canBeDropped = true,
		canBeUsed = true,
		requireLvl = 1,
		limit = 1250,
		imgsrc = "items/provision_gold_nugget.png",
		type = "item_standard"
	},
	
["goldbar"] = {
		label = "Gold Bar",
		description = "Solid Gold Bar",
		weight = 1.25,
		canBeDropped = true,
		canBeUsed = true,
		requireLvl = 1,
		limit = 50,
		imgsrc = "items/provision_goldbar_small.png",
		type = "item_standard"
	},
	
}

Can’t get it

Yes sir, This isn’t my first rodeo if you can excuse the pun, it seems i’m not the only one having issues, My thought was it might be one of the dependencies out of date or conflicting(potentially Redem_Inventory)

this the the latest version, its working ok on my server

Thanks I’ll take another look. Probably me being dumb.

In my case the Level were a Problem. Can`t take it with Lvl1 with Lvl 5 no problem

looks very interesting. Is there a chance to make this for VORP?

@Wuamei sorry never used VORP and will not in the future, but happy if you want to try and convert this using that framework

I have installed this exactly how it says in the installation section. the blip is on the map and the trigger is there when I walk up to the location but does nothing when I press Enter?? Have I done something wrong or is there something else?

I went back in the config.lua file under inventory and the code for the gold prospecting keeps being removed. I have put it back in there like 3-4 times already and it’s still being removed. Any ideas??
this is what it looks like before, when I add the gold prospecting code I’m entering it between the Config.Items and Water? Is that the correct place to enter it??

Config.Items = {

["water"] =
{
    label = "Water",
    description = "?????????",
    weight = 0.3,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 32,
    imgsrc = "items/water.png",
    type = "item_standard",

},

["bread"] =
{
    label = "Bread",
    description = "?????????",
    weight = 0.1,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 20,
    imgsrc = "items/bread.png",
    type = "item_standard",


},

["wheat"] =
{
    label = "Wheat",
    description = "?????????",
    weight = 0.05,
    canBeDropped = true,
    canBeUsed = false,
    requireLvl = 0,
    limit = 64,
    imgsrc = "items/wheat.png",
    type = "item_standard",

},

["apple"] =
{
    label = "Apple",
    description = "?????????",
    weight = 0.02,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 32,
    imgsrc = "items/apple.png",
    type = "item_standard",


},
 ["p_baitBread01x"] =
{
    label = "Bread Bait",
    description = "?????????",
    weight = 0.01,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 32,
    imgsrc = "items/bread_bait.png",
    type = "item_standard",


},



["p_baitCheese01x"] =
{
    label = "Cheese Bait",
    description = "?????????",
    weight = 0.01,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 48,
    imgsrc = "items/cheese_bait.png",
    type = "item_standard",


},

["p_baitCorn01x"] =
{
    label = "Corn Bait",
    description = "?????????",
    weight = 0.01,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 48,
    imgsrc = "items/corn_bait.png",
    type = "item_standard",


},
["p_baitCricket01x"] =
{
    label = "Cricket Bait",
    description = "?????????",
    weight = 0.01,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 32,
    imgsrc = "items/cricket_bait.png",
    type = "item_standard",


},



["p_finishedragonfly01x"] =
{
    label = "River Bait",
    description = "?????????",
    weight = 0.05,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 5,
    imgsrc = "items/river_bait.png",
    type = "item_standard",


},


["p_FinisdFishlure01x"] =
{
    label = "Lake Bait",
    description = "?????????",
    weight = 0.05,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 5,
    imgsrc = "items/lake_bait.png",
    type = "item_standard",


},

["p_finishdcrawd01x"] =
{
    label = "Swamp Bait",
    description = "?????????",
    weight = 0.05,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 5,
    imgsrc = "items/swamp_bait.png",
    type = "item_standard",


},

["smallfish"] =
{
    label = "Small Fish",
    description = "?????????",
    weight = 0.3,
    canBeDropped = true,
    canBeUsed = false,
    requireLvl = 0,
    limit = 20,
    imgsrc = "items/smallfish.png",
    type = "item_standard",


},


["mediumfish"] =
{
    label = "Medium Fish", 
    description = "?????????",
    weight = 2.3,
    canBeDropped = true,
    canBeUsed = false,
    requireLvl = 0,
    limit = 15,
    imgsrc = "items/mediumfish.png",
    type = "item_standard",


},

["largefish"] =
{
    label = "Large Fish",
    description = "?????????",
    weight = 4.5,
    canBeDropped = true,
    canBeUsed = false,
    requireLvl = 0,
    limit = 10,
    imgsrc = "items/largefish.png",
    type = "item_standard",

},

["blueberry"] =
{
    label = "Blueberry",
    description = "?????????",
    weight = 0.1,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 20,
    imgsrc = "items/blueberry.png",
    type = "item_standard",


},
["stick"] =
{
    label = "Stick",
    description = "?????????",
    weight = 0.02,
    canBeDropped = true,
    canBeUsed = false,
    requireLvl = 0,
    limit = 64,
    imgsrc = "items/stick.png",
    type = "item_standard",


},

[“WEAPON_FISHINGROD”] =
{
label = “Fishingrod”,
description = “???”,
weight = 0.9,
canBeDropped = true,
requireLvl = 1,
weaponHash = GetHashKey(“WEAPON_FISHINGROD”),
imgsrc = “items/WEAPON_FISHINGROD.png”,
type = “item_weapon”
},

}

@Buck_Vain are on ZAP if so then you need to uncheck force overwrite

Ah ok, I’ll do that Thanks alot.