Fishing (ESX)
ESX/QBCore: This script requires purchase of either the ESX or QBCore version.
Description
This script adds the ability to fish in any body of water, on your ESX 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
Upload the script to your server's "resources" folder (or any [sub_directory])
Configure settings to your needs in
config.luaExecute
dam_fishing.sqlon your database, or manually add the rod item and fish species you set inconfig.luaEnsure 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.
Code is accessible
No
Subscription-based
No
Lines (approximately)
~200
Requirements
ESX
Support
Yes
Last updated
