Configuration

All v42 scripts include clearly structured and editable files, featuring exports, client- and server-side functions, and configuration options. Designed to give developers full control and flexibility

View Configuration
Config = Config or {}

-- Debug mode
Config.Debug = false -- Set to false for production

-- Core name
Config.CoreName = 'qb-core' -- Change to 'es_extended' if using ESX

-- Framework
Config.Framework = 'qb' -- Framewerk 'qb' or 'esx'

-- Target system: 'qb-target' or 'ox_target'
Config.Target = 'qb-target'

-- Inventory system (qb-inventory or ox_inventory)
Config.Inventory = 'qb-inventory' -- Change to 'ox_inventory' if using OX

-- Language settings
Config.Language = {
    Requirements = "Requirements",
    Rewards = "Rewards",
    Trade = "Trade",
    Open = 'Open',
    Currency = '$',

    --
    Enoug_money = "You don't have enough money!",
    Trade_succefull = 'Trade completed successfully!'
}

Config.ShopPed = {
    ['Jones Pawnshop'] = {
        pos = vector4(151.32, -707.85, 47.08, 248.25),
        model = 'mp_m_shopkeep_01',
        blip = {
            sprite = 52,
            color = 2,
            scale = 0.8,
            name = "Grove Street Shop"
        }
    },
    ["Bruno's Pawnshop"] = {
        pos = vector4(160.37, -710.99, 47.08, 70.21),
        model = 'mp_m_shopkeep_01',
        blip = {
            sprite = 52,
            color = 1,
            scale = 0.8,
            name = "Dick Street Store"
        }
    },
}


