Wert Dev Docs
Tebex StoreDiscord
  • ℹ️About Us
  • Products
    • QBCore
      • Wert-pdroster
      • Wert-JewelRobberyV2
      • Wert-jammer
      • Wert-GpsV2
      • Wert-AmmunationJobs
      • Wert-JobsV2
      • Wert-ContactlessPayment
      • Wert-GoPro (Watch vehicles with gopros)
      • Wert-ShopRobbery
      • Wert-shops + delivery jobs (Buy and manage your shops)
      • Wert-houses
      • Wert-ambulancejob
      • Wert-BodyCam (For civilians and jobs)
      • Wert-PoliceSystemsV2
      • Wert-ChopShopV2
      • Wert-taboo (Play and enjoy)
      • Wert illegal house robbery
      • Wert-banking (Bank ui and system)
      • Wert-PaletoBankRobberyV2
      • Wert Car Arena (Death race, Death match, Arena war)
      • Wert Blackmarket Phone
      • Wert Gang Zone (Advanced Npc System)
      • Wert Fuel Stations (Job, Buy, Manage, Create and more ... )
      • Wert Craft System
      • Wert Merryweather Job
      • Wert Cleaning System And Jobs
      • Wert Weapon Racks (Deployable, Advanced)
      • Wert Water Dispensers (Coolers)
      • Wert Lucky Wheel
      • Wert Evidence System
      • Wert Give Money System
      • Wert Ems Roster System
      • Wert New Year Lottery
      • Wert Vending Machines
    • ESX
      • Wert-ShopRobbery
      • Wert-JewelRobberyV2
      • Wert-GpsV2
      • Wert-PoliceSystemsV2
      • Wert-JobsV2
      • Wert-ContactlessPayment
      • Wert-GoPro (Watch vehicles with gopros)
      • Wert-AmmunationJobs
      • Wert-BodyCam (For civilians and jobs)
      • Wert-ChopShopV2
      • Wert-taboo (Play and enjoy)
      • Wert illegal house robbery
      • Wert-PaletoBankRobberyV2
      • Wert-jammer
      • Wert Car Arena (Death race, Death match, Arena war)
      • Wert-banking (Bank ui and system)
      • Wert Fuel Stations (Job, Buy, Manage, Create and more ... )
      • Wert Gang Zone (Advanced Npc System)
      • Wert Blackmarket Phone
      • Wert Craft System
      • Wert Merryweather Job
      • Wert Cleaning System And Jobs
      • Wert Weapon Racks (Deployable, Advanced)
      • Wert Water Dispensers (Coolers)
      • Wert Lucky Wheel
      • Wert Evidence System
      • Wert Give Money System
      • Wert Ems Roster System
      • Wert New Year Lottery
      • Wert-pdroster
      • Wert Vending Machines
    • Qbox
      • Wert-pdroster
      • Wert-JewelRobberyV2
      • Wert-jammer
      • Wert-GpsV2
      • Wert-AmmunationJobs
      • Wert-JobsV2
      • Wert-ContactlessPayment
      • Wert-GoPro (Watch vehicles with gopros)
      • Wert-ShopRobbery
      • Wert-shops + delivery jobs (Buy and manage your shops)
      • Wert-houses
      • Wert-ambulancejob
      • Wert-BodyCam (For civilians and jobs)
      • Wert-PoliceSystemsV2
      • Wert-ChopShopV2
      • Wert-taboo (Play and enjoy)
      • Wert illegal house robbery
      • Wert-banking (Bank ui and system)
      • Wert-PaletoBankRobberyV2
      • Wert Car Arena (Death race, Death match, Arena war)
      • Wert Blackmarket Phone
      • Wert Gang Zone (Advanced Npc System)
      • Wert Fuel Stations (Job, Buy, Manage, Create and more ... )
      • Wert Craft System
      • Wert Merryweather Job
      • Wert Cleaning System And Jobs
      • Wert Weapon Racks (Deployable, Advanced)
      • Wert Water Dispensers (Coolers)
      • Wert Lucky Wheel
      • Wert Evidence System
      • Wert Give Money System
      • Wert Ems Roster System
      • Wert New Year Lottery
      • Wert Vending Machines
    • STANDALONE
      • Wert Npc Dialog System
      • Wert Racing Hud
