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 |

