Qadr_Docs
  • qadr_identity
    • Installation
      • Reboot 2023
      • Old RedemRP
    • Purchasable ambients For Reboot Version
      • Blackwater Saloon
      • Valentine Saloon
      • Valentine Train Station
      • Saint Denis Bazaar
      • Saint Denis Prison
      • Saint Denis Trolley - Soon
  • qadr_fishing
  • qadr_panel
  • qadr_train
    • For Reboot 2023
  • Qadr_Map
  • qadr_ui
    • Ledger System
    • 📒Usable Handheld Catalogue
    • 🐴Legendary Animal Menu
    • 🤠Player Menu UI
    • ⏸️Pause Menu UI
    • ⚒️Crafting Menu UI
    • 🗺️Usable Legendary Animal Maps
    • 🗺️Map Icon
    • ⭕Meters UI
    • 🃏Ability UI
    • 👮‍♀️Wanted UI
    • 💀Death Screen
    • 📃Emote UI / Radial Menu
    • 🛒Shop Info UI
    • 🃏Card Game UI
    • 🤠Bounty Poster
    • 🛂Honor UI
    • 🗒️Challenge Notification Disable
    • 🎖️Mini Leader Board
    • 📋Board Notify
    • ⚔️Score UI
    • 👊Punch Bar
    • 🔄Count Down
    • 🚨Wanted UI - Outdated
    • 🌡️Meters UI - OutDated
    • 👁️‍🗨️Icons UI
    • 🗺️Map UI
      • Mini Map
      • Map Info
      • Hovered Blip Name
    • 🛡️Rank UI
    • 🐟Fish UI
      • 🎣Bait UI
    • ℹ️Info UI
    • 💥Mission Text UI
    • 🔫Weapon Info UI
    • 🐎Horse Info UI
    • 📔Message UI
    • 🤠Prompt Blip For Entities
  • qadr_train_creator - Standalone
Powered by GitBook
On this page

qadr_fishing

Fishing Minigame For Redemrp

PreviousSaint Denis Trolley - SoonNextqadr_panel

Last updated 7 months ago

Code accessible

No

Subscription based

No

Lines (approximately)

1.900

Requirements

Support

Yes

For Older Version RedemRP

For Redemrp Reboot 2023

This script uses these data from your server :

Check inventoryitemimg folder for images.

qadr_fishing
   │   config.lua
   │   fxmanifest.lua
   │   readme.md
   │
   ├───Client
   │       client.lua
   │       eventhandler.lua
   │
   ├───inventoryitemimg
   │       *.png
   │
   ├───Server
   │       server.lua
   │
   └───Shared
           dataview.lua
           functions.lua
escrow_ignore {
    "api/*.lua",
    "config.lua",
    "Shared/dataview.lua",
    "readme.md",
}
Features
  • Changeable bait UI

  • Market system for selling fish.

  • Unlimited addable market

  • Selling large fish to market without inventory

  • Looting fish system

  • Large fish quality system for xp and money

  • All market has own xp and money multiplier

  • Custom Fish Desc. or use rdr2 default

  • Multi-language support

  • Rotting fish system

    • if you set true in config.

    • When the fish begins to rot, the selling price will decrease.

    • You can set fullrottentime

    • Check readme.md or config.lua

  • Use metadata

  • Include item images

  • Debug mode

    • If the marker color is blue, the fish are interested in your bait.

  • Rdr2 fish mini-game system

  • Changeable difficulty

  • Bait system for each fish

  • Low resmon : idle 0.0 active max. 0.8

  • No c# no JS only lua coded

All usable baits

Your bait item name must be like this. Item names are case-sensitive.

