vms* store - Docs
Purchase Asset
  • Welcome
  • Official Store
  • Discord
  • Helpful
    • Basic Server Knowledge
      • How to import SQL to database?
      • How to update server artifacts?
    • General Issues
    • Prepared Resources
  • ASSETS
    • vms_notifyV2
      • Installation
      • FAQ
      • Guides
        • Text Formatting
        • Swap in framework
      • Developer API
        • Client Exports
        • Server Events
      • Configuration Files
        • config.lua
        • config.js
    • vms_bossmenu
      • Installation
      • Compatibility
      • FAQ
      • Guides
        • Creating job2 on ESX
        • Paychecks Integration
      • Developer API
        • Client Exports
        • Client Events
        • Server Exports
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
    • vms_cityhall
      • Installation
      • Compatibility
      • FAQ
      • Common Errors
      • Guides
        • License Revocation
        • Personal Taxes Integration
        • Business Taxes Integration
        • Paychecks Integration
        • Add SSN Generation
        • Generate SSN for Players
        • Add VIN Generation
        • Generate VIN for Vehicles
      • Developer API
        • Client Exports
        • Server Exports
        • Commands
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.shared.lua
        • config.clerks.lua
        • config.taxes.lua
        • config.js
    • vms_documentsV2
      • Installation
      • FAQ
      • Common Errors
      • Guides
        • Add SSN Generation
        • Generate SSN for Players
        • Creating New Document
        • Driving School Integration
      • Developer API
        • Client Exports
        • Server Exports
        • Commands
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • metadata.js
    • vms_garagesV2
      • Installation
      • Compatibility
        • Housings
          • qs-housing
          • esx_property
          • bcs_housing
        • Phones
          • yflip-phone
          • qs-smartphone-pro
        • Other
          • VehicleDeformation
          • kq_wheeldamage
      • FAQ
      • Common Errors
      • Guides
        • Interior Stuck Prevention
        • Registering House Garage
      • Developer API
        • Client Exports
        • Server Exports
        • Server Events
        • Commands
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.garages.lua
        • config.management.lua
        • config.parkingcreator.lua
        • config.js
    • vms_houserobberies
      • Installation
      • FAQ
      • Common Errors
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.items.lua
        • config.interiors.lua
        • config.houseslist.lua
        • config.configurator.lua
    • vms_vehicleshopV2
      • Installation
      • Compatibility
      • FAQ
      • Common Errors
      • Guides
        • Adjusting Required Licenses
        • Adjusting orderprice
        • Photos Tool
      • Developer API
        • Client Exports
        • Client Events
        • Server Exports
        • Commands
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.management.lua
        • config.showroom.lua
        • config.js
    • vms_stores
      • Installation
      • Compatibility
      • FAQ
      • Common Errors
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.camera.lua
        • config.robbery.lua
        • config.storemanage.lua
        • config.js
    • vms_reports
      • Installation
      • Common Errors
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.js
    • vms_tuning
      • Installation
      • FAQ
      • Common Errors
      • Guides
        • Garage Integration
          • jg-advancedgarages
        • Understanding Prices
        • Using whitelist & blacklist
        • Fix tuning parts names from NULL
        • Paychecks from the built-in balance
      • Developer API
        • Client Exports
        • Server Exports
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.vehicles.lua
        • config.tuningmenu.lua
        • config.installationparts.lua
        • config.custommods.lua
        • config.missions.lua
    • vms_gym
      • Installation
      • FAQ
      • Common Errors
      • Developer API
        • Client Exports
        • Server Exports
        • Server Events
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.management.lua
    • vms_hud
      • Installation
      • FAQ
      • Common Errors
      • Developer API
        • Client Exports
        • Client Events
        • Server Events
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.js
    • vms_spawnselector
      • Installation
      • Compatibility
        • vms_multichars
        • esx_multicharacter
        • esx_identity
        • qb-multicharacter
      • FAQ
      • Developer API
        • Client Exports
        • Server Events
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
    • vms_guidebook
      • Installation
      • Guides
        • Text Formating
      • Developer API
        • Client Exports
        • Client Events
        • Server Events
      • Configuration Files
        • config.lua
        • pages.js
    • vms_coinshop
      • Installation
      • Configuration Files
        • config.lua
    • vms_vehicleshop
      • Installation
      • Configuration Files
        • config.lua
    • vms_gangmissions
      • Installation
      • Guides
        • Connection to NPCTALK
      • Configuration Files
        • config.lua
    • vms_charcreator
      • Installation
      • Compatibility
        • vms_multichars
        • esx_multicharacter
        • esx_identity
        • qb-multicharacter
        • ZSX_Multicharacter
        • renzu_multicharacter
      • FAQ
      • Developer API
        • Client Events
        • Server Events
      • Configuration Files
        • config.lua
    • vms_clothestore
      • Installation
      • Compatibilty
      • Common Errors
      • Developer API
        • Client Exports
        • Client Events
        • Server Events
      • Configuration Files
        • config.lua
        • config.prices.lua
        • config.js
    • vms_multichars
      • Installation
      • Compatibilty
      • Common Errors
      • Developer API
        • Commands
      • Configuration Files
        • config.lua
        • config_client.lua
        • config_server.lua
        • config_commands.lua
    • vms_identity
      • Installation
      • FAQ
      • Common Errors
      • Configuration Files
        • config.lua
    • vms_barber
      • Installation
      • Compatibility
      • FAQ
      • Common Errors
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.management.lua
    • vms_tattooshop
      • Installation
      • Compatibility
      • FAQ
      • Common Errors
      • Guides
        • New ADD-ON Tattoos
      • Developer API
        • Client Exports
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.management.lua
        • config.tattoos.lua
    • vms_driveschoolV2
      • Installation
      • Compatibility
      • Common Errors
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
    • vms_boatschoolV2
      • Installation
      • Compatibility
      • Common Errors
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.routes.lua
    • vms_flightschoolV2
      • Installation
      • Compatibility
      • Common Errors
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.routes.lua
    • vms_documents
      • Installation
      • Guides
        • Adding to radialmenu
        • Usage of documents
        • Adding new documents
      • Configuration Files
        • config.lua
    • vms_anims
      • Installation
      • Guides
        • Adding animations
        • Adding more binds
      • Developer API
        • Client Exports
      • Configuration Files
        • config.lua
        • animations.lua
        • keybinds.lua
    • vms_weaponshop
      • Installation
      • Configuration Files
        • config.lua
    • vms_notify
      • Installation
      • Guides
        • Implementation
        • Replace core notifications
