• VIP Lifetime 20 euro this weekend! 25 % off everything: VIP and Credits!

    Its the holiday month, therefor VIP and Credits have been reduced in price!
    VIP does not need any credits to unlock content and download it.
    Payments via Crypto: Please open a ticket, if you experience any issues, or if you miss your coin as an option in the list we have alot of wallets available.

STANDALONE ADN'S Script Pack and get individual scripts Also 💸💸💸 (1 Viewer)

Fivem Mother Hub

Active member
Aug 2, 2023
86
111
33
Credits
719

ADN'S | iAdmin | NUI | Best Admin Menu | FiveM Scripts​

Preview = link


ADN'S | iBurglary | UI/RageUI V2 | FiveM Scripts​

Preview = link


ADN'S | iCreator - RageUI V2 | FiveM Shop​

Preview = link


ADN'S | iDrugs | FiveM Store​

Preview = link


ADN'S | iGarage | FiveM Scripts​

Preview = link


ADN'S | iHud-V2 | NUI | Beautiful animations | FiveM Scripts​

Preview = link


ADN'S | iMarket | NUI | Advanced Shop System | FiveM Scripts​

Preview = link



Code:
Config_Market = {}
Config_Market.Shops_Object = "prop_washing_basket_01"
-- Framework Configuration
Config_Market.ESX = {
    method = "function", -- Use "function" for export method or "event" for triggering an event
    extended_resourceName = "es_extended", -- ESX extended resource name for export
    eventName = "esx:getSharedObject" -- Event name for ESX retrieval
}

-- Default Blip Settings
Config_Market.Blips = {
    label = "Shop",
    sprite = 52,
    scale = 0.8,
    colour = 2
}

-- Shop Configuration
Config_Market.Shops = {
    {
        name = "Grocery Store",
        zone = { position = vector3(21.0998, -1351.2166, 29.3269), maxDist = 50.0 },
        cart_position = vector3(25.7785, -1350.9460, 29.3312),
        obj_cart_position = vector3(21.2001, -1354.7544, 29.3333),
        access_to_shop = true, -- Set to a table of identifiers for restricted access
        object_name = "prop_washing_basket_01", -- Prop name for carts
        Categories = {
            Drinks = {
                position = vector3(17.8290, -1353.8331, 29.3279),
                distance = 5.5,
                Items = {
                    { name = "water", label = "Water", price = 5 },
                    { name = "cola", label = "Cola", price = 8 },
                }
            },
            Food = {
                position = vector3(14.9649, -1354.1768, 29.3080),
                distance = 5.5,
                Items = {
                    { name = "bread", label = "Bread", price = 10 },
                    { name = "apple", label = "Apple", price = 7 },
                }
            }
        },
        Blip = { label = "Grocery Store", sprite = 52, scale = 0.9, colour = 2 }
    }
}

-- Notifications
Config_Market.Notifications = {
    cartTaken = "You have taken the cart.",
    cartDeposited = "Cart deposited.",
    notEnoughMoney = "You don't have enough money.",
    itemBought = "You bought %s for $%d."
}


-- Database Queries
Config_Market.Database = {
    selectPlayerItems = "SELECT * FROM `users` WHERE `identifier` = ?",
    updateItemQuantity = "UPDATE `inventory` SET `quantity` = ? WHERE `item` = ? AND `owner` = ?",
    addItemQuery = "INSERT INTO `inventory` (owner, item, quantity) VALUES (?, ?, ?)",
    removeItemQuery = "DELETE FROM `inventory` WHERE `item` = ? AND `owner` = ?"
}


-- Progress Bars
Config_Market.ProgressBars = {
    buyItem = {
        duration = 2000,
        label = "Processing purchase...",
        disable = { combat = true, car = true }
    }
}

-- Skill Check
Config_Market.SkillCheck = {
    difficulty = "medium", -- Can be "easy", "medium", "hard", or custom table
    inputs = { "e", "q", "space" } -- Custom keys for challenges
}