p_baitBread01x
p_baitCheese01x
p_baitCorn01x
p_baitCricket01x
p_finisheDragonfly01x
p_finisdFishlure01x
p_finishdCrawd01x
inventory items
["fish"] =  --Do not change item name
{
    label = "Fish",  --You can change this one
    description = "?????????",
    weight = 0.3,
    canBeDropped = true,
    canBeUsed = false,
    requireLvl = 0,
    limit = 20,
    imgsrc = "items/provision_fish_bluegill.png",
    type = "item_standard",


},
["p_baitBread01x"] =
{
    label = "Bread Bait",
    description = "?????????",
    weight = 0.01,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 32,
    imgsrc = "items/bread_bait.png",
    type = "item_standard",

},
["p_baitCheese01x"] =
{
    label = "Cheese Bait",
    description = "?????????",
    weight = 0.01,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 48,
    imgsrc = "items/cheese_bait.png",
    type = "item_standard",

},
["p_baitCorn01x"] =
{
    label = "Corn Bait",
    description = "?????????",
    weight = 0.01,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 48,
    imgsrc = "items/corn_bait.png",
    type = "item_standard",

},
["p_baitCricket01x"] =
{
    label = "Cricket Bait",
    description = "?????????",
    weight = 0.01,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 32,
    imgsrc = "items/cricket_bait.png",
    type = "item_standard",

},
["p_finisheDragonfly01x"] =
{
    label = "River Bait",
    description = "?????????",
    weight = 0.05,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 5,
    imgsrc = "items/river_bait.png",
    type = "item_standard",

},

["p_finisdFishlure01x"] =
{
    label = "Lake Bait",
    description = "?????????",
    weight = 0.05,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 5,
    imgsrc = "items/lake_bait.png",
    type = "item_standard",

},
["p_finishdCrawd01x"] =
{
    label = "Swamp Bait",
    description = "?????????",
    weight = 0.05,
    canBeDropped = true,
    canBeUsed = true,
    requireLvl = 0,
    limit = 5,
    imgsrc = "items/swamp_bait.png",
    type = "item_standard",

},
Market adding
["Valentine"] = {                               -- Valentine is the name of the market
    coords = vector3(-334.04, 789.53, 115.40),  -- Coordinates of the market
    marker_draw = true,                         -- Draw a marker on world
    marker_draw_range = 5.9,                    -- Range of the marker
    market_range = 1.2,                         -- Range of the market for button
    markercolor = vector3(0, 255, 0),           -- Color of the marker (r,g,b)
    markeralpha = 140,                          -- Transparency of the marker
    markerrotaion = true,                       -- Rotation of the marker (true of false)
    market_xp_multiplier = 1.0,                 -- Market multiplier character experience for selling
    market_money_multiplier = 1.0,              -- Market multiplier character money for selling
    blip = true,                                -- Draw a blip on map. (true/false) or delete line to disable
    blipname = "%s fish market",                -- Name of the blip (%s equals the name of the market)
    bliptip = "blip_shop_market_stall",         -- blip texture more blips = https://github.com/abdulkadiraktas/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures/blips
    scale = 0.4,                                -- Scale of the blip
}
Editable fish data

You can associate the fish food you want with the fish you want. So you can catch that fish with that bait. Check qadr.fishData array in your config.lua

Check example! If you want add all bait to any fish.

qadr.fishData = {
    [GetHashKey("A_C_FISHBLUEGIL_01_MS")] = {           -- do not change
        location = "River",                             -- do not change for now not important
        fishBait ={
            ["p_finisheDragonfly01x"] = true,           -- you can add more bait here. but you must add min one
            ["p_baitBread01x"] = true,
            ["p_baitCheese01x"] = true,
            ["p_baitCorn01x"] = true,
            ["p_baitCricket01x"] = true,
            ["p_finisdFishlure01x"] = true,
            ["p_finishdCrawd01x"] = true,
        },
        min = 0.2,                                      -- minimum weight of fish
        max = 0.9,                                      -- maximum weight of fish
        type = "smallfish",                             -- type of fish  No need change
        addinv = true,                                  -- This fish automatically added to inventory. DO NOT CHANGE!!
        name = "PROVISION_FISH_BLUEGILL",               -- name of fish DO NOT CHANGE !!
        ad = "Bluegill",                                -- name of fish for inventory meta data you can change
        desc = "PROVISION_BLUEGILL_DESC",               -- description of fish DO NOT CHANGE !!
        customdesc = "Custom Desc",                     -- custom description of fish. If you don't want to use this, just set nil or delete this line
    }
}

