[PAİD] [QBCore] Advanced Pawnshop

:dart: Advanced Pawnshop Script

:rocket: Key Features
:convenience_store: Multi-Market Support:
Easily create multiple pawnshops across different locations, each with its own unique settings.

:necktie: Job-Based or Public Shops:
Configure each pawnshop to be accessible by specific jobs or open to all players.

:package: Custom Items Per Market:
Define which items can be sold at each individual pawnshop for full control.

:toolbox: Inventory Compatibility:
:white_check_mark: ox_inventory
:white_check_mark: qb-inventory

:dart: Target System Support:
:white_check_mark: ox_target
:white_check_mark: qb-target

:globe_with_meridians: Multi-Language Support:
:tr: Turkish
:us: English

Easy to switch between languages from the config.

:bulb: UI-Based Configuration:
Easily edit and manage settings through a clean, user-friendly config interface.

:brain: Optimized Codebase:
Built for performance with zero FPS drops and minimal server load.

GitBook
Paid
support DC

Config LUA

beqeend = {}

beqeend.UseOxInventory = true -- true for ox_inventory, false for qb-inventory
beqeend.UseOxTarget = true -- true for ox_target, false for qb-target
beqeend.DefaultLanguage = 'en' -- tr or en

beqeend.Locations = {
    [1] = {
        name = Lang:t('info.pawnshop'),
        coords = vector3(182.8245, -1319.574, 29.317),
        blip = {
            enabled = true,
            sprite = 431,
            color = 5,
            scale = 0.7,
            label = 'Blip Name'
        },
        npc = {
            model = "s_m_m_migrant_01",
            coords = vector4(182.8245, -1319.574, 29.317, 230.0),
            scenario = "WORLD_HUMAN_CLIPBOARD"
        },
        job = {
            required = false,
            name = "pawnshop",
            grade = 0
        },
        items = {
            ["rolex"] = {
                name = "rolex",
                price = 500,
                label = "Rolex Saat"
            },
            ["goldchain"] = {
                name = "goldchain",
                price = 250,
                label = "Altın Kolye"
            },
            ["diamond_ring"] = {
                name = "diamond_ring",
                price = 750,
                label = "Pırlanta Yüzük"
            },
            ["goldbar"] = {
                name = "goldbar",
                price = 2500,
                label = "Altın Külçe"
            }
        }
    },
    [2] = {
        name = Lang:t('info.pawnshop'),
        coords = vector3(-1459.3, -413.6, 35.7),
        blip = {
            enabled = true,
            sprite = 431,
            color = 3,
            scale = 0.7,
            label = 'Blip Name'
        },
        npc = {
            model = "a_m_m_bevhills_02",
            coords = vector4(-1459.3, -413.6, 35.7, 180.0),
            scenario = "WORLD_HUMAN_STAND_IMPATIENT"
        },
        job = {
            required = false,
            name = "",
            grade = 0
        },
        items = {
            ["water"] = {
                name = "water",
                price = 450,
                label = "Water"
            },
            ["weapon_pistol"] = {
                name = "weapon_pistol",
                price = 200,
                label = "Pistol"
            },
            ["taco"] = {
                name = "taco",
                price = 200,
                label = "Taco"
            },
            ["ammo-9"] = {
                name = "ammo-9",
                price = 700,
                label = "Ammo"
            }
        }
    }
} 

Locale

local Translations = {
    error = {
        not_enough_items = 'You don\'t have enough items!',
        wrong_job = 'You don\'t have the required job!',
    },
    success = {
        item_sold = 'You sold %{amount}x %{item} for $%{price}',
    },
    info = {
        pawnshop = 'Pawn Shop',
        shop_title = 'Pawn Shop',
        sell_button = 'Sell',
        close_button = 'X',
        item_price = 'Price: $%{price}',
        shop_blip = 'Pawn Shop'
    },
    menu = {
        sell_items = 'Sell Items',
        available_items = 'Available Items',
        item_amount = 'Amount',
        confirm_sell = 'Confirm',
        cancel = 'Cancel'
    }
} 

Lang = Locale:new({
    phrases = Translations,
    warnOnMissing = true
}) 

local Translations = {
    error = {
        not_enough_items = 'Yeterli eşyaya sahip değilsiniz!',
        wrong_job = 'Bu işlemi yapmak için gerekli mesleğe sahip değilsiniz!',
    },
    success = {
        item_sold = '%{amount} adet %{item} sattınız. Kazanç: $%{price}',
    },
    info = {
        pawnshop = 'Rehin Dükkanı',
        shop_title = 'Rehin Dükkanı',
        sell_button = 'Sat',
        close_button = 'X',
        item_price = 'Fiyat: $%{price}',
        shop_blip = 'Rehin Dükkanı'
    },
    menu = {
        sell_items = 'Eşyaları Sat',
        available_items = 'Mevcut Eşyalar',
        item_amount = 'Miktar',
        confirm_sell = 'Onayla',
        cancel = 'İptal'
    }
}

Lang = Locale:new({
    phrases = Translations,
    warnOnMissing = true
}) 

Code is accessible No
Subscription-based No
Lines (approximately) 500+
Requirements QBCore + RiseCore
Support Yes