This resource adds a darknet shop to your server. Players go to a location you set in the config, knock on the door and open a web UI where they can buy illegal items and weapons. The download contains an ESX version and a QBCore version, both named id_darknet.
Features
- Shop access by knocking on a door at the coordinates set in the config (ESX:
Press E to knock on doorprompt) - Web UI with an image, label, price and description for each item
- Items can be of type
itemorweapon - Item rarity normal (blue line under the image) or rare (red line)
- Descriptions over 95 characters get a scrollbar, so you can write longer texts
- Configurable quantity per purchase; the ESX version also sets the ammo given with a weapon
- Translatable messages (e.g. the not-enough-money notice)
- Responsive UI
- Example items included: Lockpick and Pistol, with images in
web/items/
Configuration
In shared/config.lua you set for each item: name, type, label, price, rarity and description. You also set the door coordinates, the translation texts, the number of items per purchase and (ESX) the ammo per weapon.
Requirements
- OneSync (listed as a dependency in both manifests)
- ESX version:
es_extended - QBCore version: a QBCore server
Installation
- Pick the folder for your framework:
DarkNet/ESX/id_darknetorDarkNet/QBCore/id_darknet. - Copy
id_darknetinto your resources folder. - Add
ensure id_darknetto your server.cfg. - Edit
shared/config.luaand add an image for each new item toweb/items/.