Documentation
All information you need for use the script
Setup your framework
Config
Config.Framework = "ESX"
SQL
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('fishing_rod','Fishing Rod','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('fishbait','fish bait','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('turtlebait','turtle bait','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('carp','Carp','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('koi','Koi','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('goldfish','Goldfish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('popeye_goldfish','Pop-eyed goldfish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('ranchu_goldfish','Ranchu goldfish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('killifish','Killifish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('crawfish','Crawfish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('gar','Gar','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('tadpole','Tadpole','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('catfish','Catfish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('giant_snakehead','Giant snakehead','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('bitterling','Bitterling','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('pale_chub','Pale chub','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('crucian_carp','Crucian Carp','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('dace','Dace','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('soft_turtle','Soft-shelled turtle','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('freshwater_goby','Freshwater Goby','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('loach','Loach','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('bluegill','Bluegill','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('yellow_perch','Yellow perch','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('black_bass','Black bass','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('tilapia','Tilapia','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('pond_smelt','Pond smelt','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('sweetfish','Sweetfish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('cherry_salmon','Cherry salmon','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('char','Char','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('golden_trout','Golden Trout','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('stringfish','Stringfish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('salmon','Salmon','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('king_salmon','King salmon','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('mitten_crab','Mitten crab','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('guppy','Guppy','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('nibble_fish','Nibble fish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('angelfish','Angelfish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('betta','Betta','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('neon_tetra','Neon tetra','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('rainbowfish','Rainbowfish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('arowana','Arowana','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('dorado','Dorado','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('arapaima','Arapaima','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('saddled','Saddled bichir','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('sturgeon','Sturgeon','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('snapping_turtle','Snapping turtle','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('piranha','Piranha','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('sea_butterfly','Sea butterfly','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('sea_horse','Sea horse','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('clown_fish','Clown fish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('surgeon_fish','Surgeonfish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('butterfly_fish','Butterfly fish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('napoleonfish','Napoleonfish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('zebra_turkeyfish','Zebra turkeyfish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('blowfish','Blowfish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('puffer_fish','Puffer fish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('anchovy','Anchovy','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('horse_mackerel','Horse mackerel','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('barred_knifejaw','Barred knifejaw','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('sea_bass','Sea bass','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('red_snapper','Red snapper','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('dab','Dab','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('olive_flounder','Olive Flounder','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('squid','Squid','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('moray_eel','Moray eel','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('ribbon_eel','Ribbon eel','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('tuna','Tuna','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('blue_marlin','Blue marlin','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('trevally','Giant trevally','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('mahimahi','Mahi-mahi','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('sunfish','Ocean sunfish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('ray','ray','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('saw_shark','Saw shark','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('hammer_shark','Hammer shark','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('white_shark','Great white shark','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('whale_shark','Whale shark','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('suckerfish','Suckerfish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('football_fish','Football fish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('oarfish','oarfish','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('barreleye','Barreleye','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('coelacanth','Coelacanth','1','0','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('trash','Trash','1','0','1');
Config
Config.Framework = "QB"
Setup
In qb-core/shared/items.lua
-- TOOLS
['fishing_rod'] = {['name'] = 'fishing_rod', ['label'] = 'Fishing rod', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'fishing_rod.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A fishing rod'},
['fishbait'] = {['name'] = 'fishbait', ['label'] = 'fishbait', ['weight'] = 100, ['type'] = 'item', ['image'] = 'fishbait.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A fishbait'},
['turtlebait'] = {['name'] = 'turtlebait', ['label'] = 'Turtle Bait', ['weight'] = 100, ['type'] = 'item', ['image'] = 'turtlebait.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Turtle Bait'},
--FISH
['carp'] = {['name'] = 'carp', ['label'] = 'Carp', ['weight'] = 100, ['type'] = 'item', ['image'] = 'carp.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Carp'},
['koi'] = {['name'] = 'koi', ['label'] = 'Koi', ['weight'] = 100, ['type'] = 'item', ['image'] = 'koi.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Koi'},
['goldfish'] = {['name'] = 'goldfish', ['label'] = 'Goldfish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'goldfish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Goldfish'},
['popeye_goldfish'] = {['name'] = 'popeye_goldfish',['label'] = 'Pop-eyed Goldfish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'popEyeGoldfish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Pop-eyed Goldfish'},
['ranchu_goldfish'] = {['name'] = 'ranchu_goldfish',['label'] = 'Ranchu Goldfish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'ranchuGoldfish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Ranchu Goldfish'},
['killifish'] = {['name'] = 'killifish', ['label'] = 'Killifish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'killifish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Killifish'},
['crawfish'] = {['name'] = 'crawfish', ['label'] = 'Crawfish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'crawfish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Crawfish'},
['gar'] = {['name'] = 'gar', ['label'] = 'Gar', ['weight'] = 100, ['type'] = 'item', ['image'] = 'gar.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Gar'},
['tadpole'] = {['name'] = 'tadpole', ['label'] = 'Tadpole', ['weight'] = 100, ['type'] = 'item', ['image'] = 'tadpole.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Tadpole'},
['catfish'] = {['name'] = 'catfish', ['label'] = 'Catfish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'catfish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Catfish'},
['giant_snakehead'] = {['name'] = 'giant_snakehead',['label'] = 'Giant Snakehead', ['weight'] = 100, ['type'] = 'item', ['image'] = 'giantSnakehead.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Giant Snakehead'},
['bitterling'] = {['name'] = 'bitterling', ['label'] = 'Bitterling', ['weight'] = 100, ['type'] = 'item', ['image'] = 'bitterling.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Bitterling'},
['pale_chub'] = {['name'] = 'pale_chub', ['label'] = 'Pale Chub', ['weight'] = 100, ['type'] = 'item', ['image'] = 'paleChub.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Pale Chub'},
['crucian_carp'] = {['name'] = 'crucian_carp', ['label'] = 'Crucian Carp', ['weight'] = 100, ['type'] = 'item', ['image'] = 'crucianCarp.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Crucian Carp'},
['dace'] = {['name'] = 'dace', ['label'] = 'Dace', ['weight'] = 100, ['type'] = 'item', ['image'] = 'dace.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Dace'},
['soft_turtle'] = {['name'] = 'soft_turtle', ['label'] = 'Soft-shelled Turtle', ['weight'] = 100, ['type'] = 'item', ['image'] = 'softTurtle.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Soft-shelled Turtle'},
['freshwater_goby'] = {['name'] = 'freshwater_goby',['label'] = 'Freshwater Goby', ['weight'] = 100, ['type'] = 'item', ['image'] = 'freshwaterGoby.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Freshwater Goby'},
['loach'] = {['name'] = 'loach', ['label'] = 'Loach', ['weight'] = 100, ['type'] = 'item', ['image'] = 'loach.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Loach'},
['bluegill'] = {['name'] = 'bluegill', ['label'] = 'Bluegill', ['weight'] = 100, ['type'] = 'item', ['image'] = 'bluegill.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Bluegill'},
['yellow_perch'] = {['name'] = 'yellow_perch', ['label'] = 'Yellow Perch', ['weight'] = 100, ['type'] = 'item', ['image'] = 'yellowPerch.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Yellow Perch'},
['black_bass'] = {['name'] = 'black_bass', ['label'] = 'Black Bass', ['weight'] = 100, ['type'] = 'item', ['image'] = 'blackBass.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Black Bass'},
['tilapia'] = {['name'] = 'tilapia', ['label'] = 'Tilapia', ['weight'] = 100, ['type'] = 'item', ['image'] = 'tilapia.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Tilapia'},
['pond_smelt'] = {['name'] = 'pond_smelt', ['label'] = 'Pond Smelt', ['weight'] = 100, ['type'] = 'item', ['image'] = 'pondSmelt.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Pond Smelt'},
['sweetfish'] = {['name'] = 'sweetfish', ['label'] = 'Sweetfish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'sweetfish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Sweetfish'},
['cherry_salmon'] = {['name'] = 'cherry_salmon', ['label'] = 'Cherry Salmon', ['weight'] = 100, ['type'] = 'item', ['image'] = 'cherrySalmon.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Cherry Salmon'},
['char'] = {['name'] = 'char', ['label'] = 'Char', ['weight'] = 100, ['type'] = 'item', ['image'] = 'char.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Char'},
['golden_trout'] = {['name'] = 'golden_trout', ['label'] = 'Golden Trout', ['weight'] = 100, ['type'] = 'item', ['image'] = 'goldenTrout.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Golden Trout'},
['stringfish'] = {['name'] = 'stringfish', ['label'] = 'Stringfish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'stringfish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Stringfish'},
['salmon'] = {['name'] = 'salmon', ['label'] = 'Salmon', ['weight'] = 100, ['type'] = 'item', ['image'] = 'salmon.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Salmon'},
['king_salmon'] = {['name'] = 'king_salmon', ['label'] = 'King Salmon', ['weight'] = 100, ['type'] = 'item', ['image'] = 'kingSalmon.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'King Salmon'},
['mitten_crab'] = {['name'] = 'mitten_crab', ['label'] = 'Mitten Crab', ['weight'] = 100, ['type'] = 'item', ['image'] = 'mittenCrab.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Mitten Crab'},
['guppy'] = {['name'] = 'guppy', ['label'] = 'Guppy', ['weight'] = 100, ['type'] = 'item', ['image'] = 'guppy.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Guppy'},
['nibble_fish'] = {['name'] = 'nibble_fish', ['label'] = 'Nibble Fish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'nibbleFish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Nibble Fish'},
['angelfish'] = {['name'] = 'angelfish', ['label'] = 'Angelfish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'angelfish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Angelfish'},
['betta'] = {['name'] = 'betta', ['label'] = 'Betta', ['weight'] = 100, ['type'] = 'item', ['image'] = 'betta.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Betta'},
['neon_tetra'] = {['name'] = 'neon_tetra', ['label'] = 'Neon Tetra', ['weight'] = 100, ['type'] = 'item', ['image'] = 'neonTetra.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Neon Tetra'},
['rainbowfish'] = {['name'] = 'rainbowfish', ['label'] = 'Rainbowfish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'rainbowFish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Rainbowfish'},
['arowana'] = {['name'] = 'arowana', ['label'] = 'Arowana', ['weight'] = 100, ['type'] = 'item', ['image'] = 'arowana.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Arowana'},
['dorado'] = {['name'] = 'dorado', ['label'] = 'Dorado', ['weight'] = 100, ['type'] = 'item', ['image'] = 'dorado.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Dorado'},
['arapaima'] = {['name'] = 'arapaima', ['label'] = 'Arapaima', ['weight'] = 100, ['type'] = 'item', ['image'] = 'arapaima.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Arapaima'},
['saddled'] = {['name'] = 'saddled', ['label'] = 'Saddled Bichir', ['weight'] = 100, ['type'] = 'item', ['image'] = 'saddled.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Saddled Bichir'},
['sturgeon'] = {['name'] = 'sturgeon', ['label'] = 'Sturgeon', ['weight'] = 100, ['type'] = 'item', ['image'] = 'sturgeon.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Sturgeon'},
['snapping_turtle'] = {['name'] = 'snapping_turtle',['label'] = 'Snapping Turtle', ['weight'] = 100, ['type'] = 'item', ['image'] = 'snappingTurtle.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Snapping Turtle'},
['piranha'] = {['name'] = 'piranha', ['label'] = 'Piranha', ['weight'] = 100, ['type'] = 'item', ['image'] = 'piranha.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Piranha'},
['sea_butterfly'] = {['name'] = 'sea_butterfly', ['label'] = 'Sea Butterfly', ['weight'] = 100, ['type'] = 'item', ['image'] = 'seaButterfly.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Sea Butterfly'},
['sea_horse'] = {['name'] = 'sea_horse', ['label'] = 'Sea Horse', ['weight'] = 100, ['type'] = 'item', ['image'] = 'seaHorse.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Sea Horse'},
['clown_fish'] = {['name'] = 'clown_fish', ['label'] = 'Clown Fish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'clownFish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Clown Fish'},
['surgeon_fish'] = {['name'] = 'surgeon_fish', ['label'] = 'Surgeonfish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'surgeonFish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Surgeonfish'},
['butterfly_fish'] = {['name'] = 'butterfly_fish', ['label'] = 'Butterfly Fish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'butterflyFish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Butterfly Fish'},
['napoleonfish'] = {['name'] = 'napoleonfish', ['label'] = 'Napoleonfish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'napoleonFish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Napoleonfish'},
['zebra_turkeyfish']= {['name'] = 'zebra_turkeyfish', ['label'] = 'Zebra Turkeyfish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'zebraTurkeyfish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Zebra Turkeyfish'},
['blowfish'] = {['name'] = 'blowfish', ['label'] = 'Blowfish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'blowfish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Blowfish'},
['anchovy'] = {['name'] = 'anchovy', ['label'] = 'Anchovy', ['weight'] = 100, ['type'] = 'item', ['image'] = 'anchovy.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Anchovy'},
['horse_mackerel'] = {['name'] = 'horse_mackerel', ['label'] = 'Horse Mackerel', ['weight'] = 100, ['type'] = 'item', ['image'] = 'horseMackerel.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Horse Mackerel'},
['barred_knifejaw'] = {['name'] = 'barred_knifejaw', ['label'] = 'Barred Knifejaw', ['weight'] = 100, ['type'] = 'item', ['image'] = 'barredKnifejaw.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Barred Knifejaw'},
['sea_bass'] = {['name'] = 'sea_bass', ['label'] = 'Sea Bass', ['weight'] = 100, ['type'] = 'item', ['image'] = 'seaBass.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Sea Bass'},
['tuna'] = {['name'] = 'tuna', ['label'] = 'Tuna', ['weight'] = 100, ['type'] = 'item', ['image'] = 'tuna.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Tuna'},
['red_snapper'] = {['name'] = 'red_snapper', ['label'] = 'Red Snapper', ['weight'] = 100, ['type'] = 'item', ['image'] = 'redSnapper.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Red Snapper'},
['dab'] = {['name'] = 'dab', ['label'] = 'Dab', ['weight'] = 100, ['type'] = 'item', ['image'] = 'dab.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Dab'},
['olive_flounder'] = {['name'] = 'olive_flounder', ['label'] = 'Olive Flounder', ['weight'] = 100, ['type'] = 'item', ['image'] = 'oliveFlounder.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Olive Flounder'},
['squid'] = {['name'] = 'squid', ['label'] = 'Squid', ['weight'] = 100, ['type'] = 'item', ['image'] = 'squid.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Squid'},
['moray_eel'] = {['name'] = 'moray_eel', ['label'] = 'Moray Eel', ['weight'] = 100, ['type'] = 'item', ['image'] = 'morayEel.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Moray Eel'},
['ribbon_eel'] = {['name'] = 'ribbon_eel', ['label'] = 'Ribbon Eel', ['weight'] = 100, ['type'] = 'item', ['image'] = 'ribbonEel.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Ribbon Eel'},
['puffer_fish'] = {['name'] = 'puffer_fish', ['label'] = 'Puffer Fish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'pufferFish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Puffer Fish'},
['blue_marlin'] = {['name'] = 'blue_marlin', ['label'] = 'Blue Marlin', ['weight'] = 100, ['type'] = 'item', ['image'] = 'blueMarlin.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Blue Marlin'},
['trevally'] = {['name'] = 'trevally', ['label'] = 'Giant Trevally', ['weight'] = 100, ['type'] = 'item', ['image'] = 'trevally.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Giant Trevally'},
['mahimahi'] = {['name'] = 'mahimahi', ['label'] = 'Mahi-mahi', ['weight'] = 100, ['type'] = 'item', ['image'] = 'mahimahi.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Mahi-mahi'},
['sunfish'] = {['name'] = 'sunfish', ['label'] = 'Ocean Sunfish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'sunfish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Ocean Sunfish'},
['ray'] = {['name'] = 'ray', ['label'] = 'Ray', ['weight'] = 100, ['type'] = 'item', ['image'] = 'ray.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Ray'},
['saw_shark'] = {['name'] = 'saw_shark', ['label'] = 'Saw Shark', ['weight'] = 100, ['type'] = 'item', ['image'] = 'sawShark.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Saw Shark'},
['hammer_shark'] = {['name'] = 'hammer_shark', ['label'] = 'Hammer Shark', ['weight'] = 100, ['type'] = 'item', ['image'] = 'hammerShark.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Hammer Shark'},
['white_shark'] = {['name'] = 'white_shark', ['label'] = 'Great White Shark', ['weight'] = 100, ['type'] = 'item', ['image'] = 'whiteShark.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Great White Shark'},
['whale_shark'] = {['name'] = 'whale_shark', ['label'] = 'Whale Shark', ['weight'] = 100, ['type'] = 'item', ['image'] = 'whaleShark.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Whale Shark'},
['suckerfish'] = {['name'] = 'suckerfish', ['label'] = 'Suckerfish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'suckerfish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Suckerfish'},
['football_fish'] = {['name'] = 'football_fish', ['label'] = 'Football Fish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'footballfish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Football Fish'},
['oarfish'] = {['name'] = 'oarfish', ['label'] = 'Oarfish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'oarfish.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Oarfish'},
['barreleye'] = {['name'] = 'barreleye', ['label'] = 'Barreleye', ['weight'] = 100, ['type'] = 'item', ['image'] = 'barreleye.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Barreleye'},
['coelacanth'] = {['name'] = 'coelacanth', ['label'] = 'Coelacanth', ['weight'] = 100, ['type'] = 'item', ['image'] = 'coelacanth.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Coelacanth'},
['trash'] = {['name'] = 'trash', ['label'] = 'Trash', ['weight'] = 100, ['type'] = 'item', ['image'] = 'trash.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Trash'},
Usage
Shop
Only available for ESX and QBCore
-- With open time, the shop will be open between the hours set in the table
Config.UseOpenTime = true -- true or false
Config.OpenTime = {7, 22} -- 0 to 23
Fish
The chance is calculated by the following formula:
chance = math.random(1, 100) <= chance
EXEMPLE : For the SEA, if the chance is 50, they will catch a sardine. If the chance is 66, they will catch a tuna.
You have to add the catch with max chance on the top of the list.
Trash is the default catch for non fishing zone, like the sewer
Exemple Create new fish that named "Red fish"
config.lua
Config.sellFishPrice = {
{ label = Strings['redFish'], value = 'redFish', price = 50 },
}
-- Red fish found in river and lac
-- We add in
Config.zone = {
{
--"LAC"
{
{ fish = "redFish", chance = 80 },
}
},
{
--"RIVER"
{
{ fish = "redFish", chance = 60 },
}
}
}
strings.lua
Strings = {
['redFish'] = 'Red fish',
}
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('fishing_rod','Canne Γ pΓͺche','1','0','1');
qb-core/shared/items.lua
['redFish'] = {['name'] = 'redFish', ['label'] = 'Red Fish', ['weight'] = 100, ['type'] = 'item', ['image'] = 'redFish.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['discription'] = 'Red Fish'},
Notification
You can add your notification system Just replace with your type for client = "error" / "success" / "inform"
type for server = "error" / "success"
config.lua
Config.ClientNotification = function(msg, type)
if Config.Framework == "ESX" then
ESX.ShowNotification(msg, false, false, 140)
elseif Config.Framework == "QB" then
local QBCore = exports['qb-core']:GetCoreObject()
QBCore.Functions.Notify(msg, type)
end
end
Config.ServerNotification = function(source, msg, type)
if Config.Framework == "ESX" then
TriggerClientEvent('esx:showNotification', source, msg, type)
elseif Config.Framework == "QB" then
TriggerClientEvent("QBCore:Notify", source, msg)
end
end
Minigame
You can add your own minigame for fishing
config.lua
-- Put your code here if you want to add challeng to caugth a fish
-- Just return true for success or false for failure
-- Exemple with https://github.com/i-kulgu/ik-skillbar
function EndFishing()
local res = exports["ik-skillbar"]:StartBar(3000)
if not res then
return false
else
return true
end
end
Last updated