Shops

Guide for editing the shops functionality.

All current market rates and data can be found in peuren_fishing/shops.json file.

Config.Shops = { --Don't touch this
    ["supplystore"] = {  --The Shops ID 
        Blip = { --Blip Configuration for the shop. Set this to false to disable the blip for a certain shop
            title = "Fishing Shop", -- Title of the sprite
            sprite = 356, --Sprite of the blip. https://docs.fivem.net/docs/game-references/blips/#blips
            color = 43, --Color of the blip https://docs.fivem.net/docs/game-references/blips/#blip-colors
            size = 1.0,  --Size of the  blip
            pos = vector3(727.05, 4169.28, 40.71)--Blip position
        },
        Currency = {--Currency that is used to pay/purchase things at the shop
            account = 'cash',-- Supported types: black_money, bank, cash
            accountItem = {
                enabled = false,--Is currency to pay/purchase an item?
                itemName = 'markedbills'--The currency item that is used to pay/purchase things in the shop
            }
        },
        Ped = {
            model = 's_m_m_ammucountry',--Ped model, model names can be found @ https://docs.fivem.net/docs/game-references/ped-models/
            pos = vector3(727.05, 4169.28, 39.69),--Ped position
            heading = 7.56,--Ped heading
            animation = {--This controls the peds animation, if you don't want this, make it to: animation = false
                --Supported anim data format:
                    -- anim = ''
                    -- dict = ''
                    -- scenario = ''
                --Examples:
                    -- anim = 'missexile3'
                    -- dict = 'ex03_dingy_search_case_base_michael'
                scenario = 'WORLD_HUMAN_SMOKING'
            }
        },
        Market = {
            SaleAge = 86400, --In seconds. How long sales affect the item prices.
            MarketCycle = 600,--In seconds. How frequently item prices are updated.
            PriceChangeFactor = 0.5, --Intesnity of the price fluctuations.
        },
        Buy = { --Items that can be bought at this shop
            -- {name = "item spawn name", price = item price },
            { name = "basicfishingrod", price = 1000 },
            { name = "advancedfishingrod", price = 2000 },
            { name = "profishingrod", price = 3000 },
        },
        Sell = { --Fish that can  be sold in this shop
            -- {name = "fish item spawn name", min = min kg price, max = max kg price },
            -- Final price is calculated with this formula totalAmount = floor(fishWeight (in grams) * (currentPrice / 1000)), so for example if the fish weighs 500g and the current salmon price is 300 the player will receive 150
            { name = "sparling", min = 60, max = 90 },
            { name = "pike", min = 60, max = 90 },
            { name = "catfish", min = 70, max = 100 },
            { name = "bream", min = 50, max = 70 },
            { name = "eal", min = 80, max = 120 },
            { name = "cod", min = 100, max = 140 },
            { name = "redfish", min = 100, max = 130 },
            { name = "largemouthbass", min = 100, max = 150 },
            { name = "gayfish", min = 120, max = 180 },
            { name = "salmon", min = 150, max = 210 },
        }
    }
}

Last updated