Fishing (QB)

Only available at DrAceM.com
Description

This script adds the ability to fish in any body of water, on your QBCore server! Simply provide players with a way of obtaining a fishing rod item (add it to a shop, for example). Players can then use their fishing rod when facing water to start fishing. The player will perform a fishing animation with a visible fishing rod in their hand and periodically have a chance for a fish to bite. When the fish bites, the player must perform a skill check to catch the fish, which adds the species of fish to their inventory. These fish can be sold at the fish market for money.

By default, the Config.CommonFish species (carp) cannot be sold and is caught when a random chance generator is not successful to obtain a better species. If you would like this fish to be sold as well, simply add it to the Config.Fish table, with the chance as 100 and price as whatever you desire. Use the config.lua file to change the rod item name, chance to catch each fish, timing of the skill check, species of fish available, fish market info, etc. All display text can be customized in locales/en.lua or whatever language you are using.

Installation
  1. Upload the script to your server's "resources" folder (or any [sub_directory])

  2. Configure settings to your needs in config.lua

  3. Add the items in items.txt to your qb-core/shared/items.lua table, editing the names if you have customized them in config.lua

  4. Ensure the script is starting in your server.cfg

Usage

Use the fishing rod item when facing any body of water, to start fishing. Press E at the right time to catch a fish. Sell fish at the fish market.

Config

Code is accessible

No

Subscription-based

No

Lines (approximately)

~200

Requirements

QBCore

Support

Yes

Last updated