Elite Store
DiscordTebex
  • Elite Store Documentation
  • Scripts
    • Elite BlackMarket
      • Configuration
      • Server Configuration
      • Custom Image
      • API
    • Elite Prostitute Manager
      • Configuration
      • Server Configuration
      • Personalization
      • Custom Framework
    • Elite HUD - V1
      • Configuration
      • API
    • Elite HUD - V2
      • Configuration
Powered by GitBook
On this page
  • Client Events
  • Open Elite-BlackMarket
  1. Scripts
  2. Elite BlackMarket

API

To integrate and create BlackMarket with other scripts. You are on the right page!

Client Events

Open Elite-BlackMarket

Exports:

exports["Elite-BlackMarket"]:createCustomBlackMarket(tables)

Exemple:

local BlackMarket = {
    account = "bank",
    EnableBuy = false,
    EnableSell = true,
    items = {
        buy = {
            { name = "Phone", price = 850, itemName = "phone", img = "nui://ox_inventory/web/images/phone.png" }, 
            { name = "Laptop", price = 500, itemName = "laptop", img = "images/laptop.png" },
        },
        sell = {
            { name = "Computer", price = 500, itemName = "tablet", img = "nui://ox_inventory/web/images/hacking_computer.png" }, 
            { name = "Fake License", price = 120, itemName = "weapon_license", img = "images/weapon_license.png" },
        },
    }
}

exports["Elite-BlackMarket"]:createCustomBlackMarket(BlackMarket)

Trigger:

TriggerEvent('Elite-BlackMarket:createCustomBlackMarket', tables)

Exemple:

local BlackMarket = {
    account = "bank",
    EnableBuy = false,
    EnableSell = true,
    items = {
        buy = {
            { name = "Phone", price = 850, itemName = "phone", img = "nui://ox_inventory/web/images/phone.png" }, 
            { name = "Laptop", price = 500, itemName = "laptop", img = "images/laptop.png" },
        },
        sell = {
            { name = "Computer", price = 500, itemName = "tablet", img = "nui://ox_inventory/web/images/hacking_computer.png" }, 
            { name = "Fake License", price = 120, itemName = "weapon_license", img = "images/weapon_license.png" },
        },
    }
}

TriggerEvent('Elite-BlackMarket:createCustomBlackMarket', BlackMarket)

PreviousCustom ImageNextElite Prostitute Manager

Last updated 4 months ago