[PAID] DL ADVANCEDSTORES - NPC and Player Managed Stores [VORP/REDEMRP/RSG]




Howdy folks,
im proud to present to you my new Advanced Stores Script.
This Script allows your Players to buy or create a Store to manage it!

Get it here: https://drshwaggins-scripts.tebex.io/package/5736588
Showcase Video: https://youtu.be/0EkeFqSfrFc


Feature List

  • | Player Stores
    Allow Players to Create their own Store or Create buyable stores. Setup Max Amount of owned Stores.

  • | Store Management
    Create and Label as many Categories as you like. Assign Items from your Inventory to the Categories and Sell them to other Players!
    Add, Remove or Change every aspect of your created Categories and Items.
    Resell your bought Stores to other Players!

  • | Money Management
    Withdraw Money from your Sales

  • | NPC Stores
    Create NPC Stores which Sell an unlimited amount of Items or Weapons!
    NPC Stores can also Buy Items and Weapons from Players

  • | Configurations
    100% Translateable, Many Controls in the Config, Export Functions to Create Stores! (README.md)

  • | Society Support
    Supports dl_society, mega_companies, syn_society and open to add custom ones

  • | Metadata Support
    Full metadata support for vorpcore and rsgcore. Metadata support for redemrp (only items, weapon components are not supported for redemrp)







Available Config

Config = {}
Config.DevMode = false


--- LANGUAGE CONFIG ------
Config.Locale = 'en'


-- FRAMEWORK SELECTION -----
Config.Framework = "vorpcore" -- vorpcore, redemrp, rsgcore


-- PERMISSIONS -----
Config.CreateStoreAccess = {'admin'}  -- if empty EVERY user has Access and can create a private store to sell his items
Config.CreateBuyableStoreAccess = {'admin'}  -- if empty NO user has Access | Should only be available for team/staff
Config.AllowSellingWeapons = {} -- Jobs Who are allowed to sell weapons, if empty everybody can sell weapons for example: 'sherrif','police','marshal'
Config.CreateJobStoreAccess = {'butcher'}  -- if empty EVERY job has access to open a jobstore


-- COMMANDS -----
Config.CreateStoreCommand = "createstore"
Config.CreateBuyableStoreCommand = "createstorebuy"
Config.CreateJobStore = "createjobstore"


-- SETTINGS ---
Config.MaxOwnedStores = 5 -- Max Personal Stores a Player can hold
Config.MaxJobStores = 1 -- Max Job Stores a job can have
Config.StoreMetadata = false -- Use metadata for items | stores metadata upon setting up the item in the store

Config.AllowCustomItemLabels = true -- Enables / Disables ability to use a custom label for a shop item
Config.AllowPlayerTemporaryClosing = true -- Enables / Disables ability to temporary close a store (store will be back open upon server restart automatically)
Config.AllowSellingToPlayerStore = true -- Enables / Disables option to setup items your store buys from players

Config.DrawMarkerDistance = 10.0
Config.InteractionDistance = 3.0

Config.DisableMarker = false -- Enables / Disables ground Marker on the interaction Position of Stores
Config.StoreMarkerR = 255
Config.StoreMarkerG = 255
Config.StoreMarkerB = 255
Config.StoreMarkerAlpha = 100

Config.ItemBlacklist = {    -- items that cant be selled by players
}

Config.BuyAbleItemsBlackList = {      -- Items which players cant sell to player stores
}


-- KEYS ----
Config.OpenStoreKey = 0x760A9C6F
Config.ManageStoreKey = 0xE30CD707
Config.SelltoStoreKey = 0x26E9DC00


-- BLIPS ----
Config.ShowPlayerStoreBlips = true -- Enables / Disables Blips of Player Stores
Config.BasePlayerStoreBlip = "-426139257" -- texture hash
Config.BlipSize = 0.2
Config.ExtraBlipsForPlayerStores = { -- Extra Settings for individual Player Stores (if you leave blipSprite='' no blip will be created for this store)
  -- {shopID=43, blipSprite="-426139257", blipColor = "BLIP_MODIFIER_MP_COLOR_8"}
}


-- LOGGING ----
Config.UseLogger = false -- Turn if Logging
Config.Webhook = ""
Config.webhookAvatar = ""
Config.WebhookName = "DL-Advancedstores"



-- JOB STORES ---
Config.UseSocietySystem = true -- if false disable all society stores
Config.UseSocietyPreset = true -- if true uses a society preset from Config.PresetSociety if false uses the custom ones you can set up in server/society.lua
Config.PresetSociety = "dl_society" -- dl_society, syn_society, mega_companies

Config.SocietyBossGrade = 0 -- The boss grade of the society -> can manage more options on the store (for example delete it, etc)
Config.SocietyGradeAccess = { -- Can do basic options to manage the store (put in goods, create goods etc)
  {jobname="butcher", grade=1},
}


