QBCore Customizable blackmarket System
PLEASE DOWNLOAD FROM THE LATEST BUILD HERE
Using QBCore Crypto
Add the following function export to qb-crypto/server/main.lua
function GetCurrentCryptoWorth()
return Crypto.Worth[coin]
end
exports('GetCurrentCryptoWorth', GetCurrentCryptoWorth)
Using Renewed Phone Crypto
Add the following function export to qb-phone/server/crypto.lua
local function GetCryptoValue(type)
local v = Config.CryptoCoins[GetConfig(type)]
local value = v.value
return value
end
exports('GetCryptoValue', GetCryptoValue)
I would highly using the qb-phone that Renewed-Scripts released, you can find the script here: https://github.com/Renewed-Scripts/qb-phone