Powered by GitBook
On this page
  • 1. Adjust config.lua to your server core
  • 2. Adjust config.lua to server preferences
  • 3. Adjust config.storemanage.lua to server preferences

Was this helpful?

  1. ASSETS
  2. vms_stores

Configuration Files

1. Adjust config.lua to your server core

  1. Adjusting the script to your server core

Config.Core = "ESX"
Config.CoreExport = function()
    return exports['es_extended']:getSharedObject()
end

  1. Adjusting the PlayerLoaded trigger from server core to the script

Config.PlayerLoaded = "esx:playerLoaded"

  1. Adjusting the PlayerLogoutServer trigger from server core to the script

Config.PlayerLogoutServer = "esx:playerDropped"
  1. Adjusting the script to your server core

Config.Core = "QB-Core"
Config.CoreExport = function()
    return exports['qb-core']:GetCoreObject()
end

  1. Adjusting the PlayerLoaded trigger from server core to the script

Config.PlayerLoaded = "QBCore:Client:OnPlayerLoaded"

  1. Adjusting the PlayerLogoutServer trigger from server core to the script

Config.PlayerLogoutServer = "QBCore:Server:OnPlayerUnload"

2. Adjust config.lua to server preferences

If you want to use a progress-bar for the exercises you are doing, you can do so below. You can adjust your own progress bar in the config.client.lua - CL.Progressbar

Config.UseProgressbar = true

Do you want to use target system, you can adjust other one in the config.client.lua - CL.Target

