Full rework of the darkweb tablet we had. Images of UI at bottom of this Readme.
Supports Ox Inv/lib and QBcore. You can select what features you want from whichever in the config.
The randomized ads list work like this:
- A random number between what is defined in Config.AmountOfAds is created: X
- X ads are created by randomly picking from the list in Config.DarkwebAds
- If an ad has
chance
defined then we also check for this chance to be include, if not we skip this ad.
The player auction work like this:
- Create an account
- Mark your waypoint (this will be the meeting spot sent to the buyer)
- Go to the Market tab and create an ad
- Wait for buyers to bid
- Accept the bid
- Meet up
If you have feedback and suggestions then post about it in the Discord
Features:
- Darkweb tablet
- Customizeable generated ads (see Create an Ad section)
- Player accounts
- Player auctions
- Randomly generated ads at set interavals
- Randomly generated dead drops for pickup
- Dead drop export for use with other scripts
Planned features:
- Metadata checks for items
- A short-term chat
Also, not tested with QB inventory, but should support it
COMING SOON?!
⭐ Check out our Tebex store for some cheap scripts ⭐
🥳 Get more Free scripts 🥳
- Get script
- Add it to your server (make sure to remove -main in folder name)
- Set up config to work with your server
- Add the cw tablet item to your
items.lua
and add the image(s) from theitems
folder to your inventory image folder. Example is for OX inventory:
["cw_darkweb_tablet"] = {
label = "Darkweb Tablet",
description = "It has a chili dog sticker on it",
weight = 10,
close = true
},
- Start server and spawn the item
cw_darkweb_tablet
- Add some way to get the tablets ingame, maybe as loot I dunno I'm not your mom.
- Make an account if you want to do player trades
The ads are defined in the Config.DarkwebAds
table in the config. This in an example with the options:
{
title = "Sandwich AD", -- Title of the ad
description = 'One sandwich', -- Description of the ad
items = { -- A table of items
{ -- Item entry,
itemName = 'sandwich', -- item name (MAKE SURE THIS EXISTS IN YOUR ITEMS.LUA)
amount = 1, -- amount in batch
metadata = nil -- optional metadata/info table
},
},
price = { min = 5, max = 200 }, -- price is defined with a min and a max, on list generation it's randomized between these numbers.
required = { -- OPTIONAL: table that contains requirements
item = 'vpn', -- item that's required to see this ad
},
chance = 10 -- chance of being included in list, defaults to 100. 100 = 100% chance
rep = { -- this is optional, and only relevant if you want to gate items behind reputation/skills
name = 'delivery', -- The name of the rep/skill you want to check (needs to match the name (not label) of what is in cw-rep)
required = 10, -- XP required, or level if Config.UseLevelInsteadOfXP = true
label= 'Coffee Drinkers' --overwrites the rep label/name in ui
},
},
Note: The
chance
doesn't affect the chance of the ad being selected, only that it's included if selected. The system is explained earlier in the readme.
Note: if you do not meet requirement for the item it won't show up in the ad list at all.
You can use the included server export to create dead drops from other scripts, for example if you want to use these for payouts from jobs.
exports['cw-darkweb']:createCustomDropoff(<source>, <dropoff data>)
The source is the source of the player you want to give this to. The dropoff data is defined in the same way as you define Ads, so for example:
local dropoffData = {
title = "Sandwich Dropoff", -- Title of the ad
description = 'Thanks for killing that dude, heres your payment', -- Description of the ad
items = { -- A table of items
{ -- Item entry,
itemName = 'sandwich', -- item name (MAKE SURE THIS EXISTS IN YOUR ITEMS.LUA)
amount = 1, -- amount in batch
metadata = nil -- optional metadata/info table
},
},
},
exports['cw-darkweb']:createCustomDropoff(source, dropoffData)
Will generate a custom dead drop containing a slice of
- Get yourself a tablet
- Use the tablet
- Buy thing(s)
- Pickup things at the given location
- Enjoy your things
Darkweb is now built in VUE, this means you can't just edit the files directly. This requires some more know-how than just developing with basic html/js. You can find out more information in this Boilerplate Repo. We do not offer support on this.
The very bacis for building and installing it are:
- Open a command window in the html folder
- run
npm i
- run
npm run build
(to create a new build of the ui),npm run watch
to dev with it
If nothing is happening, try deleting the dist folder before you run the build command
This does require some know-how and use of NPM
If you're catching errors, it might be because your Node version is old/to new. I use Node 18.
QBCore (or QBox Core)