GithubHelp home page GithubHelp logo

p-it-clover / cw-darkweb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coffeelot/cw-darkweb

0.0 0.0 0.0 6.12 MB

A sketchy tablet for sketchy deeds

JavaScript 0.42% Lua 43.16% TypeScript 12.38% HTML 0.58% Vue 37.66% SCSS 5.80%

cw-darkweb's Introduction

CW Darkweb

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.

If you have feedback and suggestions then post about it in the Discord

Features:

  • Darkweb tablet
  • Customizeable ads (see Create an Ad section)
  • 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
  • Player to Player ads with dead drops for both sides
  • Player accounts (to have stores and validate sellers/buyers etc)

THE CONFIG IS SETUP FOR DEBUG/TESTING SO MAKE SURE TO GO OVER IT BEFORE USE!!!

Also, not tested with QB inventory, but should support it

Preview 📽

COMING SOON?!

Links

⭐ Check out our Tebex store for some cheap scripts ⭐

🥳 Get more Free scripts 🥳

Support, updates and script previews:

Join The discord!

Setup

  1. Get script
  2. Add it to your server (make sure to remove -main in folder name)
  3. Set up config to work with your server
  4. Add the cw tablet item to your items.lua and add the image(s) from the items 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
	},
  1. Start server and spawn the item cw_darkweb_tablet
  2. Add some way to get the tablets ingame, maybe as loot I dunno I'm not your mom.

Create an Ad

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
        }
    },

Note: if you do not meet requirement for the item it won't show up in the ad list at all.

Create a dead drop from another script:

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

How to use

  1. Get yourself a tablet
  2. Use the tablet
  3. Buy thing(s)
  4. Pickup things at the given location
  5. Enjoy your things

Images

List List List

Requirements:

QBCore (or QBox Core)

cw-darkweb's People

Contributors

coffeelot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.