-- NPC STORES -----
Config.BaseStores = {
  {
    name = "valstore",  -- must be unique
    label = "Valentine Store",
    jobs = {}, -- if empty everybody can access it
    blip = "748106308", -- texture hash
    categories = {
      {name='food', display="Eat and Drink"},
      {name='weapons', display="Weapons"},
    },
    npcmodel = "",
    position = {x = -263.387, y = 762.3051, z = 117.10, h = 303.22},
    items = {
      {name="water", display="Water", price=0.23, categorie='food', type="item", meta={{durability = 50.0},{expire=10}} },
      {name="water", display="Water", price=0.23, categorie='food', type="item"},
      {name="bread", display="Bread", price=0.19, categorie='food', type="item"},

      {name="WEAPON_REVOLVER_NAVY", display="Revolver Navy GOLDEN", price=0.50, categorie='weapons', type="weapon",
        meta = {
          {durability = 50.0},
          {comp = "COMPONENT_SHORTARM_TRIGGER_MATERIAL_7", category = "TriggerMaterial"},
          {comp = "COMPONENT_SHORTARM_CYLINDER_MATERIAL_7", category = "CylinderMaterial"},
          {comp = "COMPONENT_SHORTARM_HAMMER_MATERIAL_7", category = "HammerMaterial"},
          {comp = "COMPONENT_REVOLVER_NAVY_BARREL_SHORT", category = "Barrel"},
          {comp = "COMPONENT_SHORTARM_BARREL_MATERIAL_7", category = "BarrelMaterial"},
          {comp = "COMPONENT_REVOLVER_NAVY_GRIP", category = "Grip"},
          {comp = "COMPONENT_SHORTARM_SIGHT_MATERIAL_7", category = "SightMaterial"},
          {comp = "COMPONENT_SHORTARM_FRAME_MATERIAL_7", category = "FrameMaterial"},
          {comp = "COMPONENT_SHORTARM_GRIP_MATERIAL_BURLED", category = "GripMaterial"}
        }
      },

      {name="WEAPON_REVOLVER_NAVY", display="Revolver Navy Unmod", price=0.10, categorie='weapons', type="weapon"},

    },
    buying = {
      {name="water", display="Water", price=0.10 , type="item"},
      {name="WEAPON_REVOLVER_NAVY", display="Revolver Navy", price=1 , type="weapon"},
    }
  },
}



Code is accessible No (Only UI and JS)
Subscription-based No
Lines (approximately) 3k
Requirements vorpcore, MenuApi, oxmysql, rsgcore, redem, inventory script of vorp,rsg,redemrp
Support Yes
2 Likes

will this work with mega_companies ?

Your Players can create Stores regardless of the society/job system they can also withdraw Money etc. So the Script will Work with every society/Job system.

But if you want to create a Job Store, so other Players can manage your Store. You will need my dl-society Script. In the Job Menu of my dl-society Script is the Option to create a Job Store

Beautiful UI work, well done keep up the good work!

2 Likes

New Update:

  • Player Stores can now Sell Weapons (Currently only unmodded weapons)
  • Player Stores can now Buy Items from Players (currently No Meta data included!)
  • Players can now Deposit Money in Stores
  • Inventory Images are now loaded from vorp_inventory
  • Several Minor Bug Fixes
  • Fixed a Bug where the Script blocks Shops

This looks great.
Are players able to share their stores with others? Like making others able to restock etc?

Hey, yeah thats a Feature that is available If you use my society system

Is it only one owner per shop without dl_society?

Currently yes

New Update:

  • Added Loggings
  • Added Job Locks for Admin Stores

New Update

  • Added automatic closing of selling menu if to far away from store
  • Added checks for negative overall sum caused by dev tools and other cheats
  • Performance Updates for Servers with large item pools
  • Fixed possible rounding errors

Seem to be getting this error and I am running RSG.

[    c-scripting-core] Creating script environments for dl_advancedstores
[script:dl_advancedst] SCRIPT ERROR: ?:-1: attempt to call a nil value (field 'addRpcCallback')
[           resources] Started resource dl_advancedstores

Well the Script is for vorp as advertised :sweat_smile: so the addRpcCallback doesent exist in the VorpCore Object because the VorpCore Object doesent exist

Update:

  • Its now compatible with RSG

welp, that makes perfect sense lol. thanks. I had a script that was player owned stores like this for RSG, thought it was this. But thanks for getting back to me.

looked good so I thought I would pick it up! Good price for what you get really. Needed a decent shop script I could place player shops down with and this works great and looks amazing definitely a nice touch from the usual normal inventory menus. If your looking at this script in 2025 pick it up its still worth it! And its regularly updated it looks like last updated 5/16/25

1 Like

Thanks :yum: there will also be a Major Update very soon including full Support for rsgcore and redemrp with metadata support

New Update:

Finally, I was able to get the patch ready for release. There are many changes, and I tested as much as I could (being solo). Please report bugs with a bug report ticket.

Added

  • RedEMRP & RSGCORE Support
  • Metadata Support for Player and Base (NPC) Stores
  • Option to add custom Labels for Items in your Store
  • Option to temporarily close your store

Changes

  • Possibility to change / deactivate player store blips individually in the config
  • Players can now see how many items a store is buying (if you sell items to a player store)
  • UI (html) translations added in translation.lua
  • UI (html) file removed so you now only have one html file
  • Changed society system so you can now use dl_society, mega_companies or syn_society out of the box with the option to also add a custom society system.
    • You can now setup which Jobs and Grades should be able to create job stores / manage them
  • Prevent multiple users looking at the same player store (duping protection)
  • Cleaned up and sorted config
  • Bug fixes

Notes for Metadata Support

  • vorpcore and rsgcore are fully supported with metadata
  • RedEMRP also supports metadata for items (weapons components are currently not saved due to a lack of documentation)
  • If you SELL items to a playerstore, the items will** loose** the metadata (to prevent players to sell 1 durability items to player stores). This way player stores will never overpay for a broken item for example)

so some items that use to work fine before the update now don’t work or let you purchase them it shows the correct item in the store but when you go to purchase it it comes up zero dollars and doesn’t give you the item. did the config change and I have to re add everything? As I just copied and pasted my base stores over from the old config.

after looking at both they appear to be the same so im not sure why some items are letting me purchase them while others are not. Doesn’t seem to be a problem with the player stores only with the base stores it looks like

hey please open a support ticket so i can take a look at your config