Powered by GitBook
On this page
  • INSTALLATION
  • ITEM
  • LEVEL MAIL TRIGGER
  • CLIENT EXPORTS
  • SERVER EXPORTS
  1. Products
  2. Qbox

Wert Blackmarket Phone

You can access the setup information you need about this product

PreviousWert Car Arena (Death race, Death match, Arena war)NextWert Gang Zone (Advanced Npc System)

Last updated 10 hours ago

INSTALLATION

1 - Upload the script folder to the location of your resources

2 - Don't forget to check that your target system and polyzone script are working

3 - Do not forget to add all the sql files contained in the folder to your database

4 - Don't forget to add the item code found below to your item list

5 - Please add wertblackmarket metadata row in your qbx_core/server/player.lua For example photo (For the level system)

playerData.metadata.wertblackmarketlevel = playerData.metadata.wertblackmarketlevel or 0

6 - Installation successful, have a good funs

ITEM

( If u use ox_inventory please convert ox_inventory item format )

```lua
["blackmarket_phone"] = {
		["name"] = "blackmarket_phone",
		["label"] = "Blackmarket Phone",
		["weight"] = 0,
		["type"] = "item",
		["image"] = "blackmarket_phone.png",
		["unique"] = true,
		["useable"] = true,
		["shouldClose"] = true,
		["combinable"] = nil,
		["description"] = "A Phone"
	},
```

LEVEL MAIL TRIGGER

If you are going to send the email to grant a level, you can use this code.

-- Level mail example
-- Client side
TriggerServerEvent('wert-blackmarket:server:level-mail')

-- If you want create a addon code for the add level
-- Server side code
RegisterNetEvent('exampleaddlevelwertblackmarket', function()
    local src = source
    local ply = QBCore.Functions.GetPlayer(src)
    if not ply then return end
    ply.Functions.SetMetaData("wertblackmarketlevel", 100) -- 100 Example level if you want change your think
end)

CLIENT EXPORTS

-- Checked phone open state (boolean)
local blackmarketphoneopenstate = exports['wert-blackmarket']:PhoneOpen()
if blackmarketphoneopenstate then
    -- return : true
    print("Phone open")
else
    -- return : false
    print("Phone close")
end
-- Get illegal doctors table
local illegaldoctors = exports['wert-blackmarket']:illegaldoctors()
for k,v in pairs(illegaldoctors) do
    if v then
        local id = k
        local doctornpc = v.npc
        local level = v.seviye
        print(id, doctornpc, level)
    end
end

SERVER EXPORTS

-- All accounts datas
local allusers = exports['wert-blackmarket']:GetAllAccounts()
for k,v in pairs(allusers) do
    if v then
        local output = {
            citizenid = v.citizenid,
            password = v.password,
            accountid = v.accountid,
            mail = v.mail
        }
    end
end
-- All accounts wallet data
local allwallets = exports['wert-blackmarket']:GetAllWalletData()
for k,v in pairs(allwallets) do
    if v then
        local output = {
            accountid = k,
            money = tonumber(v.money),
            history = v.history
        }
    end
end
-- Find player citizenid from accountid
local targetcitizenid = exports['wert-blackmarket']:FindPhoneAccountByCitizenid(accountid)
if targetcitizenid  then
    print(targetcitizenid) -- Citizenid 
end
-- Get target accountid money
local accountmoney = exports['wert-blackmarket']:GetAccountMoney(accountid)
if accountmoney then
    print(accountmoney) -- Accountmoney
end
-- Add money target accountid
exports['wert-blackmarket']:AddMoneyFromAccount(accountid, addmoney, addhistory)
-- Remove money target accountid
exports['wert-blackmarket']:RemoveMoneyFromAccount(accountid, removemoney, addhistory)
ITEM IMAGE IF YOU WANT USE ANOTHER IMAGE