Installation
DEPENDENCIES
REQUIRED DEPENDENCIES
Type
Resource
Alternatives
Download
Framework
qb-core
(Coming Soon)
Bridge
DHS-Bridge
NA
(INCLUDED IN KEYMASTER)
Interaction System
qb-target
ox_target
ox_lib
Menu System
qb-menu
ox_lib
Input System
qb-input
ox_lib
Radial Menu System
qb-radialmenu
ox_lib
Progressbar System
progressbar
ox_lib
Notify System
qbcore
ox_lib
(BUILT INTO QBCORE)
Dispatch System
qb-policejob
ps-dispatch
cd-dispatch
Fishing Minigame
ps-ui
RESOURCE INSTALLATION GUIDE
1) RESOURCE DOWNLOAD
2) ADD THE ITEMS
//```lua
--DHS Fishing Items
fishingrod = { name = 'fishingrod', label = 'Fishing Rod', weight = 100, type = 'item', image = 'fishingrod.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A Simple Fishing Rod' },
advanced_fishingrod = { name = 'advanced_fishingrod', label = 'Advanced Fishing Rod', weight = 100, type = 'item', image = 'advanced_fishingrod.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'An Advanced Fishing Rod' },
midtier_fishingrod = { name = 'midtier_fishingrod', label = 'Mid-Tier Fishing Rod', weight = 100, type = 'item', image = 'midtier_fishingrod.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A Mid-Tier Fishing Rod' },
hightier_fishingrod = { name = 'hightier_fishingrod', label = 'High-Tier Fishing Rod', weight = 100, type = 'item', image = 'hightier_fishingrod.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A High-Tier Fishing Rod' },
the_master_fishingrod = { name = 'the_master_fishingrod', label = 'The Master Fishing Rod', weight = 100, type = 'item', image = 'the_master_fishingrod.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'The Master Fishing Rod' },
tacklebox_blue = { name = 'tacklebox_blue', label = 'Blue Tacklebox', weight = 100, type = 'item', image = 'tacklebox_blue.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A simple place to Store your fishing gear!'},
tacklebox_brown = { name = 'tacklebox_brown', label = 'Brown Tacklebox', weight = 100, type = 'item', image = 'tacklebox_brown.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A simple place to Store your fishing gear!'},
tacklebox_tan = { name = 'tacklebox_tan', label = 'Tan Tacklebox', weight = 100, type = 'item', image = 'tacklebox_tan.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A simple place to Store your fishing gear!'},
bait_worms = { name = 'bait_worms', label = 'Worms', weight = 100, type = 'item', image = 'worms.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Fishing Bait' },
bait_minnows = { name = 'bait_minnows', label = 'Minnows', weight = 100, type = 'item', image = 'minnows.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Fishing Bait' },
bait_cricket = { name = 'bait_cricket', label = 'Crickets', weight = 100, type = 'item', image = 'cricket.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Fishing Bait' },
bait_grasshopper = { name = 'bait_grasshopper', label = 'Grasshoppers', weight = 100, type = 'item', image = 'grasshopper.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Fishing Bait' },
bait_leech = { name = 'bait_leech', label = 'Leechs', weight = 100, type = 'item', image = 'leech.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Fishing Bait' },
rockfish = { name = 'rockfish', label = 'Rockfish', weight = 200, type = 'item', image = 'rockfish.png', unique = false, useable = true, shouldClose = true, description = '' },
californiahalibut = { name = 'californiahalibut', label = 'California Halibut', weight = 200, type = 'item', image = 'californiahalibut.png', unique = false, useable = true, shouldClose = true, description = '' },
jacksmelt = { name = 'jacksmelt', label = 'JackSmelt', weight = 200, type = 'item', image = 'jacksmelt.png', unique = false, useable = true, shouldClose = true, description = '' },
surfsmelt = { name = 'surfsmelt', label = 'SurfSmelt', weight = 200, type = 'item', image = 'surfsmelt.png', unique = false, useable = true, shouldClose = true, description = '' },
surfperch = { name = 'surfperch', label = 'SurfPerch', weight = 200, type = 'item', image = 'surfperch.png', unique = false, useable = true, shouldClose = true, description = '' },
halibut = { name = 'halibut', label = 'Halibut', weight = 200, type = 'item', image = 'halibut.png', unique = false, useable = true, shouldClose = true, description = '' },
californiacorbina = { name = 'californiacorbina', label = 'California Corbina', weight = 200, type = 'item', image = 'californiacorbina.png', unique = false, useable = true, shouldClose = true, description = '' },
calicobass = { name = 'calicobass', label = 'Calico Bass', weight = 200, type = 'item', image = 'calicobass.png', unique = false, useable = true, shouldClose = true, description = '' },
mackeral = { name = 'mackeral', label = 'Mackeral', weight = 200, type = 'item', image = 'mackeral.png', unique = false, useable = true, shouldClose = true, description = '' },
barracuda = { name = 'barracuda', label = 'Barracuda', weight = 200, type = 'item', image = 'barracuda.png', unique = false, useable = true, shouldClose = true, description = '' },
whiteseabass = { name = 'whiteseabass', label = 'White Seabass', weight = 200, type = 'item', image = 'whiteseabass.png', unique = false, useable = true, shouldClose = true, description = '' },
sheephead = { name = 'sheephead', label = 'Sheep Head', weight = 200, type = 'item', image = 'sheephead.png', unique = false, useable = true, shouldClose = true, description = '' },
yellowtail = { name = 'yellowtail', label = 'Yellow Tail', weight = 200, type = 'item', image = 'yellowtail.png', unique = false, useable = true, shouldClose = true, description = '' },
salmon = { name = 'salmon', label = 'Salmon', weight = 100, type = 'item', image = 'salmon.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A delicious and nutritious fish known for its pink flesh and rich flavor' },
lingcod = { name = 'lingcod', label = 'Ling Cod', weight = 200, type = 'item', image = 'lingcod.png', unique = false, useable = true, shouldClose = true, description = '' },
--DHS Illegal Fishing Items
bait_octopus = { name = 'bait_octopus', label = 'Octopus', weight = 100, type = 'item', image = 'octopus.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Illegal Fishing Bait' },
bait_squid = { name = 'bait_squid', label = 'Squid', weight = 100, type = 'item', image = 'squid.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Illegal Fishing Bait' },
bait_cowcarcass = { name = 'bait_cowcarcass', label = 'Cow Carcass', weight = 100, type = 'item', image = 'cowcarcass.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Illegal Fishing Bait' },
bait_pigcarcass = { name = 'bait_pigcarcass', label = 'Pig Carcass', weight = 100, type = 'item', image = 'pigcarcass.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Illegal Fishing Bait' },
bait_seaweed = { name = 'bait_seaweed', label = 'Seaweed', weight = 100, type = 'item', image = 'seaweed.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Illegal Fishing Bait' },
blue_whale = { name = 'blue_whale', label = 'Blue Whale', weight = 100, type = 'item', image = 'bluewhale.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A blue whale is the largest animal on Earth, known for its immense size and gentle nature.' },
green_turtle = { name = 'green_turtle', label = 'Green Turtle', weight = 500, type = 'item', image = 'greenturtle.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A green turtle is a type of sea turtle known for its greenish-colored fat and cartilage.' },
leatherback_turtle = { name = 'leatherback_turtle', label = 'Leatherback Turtle', weight = 500, type = 'item', image = 'leatherbackturtle.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A leatherback turtle is a type of sea turtle known for its unique shell made of leather-like skin.' },
olive_ridley_turtle = { name = 'olive_ridley_turtle', label = 'Olive Ridley Turtle', weight = 500, type = 'item', image = 'oliveridleyturtle.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'An Olive Ridley Turtle is a type of sea turtle known for its olive-colored shell and nesting behavior in large groups.' },
school_shark = { name = 'school_shark', label = 'School Shark', weight = 1000, type = 'item', image = 'schoolshark.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A school shark is a type of shark that is commonly found in schools or groups, hence the name "school shark."' },
horn_shark = { name = 'horn_shark', label = 'Horn Shark', weight = 1200, type = 'item', image = 'hornshark.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A horn shark is a type of shark known for its distinctive horn-like structures above its eyes.' },
greatwhite_shark = { name = 'greatwhite_shark', label = 'Great White Shark', weight = 2000, type = 'item', image = 'greatwhiteshark.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A Great White Shark is a large predatory shark known for its size and power.' },
gray_whale = { name = 'gray_whale', label = 'Gray Whale', weight = 5000, type = 'item', image = 'graywhale.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A Gray Whale is a large marine mammal known for its mottled gray coloration and baleen feeding habits.' },
humpback_whale = { name = 'humpback_whale', label = 'Hump Back Whale', weight = 5000, type = 'item', image = 'humpbackwhale.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A Humpback Whale is a large marine mammal known for its distinctive humpback shape and acrobatic behavior such as breaching and slapping the water with its fins and tail.' },
--Treasure
rusty_key = { name = 'rusty_key', label = 'Rusty Key', weight = 100, type = 'item', image = 'rustykey.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Your not sure what this goes to.' },
silver_key = { name = 'silver_key', label = 'Silver Key', weight = 100, type = 'item', image = 'rustykey.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Your not sure what this goes to.' },
gold_key = { name = 'gold_key', label = 'Gold Key', weight = 100, type = 'item', image = 'rustykey.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Your not sure what this goes to.' },
rusty_lockbox = { name = 'rusty_lockbox', label = 'Rusty Lockbox', weight = 100, type = 'item', image = 'rustylockbox.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'You need a key for this' },
note_in_bottle = { name = 'note_in_bottle', label = 'Note in Bottle', weight = 100, type = 'item', image = 'noteinbottle.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A note in a bottle.' },
map_piece_part1 = { name = 'map_piece_part1', label = 'Map Piece Part 1', weight = 100, type = 'item', image = 'mappart1.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A map piece part 1.' },
map_piece_part2 = { name = 'map_piece_part2', label = 'Map Piece Part 2', weight = 100, type = 'item', image = 'mappart2.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A map piece part 2.' },
map_piece_part3 = { name = 'map_piece_part3', label = 'Map Piece Part 3', weight = 100, type = 'item', image = 'mappart3.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A map piece part 3.' },
map_piece_part4 = { name = 'map_piece_part4', label = 'Map Piece Part 4', weight = 100, type = 'item', image = 'mappart4.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A map piece part 4.' },
treasure_map = { name = 'treasure_map', label = 'Treasure Map', weight = 100, type = 'item', image = 'treasuremap.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A treasure map.' },
```
3) ADD THE IMAGES TO YOUR INVENTORY
4) ADD THE ITEM METADATA
1) QB Based Inventories (LJ/PS)
Go into [Inventory/html/js/app.js]
Look For This Line
```javascript -- Look For This Line
} else if (itemData.name == "harness") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p>" + itemData.info.uses + " uses left.</p>"
);
```
Then Add This Below
```javascript
} else if (itemData.name == "rockfish") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "californiahalibut") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "jacksmelt") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "surfperch") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "californiacorbina") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "calicobass") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "mackeral") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "whiteseabass") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "sheephead") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "yellowtail") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "salmon") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "barracuda") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "lingcod") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "green_turtle") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "leatherback_turtle") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "olive_ridley_turtle") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "blue_whale") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "gray_whale") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "humpback_whale") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "school_shark") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "horn_shark") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "greatwhite_shark") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Weight: </strong><span>" +
itemData.info.fishWeight +
" lbs</span></p><p><strong>Length: </strong><span>" +
itemData.info.fishLength + " inches</span></p>"
);
} else if (itemData.name == "tacklebox") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html("<p>Tacklebox ID: " + itemData.info.id + "</p>");
```
5) INSTALL COMPLETE
The Install is now complete, you may move onto looking at the config.
Last updated