Config.UseTarget = false
Config.TargetResource = 'ox_target' -- Prepared for 'ox_target', 'qb-target'

Adjusting the display of points

Config.UseMarkers = true -- Using a marker to display points
Config.UseText3D = false -- Using a 3D Text to display points
Config.UseHelpNotify = true -- Using a ESX.ShowHelpNotification (only for esx)

Set the maximum and minimum number of item purchases per purchase

Config.MaxItemsWithoutBasket = 20
Config.MaxItemsInBasket = 100

You can block the ability to run with the package while the goods are being delivered to the store

Config.DisableRunWithBoxInHands = true

Limit of stores to be owned by one player

-- -1 = Unlimited
-- 0 = No player can buy
Config.StoresLimitPerPlayer = -1

Do you want to prevent the employment of a player who has another job, if so, you can require the employment of only the person who has a job for example - unemployed

Config.RequiredJobToBeHired = 'unemployed'

Prevent multiple purchases of products by the same person so that fiends don't scoop up product sales for their own store

Config.PurchasesTimeout = 3600 -- 3600 seconds = 1 hour

3. Adjust config.storemanage.lua to server preferences

Cost of buying the Alarm & Monitoring

Config.AlarmPrice = 100000

The cost of transporting money safely

Config.MoneyEscortPrice = 2500

Costs and insurance times for stores

Config.Insurances = {
    [1] = {days = 7, price = 30000},
    [2] = {days = 30, price = 150000},
    [3] = {days = 90, price = 400000},
}

Times after which stores receive a warning and are removed for inactivity of employees

Config.TerminationTime = {
    ['critical'] = 168, -- After this time, the store will be removed for inactivity
    ['warning'] = 72 -- After this time, the player will receive information in the management menu after the remaining time to remove the store for inactivity
}

If a store has x% of products in stock, it will not be subject to Config.TerminationTime, it will be omitted from the liquidation time

Config.TerminationExclusionProductsPercent = 80

If a gasstation has x% of fuel in stock, it will not be subject to Config.TerminationTime, it will be omitted from the liquidation time

Config.TerminationExclusionFuelPercent = 70

For what % a player can sell his business

Config.AutomaticSellPercentageFromPrice = 40

Employee to be able to create new order to take care of business

Config.AbilityEmployeesToCreateOrders = true

What it will give to the store for the upgrade, here you can adjust the values that stores will be able to use at the concurrent upgrade level

Config.LevelsBenefits = {
    ['1'] = {
        itemsCapacity = 300,
        fuelCapacity = 2500,
        moneyMarginItems = 55,
        moneyMarginFuel = 55,
        quantityProducts = {15, 25, 50},
        quantityFuel = {30, 50, 150},
        levelup = {
            -- type: 'sell_products', 'sell_fuel', 'make_orders', 'required_money'
            ['sell_products'] = {type = 'sell_products', count = 5000},
            ['sell_fuel'] = {type = 'sell_fuel', count = 7500},
            ['make_orders'] = {type = 'make_orders', count = 120},
            ['required_money'] = {type = 'required_money', count = 50000},
        },
    },
    ['2'] = {
        itemsCapacity = 500,
        fuelCapacity = 4000,
        moneyMarginItems = 75,
        moneyMarginFuel = 75,
        quantityProducts = {15, 25, 50, 75},
        quantityFuel = {30, 50, 150, 220},
        levelup = {
            ['sell_products'] = {type = 'sell_products', count = 10000},
            ['sell_fuel'] = {type = 'sell_fuel', count = 17500},
            ['make_orders'] = {type = 'make_orders', count = 250},
            ['required_money'] = {type = 'required_money', count = 100000},
        },
    },
    ['3'] = {
        itemsCapacity = 750,
        fuelCapacity = 7500,
        moneyMarginItems = 90,
        moneyMarginFuel = 90,
        quantityProducts = {15, 25, 50, 75, 100},
        quantityFuel = {30, 50, 150, 220, 300},
    },
}

Last updated 1 year ago

Was this helpful?