A NoPixel-style fishing job for ESX. Players rent a boat at the pier below the amusement park, drop anchor at sea, fish with a fishing rod item and sell their catch.
Features
- Boat rental (
suntrap) from an NPC at the Del Perro pier through a qtarget zone, where the boat is also returned - Commands
/anchorand/pullanchorwith a 15-second progress bar; anchoring only works in the sea zone and at low speed - Using the
fishingroditem while anchored starts fishing; a skill check decides the catch of 1 to 4fish - Fish buyer zone; with the ESX inventory, selling pays the fixed
Config.Moneyamount for all fish carried - Adds the items
fishingrodandfishthrough the included SQL file - Includes
amix-taskbar, a progress bar with the exportstaskBarandcloseGuiFail - Configurable money and deposit amounts in
config.lua(Config.Money,Config.DepositMoney) - Inventory option
Config.Inv(esxornp); with the default valuenpthe author notes that you have to make some changes on the server side - Notifications use
ESX.ShowNotificationby default and can be replaced with your own notify
Requirements
- ESX (es_extended, loaded through the
esx:getSharedObjectevent) - PolyZone, qtarget
- tgiann-skillbar for the fishing skill check (not included)
- np-inventory if you keep
Config.Inv = "np"
Installation
- Import
amix-fishing/sql.sqlinto your database. - Copy
amix-fishingandamix-taskbarinto your resources directory. - Set
Config.Inv = "esx"inconfig.luaif you use the ESX inventory. - Add
ensure PolyZone,ensure amix-taskbarandensure amix-fishingto your server.cfg.
Notes
- The amounts in
config.luaare text values, which breaks the boat deposit check, and the server events do not verify what the client did, so reviewserver.luabefore using it on a live server.