Config.PawnShops = {
    ['Jones Pawnshop'] = {                                                          -- Shop name
        jobName = 'police',                                                         -- Set UI available for only a Job
        shopName = 'Jones Pawnshop',                                                -- Pawnshop name
        order = { "Electronics", "Tools", "Jewelry", "Miscellaneous" },             -- Sort your categories
        data = {
            ['Electronics'] = {                                                     -- Category name
                ['phone'] = {                                                       -- item name/ image name
                    ['label'] = 'Phone',                                            -- Item name
                    ['required'] = {                                                -- Required items
                        phone = { amount = 1, label = 'Phone' },                    -- Item / Label
                    },
                    ['rewards'] = {                                                 -- Rewards (multiple rewards possible)
                        cash = { amount = 1500, minAmount = 1200, label = 'Cash' }, -- Item / Label (use "cash" to use currency)
                    }
                },
                ['laptop'] = {
                    ['label'] = 'Laptop',
                    ['required'] = {
                        laptop = { amount = 1, label = 'Laptop' },
                        copper = { amount = 2, label = 'Copper' },
                    },
                    ['rewards'] = {
                        lockpick = { amount = 2, minAmount = 1, label = 'Lockpick' },
                        cash = { amount = 3000, minAmount = 2500, label = 'Cash' },
                    }
                },
                ['radio'] = {
                    ['label'] = 'Radio',
                    ['required'] = {
                        radioscanner = { amount = 1, label = 'Radio Scanner' },
                    },
                    ['rewards'] = {
                        steel = { amount = 2, minAmount = 1, label = 'Steel' },
                        cash = { amount = 1000, minAmount = 900, label = 'Cash' },
                    }
                },
                ['tablet'] = {
                    ['label'] = 'Tablet',
                    ['required'] = {
                        tablet = { amount = 1, label = 'Tablet' },
                    },
                    ['rewards'] = {
                        plastic = { amount = 2, minAmount = 1, label = 'Plastic' },
                        cash = { amount = 2000, minAmount = 1900, label = 'Cash' },
                    }
                },
                ['fitbit'] = {
                    ['label'] = 'Fitbit',
                    ['required'] = {
                        fitbit = { amount = 1, label = 'Fitbit' },
                    },
                    ['rewards'] = {
                        cash = { amount = 1000, minAmount = 900, label = 'Cash' },
                    }
                },
                ['iphone'] = {
                    ['label'] = 'iPhone',
                    ['required'] = {
                        iphone = { amount = 1, label = 'iPhone' },
                    },
                    ['rewards'] = {
                        copper = { amount = 1, minAmount = 1, label = 'Copper' },
                        cash = { amount = 2500, minAmount = 2400, label = 'Cash' },
                    }
                },
            },
            ['Tools'] = {
                ['drill'] = {
                    ['label'] = 'Drill',
                    ['required'] = {
                        drill = { amount = 1, label = 'Drill' },
                    },
                    ['rewards'] = {
                        cash = { amount = 800, minAmount = 700, label = 'Cash' },
                    }
                },
                ['lockpick'] = {
                    ['label'] = 'Lockpick',
                    ['required'] = {
                        lockpick = { amount = 1, label = 'Lockpick' },
                    },
                    ['rewards'] = {
                        lockpick = { amount = 1, minAmount = 1, label = 'Lockpick' },
                        cash = { amount = 500, minAmount = 400, label = 'Cash' },
                    }
                },
                ['screwdriverset'] = {
                    ['label'] = 'Screwdriver Set',
                    ['required'] = {
                        screwdriverset = { amount = 1, label = 'Screwdriver Set' },
                    },
                    ['rewards'] = {
                        cash = { amount = 600, minAmount = 500, label = 'Cash' },
                    }
                },
                ['advancedlockpick'] = {
                    ['label'] = 'Advanced Lockpick',
                    ['required'] = {
                        advancedlockpick = { amount = 1, label = 'Advanced Lockpick' },
                    },
                    ['rewards'] = {
                        cash = { amount = 1200, minAmount = 1100, label = 'Cash' },
                    }
                },
                ['thermite'] = {
                    ['label'] = 'Thermite',
                    ['required'] = {
                        thermite = { amount = 1, label = 'Thermite' },
                    },
                    ['rewards'] = {
                        cash = { amount = 1500, minAmount = 1400, label = 'Cash' },
                    }
                },
                ['toolbox'] = {
                    ['label'] = 'Toolbox',
                    ['required'] = {
                        toolbox = { amount = 1, label = 'Toolbox' },
                    },
                    ['rewards'] = {
                        cash = { amount = 1000, minAmount = 900, label = 'Cash' },
                    }
                },
            },
            ['Jewelry'] = {
                ['goldchain'] = {
                    ['label'] = 'Gold Chain',
                    ['required'] = {
                        goldchain = { amount = 1, label = 'Gold Chain' },
                    },
                    ['rewards'] = {
                        cash = { amount = 1500, minAmount = 1400, label = 'Cash' },
                    }
                },
                ['diamond_ring'] = {
                    ['label'] = 'Diamond Ring',
                    ['required'] = {
                        diamond_ring = { amount = 1, label = 'Diamond Ring' },
                    },
                    ['rewards'] = {
                        cash = { amount = 3000, minAmount = 2900, label = 'Cash' },
                    }
                },
                ['rolex'] = {
                    ['label'] = 'Rolex',
                    ['required'] = {
                        rolex = { amount = 1, label = 'Rolex' },
                    },
                    ['rewards'] = {
                        cash = { amount = 5000, minAmount = 4900, label = 'Cash' },
                    }
                },
                ['goldbar'] = {
                    ['label'] = 'Gold Bar',
                    ['required'] = {
                        goldbar = { amount = 1, label = 'Gold Bar' },
                    },
                    ['rewards'] = {
                        cash = { amount = 6000, minAmount = 5900, label = 'Cash' },
                    }
                },
                ['10kgoldchain'] = {
                    ['label'] = '10k Gold Chain',
                    ['required'] = {
                        goldchain = { amount = 2, label = 'Gold Chain' },
                    },
                    ['rewards'] = {
                        cash = { amount = 1800, minAmount = 1700, label = 'Cash' },
                    }
                },
            },
            ['Miscellaneous'] = {
                ['metalscrap'] = {
                    ['label'] = 'Metal Scrap',
                    ['required'] = {
                        metalscrap = { amount = 10, label = 'Metal Scrap' },
                    },
                    ['rewards'] = {
                        cash = { amount = 1000, minAmount = 900, label = 'Cash' },
                    }
                },
                ['plastic'] = {
                    ['label'] = 'Plastic',
                    ['required'] = {
                        plastic = { amount = 8, label = 'Plastic' },
                    },
                    ['rewards'] = {
                        cash = { amount = 800, minAmount = 700, label = 'Cash' },
                    }
                },
                ['rubber'] = {
                    ['label'] = 'Rubber',
                    ['required'] = {
                        rubber = { amount = 5, label = 'Rubber' },
                    },
                    ['rewards'] = {
                        cash = { amount = 500, minAmount = 400, label = 'Cash' },
                    }
                },
                ['copper'] = {
                    ['label'] = 'Copper',
                    ['required'] = {
                        copper = { amount = 5, label = 'Copper' },
                    },
                    ['rewards'] = {
                        sandwich = { amount = 5, minAmount = 2, label = 'Sandwich' },
                        cash = { amount = 700, minAmount = 600, label = 'Cash' },
                    }
                },
                ['iron'] = {
                    ['label'] = 'Iron',
                    ['required'] = {
                        iron = { amount = 5, label = 'Iron' },
                    },
                    ['rewards'] = {
                        cash = { amount = 700, minAmount = 600, label = 'Cash' },
                    }
                },
                ['aluminum'] = {
                    ['label'] = 'Aluminum',
                    ['required'] = {
                        aluminum = { amount = 5, label = 'Aluminum' },
                    },
                    ['rewards'] = {
                        cash = { amount = 700, minAmount = 600, label = 'Cash' },
                    }
                },
            },
        }
    },
    ["Bruno's Pawnshop"] = {
        jobName = '',
        shopName = "Bruno's Pawnshop",
        order = { "Weapons", "Cosmetics", "Medicals", "Crafting Materials" },
        data = {
            ['Weapons'] = {
                ['tracer'] = {
                    ['label'] = 'Tracer Ammunition',
                    ['required'] = {
                        ammo_attachment_tracer = { amount = 1, label = 'Tracer Ammunition' },
                    },
                    ['rewards'] = {
                        cash = { amount = 1500, minAmount = 1400, label = 'Cash' },
                    }
                },
                ['weapon_flashlight'] = {
                    ['label'] = 'Weapon Flashlight',
                    ['required'] = {
                        weapon_attachment_flashlight = { amount = 1, label = 'Weapon Flashlight' },
                    },
                    ['rewards'] = {
                        cash = { amount = 1000, minAmount = 900, label = 'Cash' },
                    }
                },
                ['pistol_suppressor'] = {
                    ['label'] = 'Weapon Suppressor',
                    ['required'] = {
                        weapon_attachment_suppressor = { amount = 1, label = 'Weapon Suppressor' },
                    },
                    ['rewards'] = {
                        cash = { amount = 2000, minAmount = 1900, label = 'Cash' },
                    }
                },
                ['pistol_extendedclip'] = {
                    ['label'] = 'Pistol Extended Clip',
                    ['required'] = {
                        pistol_extendedclip = { amount = 1, label = 'Pistol Extended Clip' },
                    },
                    ['rewards'] = {
                        cash = { amount = 800, minAmount = 700, label = 'Cash' },
                    }
                },
            },
            ['Cosmetics'] = {
                ['underglow_controller'] = {
                    ['label'] = 'Neon Controller',
                    ['required'] = {
                        underglow_controller = { amount = 1, label = 'Neon Controller' },
                    },
                    ['rewards'] = {
                        cash = { amount = 1200, minAmount = 1100, label = 'Cash' },
                    }
                },
                ['headlights'] = {
                    ['label'] = 'Xenon Headlights',
                    ['required'] = {
                        headlights = { amount = 1, label = 'Xenon Headlights' },
                    },
                    ['rewards'] = {
                        cash = { amount = 1500, minAmount = 1400, label = 'Cash' },
                    }
                },
                ['spoiler'] = {
                    ['label'] = 'Vehicle Spoiler',
                    ['required'] = {
                        spoiler = { amount = 1, label = 'Vehicle Spoiler' },
                    },
                    ['rewards'] = {
                        cash = { amount = 1800, minAmount = 1700, label = 'Cash' },
                    }
                },
                ['tint_supplies'] = {
                    ['label'] = 'Tint Supplies',
                    ['required'] = {
                        tint_supplies = { amount = 1, label = 'Tint Supplies' },
                    },
                    ['rewards'] = {
                        cash = { amount = 1000, minAmount = 900, label = 'Cash' },
                    }
                },
            },
            ['Crafting Materials'] = {
                ['plastic'] = {
                    ['label'] = 'Plastic',
                    ['required'] = {
                        plastic = { amount = 5, label = 'Plastic' },
                    },
                    ['rewards'] = {
                        cash = { amount = 700, minAmount = 600, label = 'Cash' },
                    }
                },
                ['rubber'] = {
                    ['label'] = 'Rubber',
                    ['required'] = {
                        rubber = { amount = 5, label = 'Rubber' },
                    },
                    ['rewards'] = {
                        cash = { amount = 500, minAmount = 400, label = 'Cash' },
                    }
                },
                ['copper'] = {
                    ['label'] = 'Copper',
                    ['required'] = {
                        copper = { amount = 5, label = 'Copper' },
                    },
                    ['rewards'] = {
                        cash = { amount = 700, minAmount = 600, label = 'Cash' },
                    }
                },
                ['iron'] = {
                    ['label'] = 'Iron',
                    ['required'] = {
                        iron = { amount = 5, label = 'Iron' },
                    },
                    ['rewards'] = {
                        cash = { amount = 700, minAmount = 600, label = 'Cash' },
                    }
                },
            },
        }
    }
}

Last updated