Rise Development
  • Rise Development
  • Script
    • Pawnshop
    • Blip Menu
    • Pizza Courier
    • Taco Courier
    • Character Kill
    • ID Give Car System
    • Sellable Stashes
    • Blip Creator
    • For Rent Car
    • Billing System
    • Admin Report
    • BlackMarketV1
    • Fish System
    • Whitelisted System
  • Development Services
    • Development Services (Monthly)
Powered by GitBook
On this page
  1. Script

BlackMarketV1

PreviousAdmin ReportNextFish System

Last updated 1 month ago

  • Opening or Closing a Profession or Item

  • Easy Config File

  • Linking Multiple Inventory Systems

  • Special Profession or Item Requirement for Each Location

  • Required Systems : Rise-Core, QBCore

  • UI System

  • ox_target and qb-target support

  • ox_inventory - qb-inventory support

// Some code
Locales = {
    ['en'] = {
        -- UI Metinleri
        ['ui_market_title'] = "Black Market",
        ['ui_amount_select'] = "Select Amount",
        ['ui_buy_button'] = "Buy",
        ['ui_total_price'] = "Total: $",
        ['ui_target_label'] = "Black Market",

        -- Notify Mesajları
        ['no_permission'] = "You don't have permission to use this market!",
        ['job_not_allowed'] = "Your job cannot use this market!",
        ['blacklisted_job'] = "Your job is blacklisted from this market!",
        ['no_required_item'] = "Required item not found!",
        ['not_enough_money'] = "You don't have enough money!",
        ['purchase_success'] = "You bought %sx %s",
        ['no_job'] = "You need a job to use this market!",
    },
    
    ['tr'] = {
        -- UI Metinleri
        ['ui_market_title'] = "Black Market",
        ['ui_amount_select'] = "Miktar Seçin",
        ['ui_buy_button'] = "Satın Al",
        ['ui_total_price'] = "Toplam: $",
        ['ui_target_label'] = "Black Market",

        -- Notify Mesajları
        ['no_permission'] = "Bu marketi kullanma yetkiniz yok!",
        ['job_not_allowed'] = "Bu meslek kara borsayı kullanamaz!",
        ['blacklisted_job'] = "Bu meslek kara borsa kullanımından yasaklı!",
        ['no_required_item'] = "Gerekli item yok!",
        ['not_enough_money'] = "Yeterli paranız yok!",
        ['purchase_success'] = "%sx %s satın aldınız",
        ['no_job'] = "Bu marketi kullanmak için bir mesleğiniz olmalı!",
    }
} 
// Some code
Config.Locations = {
    [1] = {
        coords = vector4(171.95, 2221.99, 89.8, 167.53), -- x, y, z, heading
        pedModel = "a_m_m_eastsa_02",
        requireItem = false,
        requiredItemName = "black_card",
        requireJob = false,
        allowedJobs = {
            ["blackmarket1"] = true,
            ["ambulance"] = false,
            ["mechanic"] = false,
            ["cardealer"] = false
        },
        blip = {
            enable = false, -- blip açık/kapalı
            sprite = 586, -- blip ikonu
            color = 49, -- blip rengi
            scale = 0.7, -- blip boyutu
            label = "Kara Borsa #1", -- blip ismi
            shortRange = false -- yakından/uzaktan görünme
        }
    },
    [2] = {
        coords = vector4(-851.95, 215.06, 73.81, 190.81),
        pedModel = "a_m_y_business_02",
        requireItem = false,
        requiredItemName = nil,
        requireJob = true,
        allowedJobs = {
            ["blackmarket"] = true,
            ["ambulance"] = false,
            ["mechanic"] = false,
            ["cardealer"] = false
        },
        blip = {
            enable = false, -- bu lokasyonda blip kapalı
            sprite = 586,
            color = 1,
            scale = 0.7,
            label = "Kara Borsa #2",
            shortRange = false
        }
    },
}
// Some code
Config.Items = {
    {
        name = "weed_access",
        label = "Esrar Lab Giriş Kartı",
        price = 1000,
        amount = 1,
        info = {},
        type = "item",
        slot = 1,
    },
    {
        name = "scissors",
        label = "Özel Makas",
        price = 750,
        amount = 1,
        info = {},
        type = "item",
        slot = 2,
    },
}
// Some code
Config.UseTarget = "qb" -- "ox" veya "qb" olarak ayarlanabilir
Config.Language = "tr" -- "en" veya "tr"
Config.InventoryType = "ox" -- "ox" veya "qb"