You can associate the fish food you want with the fish you want. So you can catch that fish with that bait. Check qadr.fishData array in your config.lua

Check example! If you want add all bait to any fish.

Rotting system

If you want you can use this system. Update these configs in your config.lua

rotten = false,         -- Enable rotten system
rottentime = 1,         -- starting time for rotten system  type : second
                        -- When will it start to rot after catching the fish?
                        -- Calculate price and xp for the fish
                        -- local time = now-catchtime
                        -- local percentage = (time/qadr.fishing.fullrottentime)*100
                        -- price = price-((price/100)*percentage)
                        -- xp = xp-((xp/100)*percentage)

fullrottentime = 30000, -- ending time for rotten system type : second
                        -- When will it end to rot after catching the fish?
                        -- Calculate price and xp for the fish
                        -- price = 0
                        -- xp = 0
Looting Fish

If you want looting fish on ground, set this to true in your config.lua

uselootfish = true
-- If you set to true, idle ms value increase to 0.02
-- But you can collect fish on the ground.
Multi Lang. Example

Add this to qadr.language array in your config.lua

tr = {
    ["openmarket"] = "Marketi Aç",
    .
    .
    .
}

After that: set language in your config.lua

qadr.fishing = {
    lang = "tr",
    .
    .
}
Triggerable client events
TriggerEvent("qadr_fishing:opensellmenu",marketname) --Open market sell menu with name from client
TriggerClientEvent("qadr_fishing:opensellmenu",source, marketname) --Open market sell menu with name from server
Listenable Client Events
AddEventHandler("qadr_fishing:getAllFish",function(inventoryitems)
  --Getting all inventory items from server
  print(json.encode(inventoryitems))
end)

AddEventHandler("qadr_fishing:UseBait",function(bait,baitname)
  print(bait,baitname)
end)
Listenable Server Events
AddEventHandler("qadr_fishing:AddFish", function(fishdata)
  print(json.encode(fishdata)
  -- catch fish
end)
AddEventHandler("qadr_fishing:AddFishWhitOutWeight", function(fishdata)
  print(json.encode(fishdata)
  -- loot fish
end)
AddEventHandler("qadr_fishing:SellFish", function(fishdata)
  -- sell fish
  print(json.encode(fishdata)
end)
AddEventHandler("qadr_fishing:RemoveBait", function(itemname)
  print(itemname)
  -- delete bait item from inventory
end)

SETUP

  1. Download script from keymaster

  2. Extrach zip to your resource folder

  3. Read this page for setup

  4. Do not change "fish" item name

  5. Check config.lua for settings

  6. Add "ensure qadr_fishing" to your server.cfg file after requirements

If you need metadata support for inventory, you can use this pr changes.

For Reboot version check this PR : So, you can see fish images, descriptions, and even their levels in your inventory.

Copy inventory item side and paste/update items from inventory config or check .

Copy images from "inventoryitemimg" folder then paste inventory item image side or

https://github.com/abdulkadiraktas/redemrp_inventory/commit/0c937d3ea89558b6ff0eda851de18294d12baea3
https://github.com/abdulkadiraktas/redemrp_inventory/commit/9f14f1ecbe14f4b46c1356e0f727c4970cabe61b
this PR
check this PR
redem_roleplay
redemrp_inventory
Also need this inventoryPR changes
qadr_version of menu base
West World | Qadr_Fishing
For Older Version RedemRP
West World | Qadr_Fishing
For Redemrp Reboot 2023
[PAID] qadr_fishing for [RedEM-RP] v0.1Cfx.re Community
Page cover image
Logo
Join the West World Discord Server!Discord
Logo
Logo
Logo