Git Product home page Git Product logo

rid_blackmarket's Introduction

Weapon Black Market Shop

MADE BY : Re-Ignited D3velopment Crew

Visit our Discord Server for direct help with our scripts and general ESX / Fivem Help ( https://discord.gg/akXEgcF )

Author: Deviljin112 Discord: D3v#0802 Github: ( https://github.com/Deviljin112 )

Co-Author: BTNGaming Discord: BTNGaming#7728 Github: ( https://github.com/BTNGaming )

Special thanks to : Crumble - Helped with some coding issues :)

Disclaimer

FEEL FREE TO EDIT THE CODE FOR PERSONAL USE!

DO NOT SHARE THE WORK AS YOUR OWN!

DO NOT SELL THIS WORK!

-= FOR PERSONAL USE ONLY =-

Description

This is a black market weapon shop that uses a stock system.
When stock runs out players are unable to purchase more weapons from this shop.
After 24hrs (at the specified time in config) there is a new delivery of stock.

Weapons are chosen at random from 3 categories; Pistols, Rifles and Snipers.
New weapons are only chosen when stock of the current weapon is 0.
So when there is still stock at the specified time the weapon will not be restocked or replaced.

There is also an option for a script restart refill.
Basically if the server or script is restarted you can have the 'stock' of weapons refilled to random values specified in Config file.
Again this will only occur to the weapons that have 0 stock at the time of the restart.

You can change what the weapons are changed to and everything about them, price, stock amounts etc.

Installation

  1. Place folder rid_blackmarket in you /resources/ folder
  2. Add rid_blackmarket in your server.cfg file
  3. Start your server and enjoy!

Discord

Release History

  • Version 2.2

    • FIX: Job check for some reason broke the script on server restart
    • FIX: Police Job Check Logic
  • Version 2.1

    • ADD: Option to choose normal money or black money
  • Version 2.0

    • ADD: Disc-Inventory Option
    • ADD: Option to get ammo (disc-inventory only)
    • ADD: Change amount of ammo given (non disc-inventory only)
    • ADD: Option to choose when RESTOCK or REFILL occurs
    • ADD: Shotguns, SMGs in Blackmarket
    • ADD: Ability to add any amount of weapons to randomizer
    • ADD: Option to choose how many weapons are in each category ( Removed category limit )
    • ADD: Random values for stock
    • FIX: Removed DEBUG prints and other debugging functionality
  • Version 1.1

    • ADD: Config option for police to use the blackmarket
    • ADD: Config option for police to see the blackmarket marker
  • Version 1.0

    • ADD: Refill stock on server restart
    • ADD: Random weapon delivery at specified time
    • ADD: Random amount of stock added
    • FIX: Multiple tables of data in the menu

TO DO

  • Change of location at specified time to a random from config
  • Random Chance notification for police when purchasing weapon from black market
  • Police to "shut down" black market sales for 24hrs (config specific)

Dependencies

  • ESX

IF USING DISC-INVENTORYHUD THE FOLLOWING ARE ALSO DEPENDENCIES

  • Disc-Ammo
  • Disc-Base
  • Disc-InventoryHud

Inspired By

  • esx_weaponshop

MORE UPDATES IN THE FUTURE!

Please like/favorite on the FiveM Forums.

rid_blackmarket's People

Contributors

deviljin112 avatar btngaming avatar gaby avatar xqth avatar majormarcin avatar

Stargazers

The fake avatar  avatar  avatar  avatar BerilBBJ avatar Yassine Ben daoud avatar  avatar  avatar CuPidev avatar Aladin Chaouachi avatar Beau avatar  avatar  avatar  avatar  avatar

Watchers

James Cloos avatar tehface avatar  avatar  avatar

rid_blackmarket's Issues

My rid_blackmarket not working

Hi, since I saw your discord server do not have en-chat, so I decide to ask here.

Ok, my problem is rid_blackmarket works fine for like 3 days (without opening my port) then I tried to open my port for my friend can join, suddenly rid_blackmarket not working anymore (even I connect trough localhost). I'm really have no idea about this, maybe you can help me with this?

error in server/main.lua 201

Script ERROR: @rid_blackmarket/server/main.lua:201 attempt to index a nil value (global 'new_set')

I dont know if i've made a mistake when im trying to remove sa sniper categories because i dont want sniper in my server.

Nil custom objects and weapons

image

Try putting non-native weapons and items from the game and they come out with the null string, is there any way to give it a custom name? the item gives it to me when buying, but with the id of the item

image

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.