Standalone (no phone)
Use this mode if you don’t have a phone resource or want the blackmarket to open via a useable item.
Prepare and install dependencies
Framework (supported by current bridge)
Choose one of the following:
Inventory (supported by current bridge)
Choose one of the following:
Download
Please make sure you downloaded your resource:
- Escrowed version: CFX Portal
- Source version: Our store
Configuration
In config/general.lua, set usePhone to false and configure the item name:
usePhone = false,
openItem = 'shady_device', Add the item to your inventory
You must register the openItem in your inventory so players can use it.
Add to ox_inventory/data/items.lua:
['shady_device'] = {
label = 'Shady Device',
weight = 200,
stack = false,
close = true,
server = {
export = 'fd_blackmarket.shady_device'
}
},Customize attachment (optional)
You can customize the prop model and animation used in standalone mode:
attachment = {
animation = {
dict = 'cellphone@',
name = 'cellphone_text_read_base',
flag = 49,
},
model = 'prop_phone_ing',
bone = 28422,
coords = {
position = vector3(0.0, 0.0, 0.0),
rotation = vector3(0.0, 0.0, 0.0),
},
}, Database setup
Run the sql/install.sql file on your database to create the required tables.
Start resource
Make sure the resource is started after ox_lib and oxmysql.
ensure oxmysql
ensure ox_lib
...
ensure fd_blackmarketQuestions
If you have an issue or questions, please visit our discord, and open a ticket.