-- Ox Inventory Integration
Config_Market.Inventory = {
    useOxInventory = true, -- If true, enable Ox Inventory functions
    addItem = function(inv, item, count)
        return exports.ox_inventory:AddItem(inv, item, count)
    end,
    removeItem = function(inv, item, count)
        return exports.ox_inventory:RemoveItem(inv, item, count)
    end
}

ADN'S | iNotification V2 | NUI | Multiples Choice | FiveM Store​

Preview = link


ADN'S | iNotificationV3 | NUI Advanced Notification | FiveM Scripts​

Preview = link


ADN'S | Pause Menu | NUI | FiveM Scripts​

Preview = link


ADN'S | iWhitelist | Advanced Whitelist system | FiveM Scripts​

Preview = link


Or Get Full Pack Here ONLY
 
Last edited:

Fivem Mother Hub

Active member
Aug 2, 2023
86
111
33
Credits
719
iMarket config.lua is not on the ressource
updated check now
config added

Code:
Config_Market = {}
Config_Market.Shops_Object = "prop_washing_basket_01"
-- Framework Configuration
Config_Market.ESX = {
    method = "function", -- Use "function" for export method or "event" for triggering an event
    extended_resourceName = "es_extended", -- ESX extended resource name for export
    eventName = "esx:getSharedObject" -- Event name for ESX retrieval
}

-- Default Blip Settings
Config_Market.Blips = {
    label = "Shop",
    sprite = 52,
    scale = 0.8,
    colour = 2
}

-- Shop Configuration
Config_Market.Shops = {
    {
        name = "Grocery Store",
        zone = { position = vector3(21.0998, -1351.2166, 29.3269), maxDist = 50.0 },
        cart_position = vector3(25.7785, -1350.9460, 29.3312),
        obj_cart_position = vector3(21.2001, -1354.7544, 29.3333),
        access_to_shop = true, -- Set to a table of identifiers for restricted access
        object_name = "prop_washing_basket_01", -- Prop name for carts
        Categories = {
            Drinks = {
                position = vector3(17.8290, -1353.8331, 29.3279),
                distance = 5.5,
                Items = {
                    { name = "water", label = "Water", price = 5 },
                    { name = "cola", label = "Cola", price = 8 },
                }
            },
            Food = {
                position = vector3(14.9649, -1354.1768, 29.3080),
                distance = 5.5,
                Items = {
                    { name = "bread", label = "Bread", price = 10 },
                    { name = "apple", label = "Apple", price = 7 },
                }
            }
        },
        Blip = { label = "Grocery Store", sprite = 52, scale = 0.9, colour = 2 }
    }
}

-- Notifications
Config_Market.Notifications = {
    cartTaken = "You have taken the cart.",
    cartDeposited = "Cart deposited.",
    notEnoughMoney = "You don't have enough money.",
    itemBought = "You bought %s for $%d."
}


-- Database Queries
Config_Market.Database = {
    selectPlayerItems = "SELECT * FROM `users` WHERE `identifier` = ?",
    updateItemQuantity = "UPDATE `inventory` SET `quantity` = ? WHERE `item` = ? AND `owner` = ?",
    addItemQuery = "INSERT INTO `inventory` (owner, item, quantity) VALUES (?, ?, ?)",
    removeItemQuery = "DELETE FROM `inventory` WHERE `item` = ? AND `owner` = ?"
}


-- Progress Bars
Config_Market.ProgressBars = {
    buyItem = {
        duration = 2000,
        label = "Processing purchase...",
        disable = { combat = true, car = true }
    }
}

-- Skill Check
Config_Market.SkillCheck = {
    difficulty = "medium", -- Can be "easy", "medium", "hard", or custom table
    inputs = { "e", "q", "space" } -- Custom keys for challenges
}

-- Ox Inventory Integration
Config_Market.Inventory = {
    useOxInventory = true, -- If true, enable Ox Inventory functions
    addItem = function(inv, item, count)
        return exports.ox_inventory:AddItem(inv, item, count)
    end,
    removeItem = function(inv, item, count)
        return exports.ox_inventory:RemoveItem(inv, item, count)
    end
}
 

Users who are viewing this thread

Top