Configuration
Configuration for inFish Resource
// Config
```lua
Config = {}
Config.InteractionKey = 38 -- E key (ID: 38)
Config.MarketNUIMsg = 'openMarket' -- NUI Market dont Touch
Config.CloseNUIMsg = 'closeMarket' -- NUI dont Touch
Config.TextDistance = 5.0 -- text display distance
Config.LogoName = "inGain Scripts Fish" -- Logo Name
Config.DefaultLanguage = "en" -- default lang - tr - en
Config.NPCs = {
{
model = "a_m_m_farmer_01",
coords = vector3(-3414.93, 951.96, 8.35),
text = "Fish Man [E]",
interactionKey = 38,
textDistance = 5.0,
marketMessage = "openMarket", --dont touch
closeMessage = "closeMarket"
},
{
model = "a_m_y_fisherman_01",
coords = vector3(-1605.3, 5256.5, 1.3),
text = "Balıkçı [E]",
interactionKey = 38,
textDistance = 5.0,
marketMessage = "openMarket",
closeMessage = "closeMarket"
}
}
Config.FishTypes = {
-- Normal Fish
normal = {
{ name = "anchovy", label = "Hamsi", chance = 50, price = 5, image = "images/anchovy.png" }, -- %50 chance, 5$
{ name = "smallbluefish", label = "Küçük Lüfer", chance = 30, price = 15, image = "images/smallbluefish.png" }, -- %30 chance, 15$
{ name = "bluefish", label = "Lüfer", chance = 15, price = 30, image = "images/bluefish.png" }, -- %15 chance, 30$
{ name = "bonitosfish", label = "Palamut", chance = 30, price = 15, image = "images/bonitosfish.png" }, -- %30 chance, 15$
{ name = "garfish", label = "Zargana", chance = 15, price = 30, image = "images/garfish.png" }, -- %15 chance, 30$
{ name = "perch", label = "Levrek", chance = 30, price = 15, image = "images/perch.png" }, -- %30 chance, 15$
{ name = "whitepearl", label = "Beyaz inci", chance = 15, price = 30, image = "images/whitepearl.png" }, -- %15 chance, 30$
{ name = "bluepearl", label = "Mavi inci", chance = 30, price = 15, image = "images/bluepearl.png" }, -- %30 chance, 15$
{ name = "redpearl", label = "Red inci Balığı", chance = 15, price = 30, image = "images/redpearl.png" }, -- %15 chance, 30$
{ name = "fish", label = "Küçük Balık", chance = 15, price = 30, image = "images/fish.png" }, -- %15 chance, 30$
{ name = "kilicbaligi", label = "Kılıç Balığı", chance = 15, price = 30, image = "images/kilicbaligi.png" }, -- %15 chance, 30$
{ name = "renklibalik", label = "Palyaço Balığı", chance = 15, price = 30, image = "images/renklibalik.png" }, -- %15 chance, 30$
{ name = "trokanya", label = "Trokanya Balığı", chance = 15, price = 30, image = "images/trokanya.png" }, -- %15 chance, 30$
{ name = "kefal", label = "Lefaş Balığı", chance = 15, price = 30, image = "images/kefal.png" }, -- %15 chance, 30$
{ name = "pantfish", label = "Pantolon Balığı", chance = 15, price = 30, image = "images/pantfish.png" }, -- %15 chance, 30$
},
-- Ilegal Fish
illegal = {
{ name = "sharkfish", label = "Köpek Balığı", chance = 5, price = 100, image = "images/sharkfish.png" }, -- %5 chance, 100$
{ name = "carettacaretta", label = "Kaplumbağa", chance = 2, price = 250, image = "images/carettacaretta.png" }, -- %2 chance, 250$
{ name = "ahtapot", label = "Ahtapot", chance = 2, price = 250, image = "images/ahtapot.png" }, -- %2 chance, 250$
{ name = "hayaletvatoz", label = "Hayalet Vatoz", chance = 2, price = 250, image = "images/hayaletvatoz.png" }, -- %2 chance, 250$
{ name = "altinbalik", label = "Altın Balık", chance = 2, price = 250, image = "images/altinbalik.png" }, -- %2 chance, 250$
{ name = "aslanbaligi", label = "Aslan Balığı", chance = 2, price = 250, image = "images/aslanbaligi.png" }, -- %2 chance, 250$
{ name = "balon", label = "Lagocephalus Balığı", chance = 2, price = 250, image = "images/balon.png" }, -- %2 chance, 250$
}
}
Config.FishingZones = {
normalZones = {
{ coords = vector3(-3422.5, 955.2, 8.4), radius = 50.0, blip = true }, -- Blip true
{ coords = vector3(-1605.3, 5256.5, 1.3), radius = 50.0, blip = false } -- Blip false
},
illegalZones = {
{ coords = vector3(-2776.26, -720.14, 0.51), radius = 50.0, blip = true } -- Blip true
}
}
-- category : rods - baits - boats
Config.MarketItems = {
{ name = "fishingrod1", label = "Fishing Rod", price = 5, image = "images/fishingrod1.png", category = "rods" },
{ name = "infishbait", label = "Fish Bait", price = 3, image = "images/fishbait.png", category = "baits" },
{ name = "speedboat", label = "Speed Boat", price = 150, image = "images/speedboat.png", category = "boats" },
}
-- Fishing Rod Levels and Luck Multipliers
Config.FishingRods = {
["fishingrod1"] = { label = "Seviye 1 Olta", chanceMultiplier = 1.0 },
["fishingrod2"] = { label = "Seviye 2 Olta", chanceMultiplier = 1.2 },
["fishingrod3"] = { label = "Seviye 3 Olta", chanceMultiplier = 1.5 },
["fishingrod4"] = { label = "Seviye 4 Olta", chanceMultiplier = 2.0 },
["fishingrod5"] = { label = "Seviye 5 Olta", chanceMultiplier = 2.5 }
}
-- Line upgrade and success rates
Config.RodUpgrade = {
["fishingrod1"] = { nextRod = "fishingrod2", chance = 50 },
["fishingrod2"] = { nextRod = "fishingrod3", chance = 40 },
["fishingrod3"] = { nextRod = "fishingrod4", chance = 30 },
["fishingrod4"] = { nextRod = "fishingrod5", chance = 20 }
}
-- LANG
Config.Languages = {
en = {
wiki = "WIKI",
market = "MARKET",
upgrade = "UPGRADE",
buy = "Buy from marketplace",
sell = "Sell to marketplace",
rods = "Rods",
baits = "Baits",
boats = "Boats",
accessories = "Accessories",
legal = "Legal",
illegal = "Illegal",
all = "All",
goBack = "Go Back",
upgradeText = "UPGRADE",
upgradeChance = "Chance",
buymarket = "Buy from Market",
sellmarket = "Sell at market",
all="All",
legal="Legal",
illegal="Illegal",
accessories="Accessories",
rods="Rods",
baits="Baits",
bots="Boats"
},
tr = {
wiki = "BİLGİ",
market = "PAZAR",
upgrade = "YÜKSELT",
buy = "Pazardan satın al",
sell = "Pazara satış yap",
rods = "Oltalar",
baits = "Yemler",
boats = "Botlar",
accessories = "Aksesuarlar",
legal = "Yasal",
illegal = "Yasadışı",
all = "Hepsi",
goBack = "Geri Dön",
upgradeText = "YÜKSELT",
upgradeChance = "Şans",
buymarket="Marketten Satın Al",
sellmarket="Markette Sat",
all="Hepsi",
legal="Legal",
illegal="Illegal",
accessories="Accessories",
rods="Rods",
baits="Baits",
bots="Boats"
}
}
Config.NotifyLanguages = {
en = {
-- Server Side Notifications
cantFishHere = "You cannot fish here in this area: %s!",
fishingStarted = "You caught a fish: %s!",
fishEscaped = "The fish escaped! Try again.",
boatUsed = "You used the boat and received the key!",
-- Client Side Notifications
fishingAlready = "You are already fishing!",
cantFishInThisArea = "You cannot fish in this area!",
noWaterInFront = "No water in front, you can't fish here!",
fishingInProgress = "You started fishing...",
rodMovement = "Your rod is moving, be careful!",
stoppedFishing = "You stopped fishing.",
fishEscapedClient = "The fish escaped!"
},
tr = {
-- Server Tarafı Bildirimleri
cantFishHere = "Bu bölgede %s balık tutamazsınız!",
fishingStarted = "%s yakaladınız!",
fishEscaped = "Balık kaçtı! Tekrar deneyin.",
boatUsed = "Botu kullandınız ve anahtar aldınız!",
-- Client Tarafı Bildirimleri
fishingAlready = "Zaten balık tutuyorsunuz!",
cantFishInThisArea = "Bu bölgede balık tutamazsınız!",
noWaterInFront = "Önünüzde su yok, burada balık tutamazsınız!",
fishingInProgress = "Balık tutuyorsunuz...",
rodMovement = "Oltanızda bir hareketlenme var, dikkatli olun!",
stoppedFishing = "Balık tutmayı durdurdunuz.",
fishEscapedClient = "Balık kaçtı!"
}
}
Config.inGainNotifyLang = {
en = {
playerNotFound = "Player not found!",
itemBought = "%s successfully purchased! (%s$)",
notEnoughMoney = "You don't have enough money!",
invalidItem = "Invalid item!",
invalidFish = "Invalid fish!",
fishSold = "You sold %s of %s for %s$!",
notEnoughFish = "You don't have enough fish!",
rodLevelUp = "Congratulations! Your rod level has increased.",
rodBroken = "Your rod is broken! Try again.",
noRodForUpgrade = "You don't have the required rod for upgrading!",
noRodAvailable = "You don't have any rod to upgrade!"
},
tr = {
playerNotFound = "Oyuncu bulunamadı!",
itemBought = "%s başarıyla satın alındı! (%s$)",
notEnoughMoney = "Yeterli paranız yok!",
invalidItem = "Geçersiz ürün!",
invalidFish = "Geçersiz balık!",
fishSold = "%s adet %s sattınız, %s$ kazandınız!",
notEnoughFish = "Yeterli miktarda balığınız yok!",
rodLevelUp = "Tebrikler! Olta seviyen yükseltildi.",
rodBroken = "Olta kırıldı! Şansını tekrar dene.",
noRodForUpgrade = "Yükseltmek için gerekli oltaya sahip değilsiniz!",
noRodAvailable = "Yükseltecek bir oltanız yok!"
}
}
```
Configurable Settings for the Fishing Script
Change the NPC Interaction Key
You can modify the key used to interact with the NPC from here:
luaKopyalaDüzenleConfig.InteractionKey = 38 -- "E" Key (ID: 38)Check other key IDs here: FiveM Control References
Adjust the NPC Text Display Distance
Modify how far the text above the NPC can be seen:
luaKopyalaDüzenleConfig.TextDistance = 5.0 -- Text display distanceDo NOT Modify These Settings ⚠
The following settings are crucial for proper functionality. Do not change them!
luaKopyalaDüzenleConfig.MarketNUIMsg = 'openMarket' -- NUI Market (Do not touch)
Config.CloseNUIMsg = 'closeMarket' -- NUI Close (Do not touch)Customize the UI Logo
Change the text displayed in the logo:
luaKopyalaDüzenleConfig.LogoName = "inGain Scripts Fish" -- Logo NameSet the Default Language
Modify the default language of the script:
luaKopyalaDüzenleConfig.DefaultLanguage = "en" -- Default language (Options: "tr" - Turkish, "en" - English)NPC Configuration
You can add or remove NPCs from here. Make sure not to edit the fields marked as "Do not touch."
luaKopyalaDüzenleConfig.NPCs = {
{
model = "a_m_m_farmer_01", -- NPC Model Name
coords = vector3(-3414.93, 951.96, 8.35), -- NPC Coordinates
text = "Fish Man [E]", -- Text displayed above the NPC
interactionKey = 38, -- Key to open the NPC menu
textDistance = 5.0, -- Distance at which the NPC text is visible
marketMessage = "openMarket", -- Do not touch
closeMessage = "closeMarket" -- Do not touch
}
}Fish Types
Fish are divided into two categories: Normal and Illegal. Each type has different fishing locations.
luaKopyalaDüzenleConfig.FishTypes = {
-- Normal Fish
normal = {
{ name = "anchovy", label = "Anchovy", chance = 50, price = 5, image = "images/anchovy.png" }, -- 50% chance, $5
{ name = "smallbluefish", label = "Small Bluefish", chance = 30, price = 15, image = "images/smallbluefish.png" }, -- 30% chance, $15
{ name = "bluefish", label = "Bluefish", chance = 15, price = 30, image = "images/bluefish.png" } -- 15% chance, $30
},
-- Illegal Fish
illegal = {
{ name = "sharkfish", label = "Shark", chance = 5, price = 100, image = "images/sharkfish.png" }, -- 5% chance, $100
{ name = "carettacaretta", label = "Turtle", chance = 2, price = 250, image = "images/carettacaretta.png" } -- 2% chance, $250
}
}Fishing Zones
You can define fishing locations, set the radius for each zone, and enable/disable blips on the map.
luaKopyalaDüzenleConfig.FishingZones = {
normalZones = {
{ coords = vector3(-3422.5, 955.2, 8.4), radius = 50.0, blip = true }, -- Blip enabled
{ coords = vector3(-1605.3, 5256.5, 1.3), radius = 50.0, blip = false } -- Blip disabled
},
illegalZones = {
{ coords = vector3(-2776.26, -720.14, 0.51), radius = 50.0, blip = true } -- Blip enabled
}
}Modify these settings to adjust fishing areas, catch radius, and map blip visibility.
Need Help?
If you encounter any issues, feel free to reach out to us on Discord.
🎣 Happy Fishing! 🎣
Last updated