Tebex [3.80€]: https://mskscripts.tebex.io/
Description
- Set as many Shops as you want
- Set a Shopname for every Shop
- Set a license that you need to buy an item or weapon for a certain item
- You can buy the corresponding license in this shop
- Set a job that you need to enter the Shop
- Choose if you want a NPC or a Marker for every Shop
- Set different Blips for every Shop
- Set as many locations for every Shop as you want
- Set as many items or weapons that you want
Database Feature
- You can set an max amount of every item in database. If the amount is 0 then you cant buy this item anymore. If you sell an item then the amount will be added so you can buy the item again.
Config
Code
Config = {}
----------------------------------------------------------------
Config.Locale = 'de' -- 'de', 'en'
Config.VersionChecker = true
Config.Debug = true
----------------------------------------------------------------
Config.Hotkey = 38 -- default: 38 = E // Change the Key in translation.lua too
Config.textUI = 'default' -- 'default', 'esx' or 'okok'
Config.npcVoice = true -- The NPC will say something to you
----------------------------------------------------------------
-- !!! If you set this to true make sure that you add ALL Items to your Database in 'msk_shops' Table !!!
-- You can set an max Amount of every item in database. If the amount is 0 then you cant buy this item anymore.
-- Please add the database.sql to your Database
Config.useDatabase = false -- Set true if you want to use that Feature
----------------------------------------------------------------
Config.Shops = {
['24/7'] = {
label = '24/7 Shop',
-- Set license to {type = 'license', label = 'Weaponlicense', name = 'weapon', method = true, price = 500} or false to disable
-- Set 'method' to true or 'black_money' // If 'black_money' the Players can buy or sell with black_money too
-- Set 'type' to 'license' or 'item'
license = false,
jobs = false, -- 'jobname' or false to disable
pedmodel = 'mp_m_shopkeep_01', -- 'mp_m_shopkeep_01' or false to use a Marker instead
draw3dtext = {label = '~g~Open 24/7', size = 0.8}, -- {label = '~g~Open 24/7', size = 0.8} or false to disable
blip = {id = 59, color = 2, scale = 0.8}, -- {id = 59, color = 2, scale = 0.8} or false to disable
locations = { -- You can set multiple locations
{x = 1727.71, y = 6415.24, z = 35.04, h = 242.06},
{x = 1697.65, y = 4923.14, z = 42.063, h = 352.85},
{x = 1959.97, y = 3739.96, z = 32.34, h = 288.98},
},
items = {
-- Set 'type' to 'item' or 'weapon' // If 'weapon' then add 'ammo = 100' // Write Weapons always in BIG LETTERS!! // example: "WEAPON_PISTOL"
-- Set 'method' to true or 'black_money' // If 'black_money' the Players can buy or sell with black_money
-- Set 'license' to true or false // If 'false' you dont need the license to buy this item. // If 'true' you need to buy the license first
-- Set 'price' or 'sellPrice' to false to disable buy or sell function
{type = "item", label = "Bread", name = "bread", method = true, license = false, price = 60, sellPrice = 120},
{type = "weapon", label = "Pistol", name = "WEAPON_PISTOL", method = true, license = true, price = 80, sellPrice = 120, ammo = 100},
{type = "weapon", label = "SMG", name = "WEAPON_SMG", method = 'black_money', license = true, price = 45, sellPrice = 120, ammo = 100},
}
},
}
Alles anzeigen
Requirements
- ESX 1.2 (v1-final) // Legacy
- mysql-async // oxmysql
- NativeUI
Optional
- okokTextUI
- esx_textui
- esx_license