Wert Blackmarket Phone
You can access the setup information you need about this product
INSTALLATION

ITEM

LEVEL MAIL TRIGGER
CLIENT EXPORTS
SERVER EXPORTS
Last updated
You can access the setup information you need about this product


Last updated
```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 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)-- 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-- 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)