Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add( "Initialize", "CS_CONFIG_Initialize_Hook", function()
- // MAIN CONFIG
- -- Main
- CreditShop_Config.UseDarkRP = true -- Whether or not you are using DarkRP.
- CreditShop_Config.UseWorkshop = true -- True uses WorkShop (ID: 1378473140), false uses FastDL (Remember to sync it).
- -- Themes
- CreditShop_Config.Theme = "Blur" -- Options: "Blur", "Flat" can be used with the skin.
- -- Menu Configs
- CreditShop_Config.ShopName = "Донат" -- The name of the shop, e.g. "CREDIT STORE"
- CreditShop_Config.ShopName3DEffect = false -- Whether or not the shop title should have a 3D effect
- CreditShop_Config.ShopUseCommand = true -- Whether or not the shop can be opened through a command (command can be changed below)
- CreditShop_Config.ShopCommand = "/creditstore" -- The command used to open the shop
- CreditShop_Config.ShopOpenWith = "F1" -- Can the shop be opened by a key Options: ( "NONE" = can't be opened using a key, "F1", "F2", "F3", "F4" )
- CreditShop_Config.ExchangeName = "CREDIT EXCHANGE" -- The name of the exchange, e.g. "CREDIT EXCHANGE"
- CreditShop_Config.ExchangeName3DEffect = true -- Whether or not the exchange title should have a 3D effect
- -- SQL
- CreditShop_Config.UseSQL = false -- Whether or not an SQL should be used (recommended true if you have a database)
- CreditShop_Config.CSDATABASE_HOST = "HOST" -- The host of the SQL database ( an IP ).
- CreditShop_Config.CSDATABASE_USERNAME = "USERNAME" -- The username for the SQL database.
- CreditShop_Config.CSDATABASE_PASSWORD = "PASSWORD" -- The password for the SQL database.
- CreditShop_Config.CSDATABASE_DATABASENAME = "DATABASENAME" -- The databasename of the SQL database.
- CreditShop_Config.CSDATABASE_DATABASEPORT = 3306 -- The DatabasePort, normally 3306.
- --Paydays and Credit System
- CreditShop_Config.STARTCREDITS = 5 -- This is the amount of credits that players start with.
- CreditShop_Config.ENABLE_SIMPLE_HUD = false -- Whether or not the simple HUD should be enabled - only draws credits
- CreditShop_Config.PAYDAYS = false -- Whether or not paydays should occur
- CreditShop_Config.PAYDAY_AMOUNT = 1000 -- How much credits a person should be given every PAYDAY_INTERVALS.
- CreditShop_Config.PAYDAY_INTERVALS = 120 -- In seconds, how often should the player receive the PAYDAY_AMOUNT.
- CreditShop_Config.CdDrpRate = 100 -- The amount of darkrp currency you get from 1 credit, and therefore how many dollars it takes to get 1 credit.
- CreditShop_Config.SaveStatsTime = 10 -- How often a player's credit stats should be saved.
- --PAGES--
- CreditShop_ExtraPages[1] = {
- Name = "DsAdmin",
- Website = "https://vk.com/gmodla?w=product-121556822_1773003%2Fquery",
- Icon = ""
- }
- CreditShop_ExtraPages[2] = {
- Name = "Premium",
- Website = "https://vk.com/gmodla?w=product-121556822_1773034%2Fquery",
- Icon = ""
- }
- CreditShop_ExtraPages[3] = {
- Name = "VIP",
- Website = "https://vk.com/gmodla?w=product-121556822_1773058%2Fquery",
- Icon = ""
- }
- // ADD ITEM CONFIG
- local ItemSort = "Random" -- Options: "High_Low", "Low_High", "Random"
- --[[--
- CreditShop_Items["health"] = { -- Unique name
- Name = "200 Health", -- Name shown in shop
- Description = "Gives you 200 HP. (Maximum 200 HP allowed)", -- The description shown in the shop
- InDepthDescription = "Sets your player model until your next death/job change!", -- A description shown in the about menu
- Model = "models/props_junk/GlassBottle01a.mdl", -- The model of the product
- Price = 1, -- the price of the product
- PM = false, -- whether the product is a player model or not, do not set this to true aswell as icon
- Icon = true, -- whether you want to use an icon or not
- IconImg = "materials/dark_matter/health.png", -- if Icon = true, then what image shoud it use
- OnPurFunction = -- the function to be called when a player buys it!
- function(ply,item)
- local HealthToGive = 200
- local MaxHealth = 200
- if ply:Health() + HealthToGive < MaxHealth then
- ply:SetHealth(ply:Health() + HealthToGive)
- else
- ply:SetHealth(MaxHealth)
- end
- end,
- }
- --]]--
- -- User group example
- CreditShop_Items["vip2"] = {
- Name = "VIP На 30дн.",
- Description = "",
- InDepthDescription = "",
- Model = "models/player/lulsec.mdl",
- Price = 150,
- PM = false,
- Icon = false,
- IconImg = "icon16/award_star_silver_2.png",
- OnPurFunction =
- function(ply,item)
- RunConsoleCommand("ulx", "tempadduserid", ply:SteamID(), "vip", "43200", "user")
- end,
- }
- CreditShop_Items["vip"] = {
- Name = "VIP НаВсегда",
- Description = "",
- InDepthDescription = "",
- Model = "models/player/lulsec.mdl",
- Price = 300,
- PM = false,
- Icon = false,
- IconImg = "icon16/award_star_silver_1.png",
- OnPurFunction =
- function(ply,item)
- RunConsoleCommand("ulx", "adduserid", ply:SteamID(), "vip")
- end,
- }
- CreditShop_Items["premium2"] = {
- Name = "Premium На 30дн.",
- Description = "",
- InDepthDescription = "",
- Model = "models/half-dead/gopniks/extra/playermodelonly.mdl",
- Price = 450,
- PM = false,
- Icon = false,
- IconImg = "icon16/award_star_gold_2.png",
- OnPurFunction =
- function(ply,item)
- RunConsoleCommand("ulx", "tempadduserid", ply:SteamID(), "premium", "43200", "user")
- end,
- }
- CreditShop_Items["premium"] = {
- Name = "Premium НаВсегда",
- Description = "",
- InDepthDescription = "",
- Model = "models/half-dead/gopniks/extra/playermodelonly.mdl",
- Price = 850,
- PM = false,
- Icon = false,
- IconImg = "icon16/award_star_gold_1.png",
- OnPurFunction =
- function(ply,item)
- RunConsoleCommand("ulx", "adduserid", ply:SteamID(), "premium")
- end,
- }
- CreditShop_Items["dsadmin2"] = {
- Name = "DsAdmin На 30дн.",
- Description = "",
- InDepthDescription = "",
- Model = "models/buggy.mdl",
- Price = 1200,
- PM = false,
- Icon = true,
- IconImg = "materials/credit_shop/armor.png",
- OnPurFunction =
- function(ply,item)
- RunConsoleCommand("ulx", "tempadduserid", ply:SteamID(), "dsadmin", "43200", "user")
- end,
- }
- CreditShop_Items["dsadmin"] = {
- Name = "DsAdmin НаВсегда",
- Description = "",
- InDepthDescription = "",
- Model = "models/buggy.mdl",
- Price = 3000,
- PM = false,
- Icon = true,
- IconImg = "materials/credit_shop/armor.png",
- OnPurFunction =
- function(ply,item)
- RunConsoleCommand("ulx", "adduserid", ply:SteamID(), "dsadmin")
- end,
- }
- if( CreditShop_Config.UseDarkRP == true ) then
- -- Icon (Money) examples
- CreditShop_Items["dollars"] = {
- Name = "$1,000,000",
- Description = "",
- InDepthDescription = "",
- Model = "models/props/cs_assault/Dollar.mdl",
- Price = 100,
- PM = false,
- Icon = false,
- IconImg = "materials/dark_matter/minigun.png",
- OnPurFunction =
- function(ply,item)
- ply:addMoney(1000000)
- end,
- }
- CreditShop_Items["dollars2"] = {
- Name = "$5,000,000",
- Description = "",
- InDepthDescription = "",
- Model = "models/props/cs_assault/money.mdl",
- Price = 400,
- PM = false,
- Icon = false,
- IconImg = "materials/dark_matter/minigun.png",
- OnPurFunction =
- function(ply,item)
- ply:addMoney(5000000)
- end,
- }
- CreditShop_Items["dollars3"] = {
- Name = "$10,000,000",
- Description = "",
- InDepthDescription = "",
- Model = "models/cash/stack.mdl",
- Price = 600,
- PM = false,
- Icon = false,
- IconImg = "materials/dark_matter/minigun.png",
- OnPurFunction =
- function(ply,item)
- ply:addMoney(10000000)
- end,
- }
- CreditShop_Items["dollars4"] = {
- Name = "$50,000,000",
- Description = "",
- InDepthDescription = "",
- Model = "models/cash/stack.mdl",
- Price = 1200,
- PM = false,
- Icon = false,
- IconImg = "materials/dark_matter/minigun.png",
- OnPurFunction =
- function(ply,item)
- ply:addMoney(50000000)
- end,
- }
- CreditShop_Items["dollars5"] = {
- Name = "$100,000,000",
- Description = "",
- InDepthDescription = "",
- Model = "models/props/cs_assault/MoneyPallet.mdl",
- Price = 2000,
- PM = false,
- Icon = false,
- IconImg = "materials/dark_matter/minigun.png",
- OnPurFunction =
- function(ply,item)
- ply:addMoney(100000000)
- end,
- }
- CreditShop_Items["perm_beretta"] = {
- Name = "M92 beretta",
- Description = "Оружие навсегда",
- InDepthDescription = "Оружие навсегда",
- Model = "models/weapons/w_beretta_m92.mdl",
- PermClass = "m9k_m92beretta",
- PermWep = true,
- Price = 200,
- PM = true,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "m9k_m92beretta" )
- ply:CS_AddPermWep( "m9k_m92beretta" )
- end,
- }
- CreditShop_Items["perm_model627"] = {
- Name = "Model 1627",
- Description = "Оружие навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_sw_model_627.mdl",
- PermClass = "m9k_model627",
- PermWep = true,
- Price = 380,
- PM = true,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "m9k_model627" )
- ply:CS_AddPermWep( "m9k_model627" )
- end,
- }
- CreditShop_Items["perm_p90"] = {
- Name = "UZI",
- Description = "Оружие навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_fn_p90.mdl",
- PermClass = "m9k_smgp90",
- PermWep = true,
- Price = 500,
- PM = true,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "m9k_smgp90" )
- ply:CS_AddPermWep( "m9k_smgp90" )
- end,
- }
- CreditShop_Items["perm_MP5SD"] = {
- Name = "MP5SD",
- Description = "Оружие навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_hk_mp5sd.mdl",
- PermClass = "m9k_mp5sd",
- PermWep = true,
- Price = 650,
- PM = true,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "m9k_mp5sd" )
- ply:CS_AddPermWep( "m9k_mp5sd" )
- end,
- }
- CreditShop_Items["perm_MP9"] = {
- Name = "MP9 (с прицелом)",
- Description = "Оружие навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_brugger_thomet_mp9.mdl",
- PermClass = "m9k_mp9",
- PermWep = true,
- Price = 750,
- PM = true,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "m9k_mp9" )
- ply:CS_AddPermWep( "m9k_mp9" )
- end,
- }
- CreditShop_Items["perm_thompson"] = {
- Name = "Tommy Gun",
- Description = "Оружие навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_tommy_gun.mdl",
- PermClass = "m9k_thompson",
- PermWep = true,
- Price = 850,
- PM = true,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "m9k_thompson" )
- ply:CS_AddPermWep( "m9k_thompson" )
- end,
- }
- CreditShop_Items["perm_hkmp7"] = {
- Name = "Hk MP7",
- Description = "Оружие навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_mp7_silenced.mdl",
- PermClass = "m9k_mp7",
- PermWep = true,
- Price = 950,
- PM = true,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "m9k_mp7" )
- ply:CS_AddPermWep( "m9k_mp7" )
- end,
- }
- CreditShop_Items["perm_vector"] = {
- Name = "Vector (с прицелом )",
- Description = "Оружие навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_kriss_vector.mdl",
- PermClass = "m9k_vector",
- PermWep = true,
- Price = 1300,
- PM = true,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "m9k_vector" )
- ply:CS_AddPermWep( "m9k_vector" )
- end,
- }
- CreditShop_Items["perm_M82"] = {
- Name = "Barret M82",
- Description = "Оружие навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_barret_m82.mdl",
- PermClass = "m9k_barret_m82",
- PermWep = true,
- Price = 2300,
- PM = true,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "m9k_barret_m82" )
- ply:CS_AddPermWep( "m9k_barret_m82" )
- end,
- }
- CreditShop_Items["perm_m1918bar"] = {
- Name = "M1918 BAR",
- Description = "Оружие навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_m1918_bar.mdl",
- PermClass = "m9k_m1918bar",
- PermWep = true,
- Price = 2600,
- PM = true,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "m9k_m1918bar" )
- ply:CS_AddPermWep( "m9k_m1918bar" )
- end,
- }
- CreditShop_Items["perm_M60"] = {
- Name = "M60",
- Description = "Оружие навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_m60_machine_gun.mdl",
- PermClass = "m9k_m60",
- PermWep = true,
- Price = 3500,
- PM = true,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "m9k_m60" )
- ply:CS_AddPermWep( "m9k_m60" )
- end,
- }
- CreditShop_Items["perm_M134"] = {
- Name = "M134 MiniGun",
- Description = "Оружие навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_m134_minigun.mdl",
- PermClass = "m9k_minigun",
- PermWep = true,
- Price = 5000,
- PM = true,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "m9k_minigun" )
- ply:CS_AddPermWep( "m9k_minigun" )
- end,
- }
- CreditShop_Items["perm_gutknifecrimson"] = {
- Name = "Gut Knife - Кровавая Паутина",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_gut.mdl",
- PermClass = "csgo_gut_crimsonwebs",
- PermWep = true,
- Price = 70,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_gut_crimsonwebs" )
- ply:CS_AddPermWep( "csgo_gut_crimsonwebs" )
- end,
- }
- CreditShop_Items["perm_gutknifegrad"] = {
- Name = "Gut Knife - Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_gut.mdl",
- PermClass = "csgo_gut_fade",
- PermWep = true,
- Price = 70,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_gut_fade" )
- ply:CS_AddPermWep( "csgo_gut_fade" )
- end,
- }
- CreditShop_Items["perm_gutknifemfade"] = {
- Name = "Gut Knife - Мраморный Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_gut.mdl",
- PermClass = "csgo_gut_marblefade",
- PermWep = true,
- Price = 70,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_gut_marblefade" )
- ply:CS_AddPermWep( "csgo_gut_marblefade" )
- end,
- }
- CreditShop_Items["perm_gutknifepc"] = {
- Name = "Gut Knife - Поверхностная Закалка",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_gut.mdl",
- PermClass = "csgo_gut_case",
- PermWep = true,
- Price = 70,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_gut_case" )
- ply:CS_AddPermWep( "csgo_gut_case" )
- end,
- }
- CreditShop_Items["perm_falchioncw"] = {
- Name = "Falchion Knife - Кровавая Паутина",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_falchion.mdl",
- PermClass = "csgo_falchion_crimsonwebs",
- PermWep = true,
- Price = 100,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_falchion_crimsonwebs" )
- ply:CS_AddPermWep( "csgo_falchion_crimsonwebs" )
- end,
- }
- CreditShop_Items["perm_falchiong"] = {
- Name = "Falchion Knife - Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_falchion.mdl",
- PermClass = "csgo_falchion_fade",
- PermWep = true,
- Price = 100,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_falchion_fade" )
- ply:CS_AddPermWep( "csgo_falchion_fade" )
- end,
- }
- CreditShop_Items["perm_falchionmg"] = {
- Name = "Falchion Knife - Мраморный Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_falchion.mdl",
- PermClass = "csgo_falchion_marblefade",
- PermWep = true,
- Price = 100,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_falchion_marblefade" )
- ply:CS_AddPermWep( "csgo_falchion_marblefade" )
- end,
- }
- CreditShop_Items["perm_falchionpz"] = {
- Name = "Falchion Knife - Поверхностная Закалка",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_falchion.mdl",
- PermClass = "csgo_falchion_case",
- PermWep = true,
- Price = 100,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_falchion_case" )
- ply:CS_AddPermWep( "csgo_falchion_case" )
- end,
- }
- CreditShop_Items["perm_hutsmancw"] = {
- Name = "Hutsman Knife - Кровавая Паутина",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_tactical.mdl",
- PermClass = "csgo_huntsman_crimsonwebs",
- PermWep = true,
- Price = 150,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_huntsman_crimsonwebs" )
- ply:CS_AddPermWep( "csgo_huntsman_crimsonwebs" )
- end,
- }
- CreditShop_Items["perm_hutsmang"] = {
- Name = "Hutsman Knife - Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_tactical.mdl",
- PermClass = "csgo_huntsman_fade",
- PermWep = true,
- Price = 150,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_huntsman_fade" )
- ply:CS_AddPermWep( "csgo_huntsman_fade" )
- end,
- }
- CreditShop_Items["perm_hutsmanmg"] = {
- Name = "Hutsman Knife - Мраморный Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_tactical.mdl",
- PermClass = "csgo_huntsman_marblefade",
- PermWep = true,
- Price = 150,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_huntsman_marblefade" )
- ply:CS_AddPermWep( "csgo_huntsman_marblefade" )
- end,
- }
- CreditShop_Items["perm_hutsman"] = {
- Name = "Hutsman Knife - Поверхностная Закалка",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_tactical.mdl",
- PermClass = "csgo_huntsman_case",
- PermWep = true,
- Price = 150,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_huntsman_case" )
- ply:CS_AddPermWep( "csgo_huntsman_case" )
- end,
- }
- CreditShop_Items["perm_flipcw"] = {
- Name = "Flip Knife - Кровавая Паутина",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_flip.mdl",
- PermClass = "csgo_flip_crimsonwebs",
- PermWep = true,
- Price = 200,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_flip_crimsonwebs" )
- ply:CS_AddPermWep( "csgo_flip_crimsonwebs" )
- end,
- }
- CreditShop_Items["perm_flipg"] = {
- Name = "Flip Knife - Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_flip.mdl",
- PermClass = "csgo_flip_fade",
- PermWep = true,
- Price = 200,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_flip_fade" )
- ply:CS_AddPermWep( "csgo_flip_fade" )
- end,
- }
- CreditShop_Items["perm_flipmg"] = {
- Name = "Flip Knife - Мраморный Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_flip.mdl",
- PermClass = "csgo_flip_marblefade",
- PermWep = true,
- Price = 200,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_flip_marblefade" )
- ply:CS_AddPermWep( "csgo_flip_marblefade" )
- end,
- }
- CreditShop_Items["perm_flippz"] = {
- Name = "Flip Knife - Поверхностная Закалка",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_flip.mdl",
- PermClass = "csgo_flip_case",
- PermWep = true,
- Price = 200,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_flip_case" )
- ply:CS_AddPermWep( "csgo_flip_case" )
- end,
- }
- CreditShop_Items["perm_bowiecw"] = {
- Name = "Bowie Knife - Кровавая Паутина",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_bowie.mdl",
- PermClass = "csgo_bowie_crimsonwebs",
- PermWep = true,
- Price = 250,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_bowie_crimsonwebs" )
- ply:CS_AddPermWep( "csgo_bowie_crimsonwebs" )
- end,
- }
- CreditShop_Items["perm_bowieg"] = {
- Name = "Bowie Knife - Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_bowie.mdl",
- PermClass = "csgo_bowie_fade",
- PermWep = true,
- Price = 250,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_bowie_fade" )
- ply:CS_AddPermWep( "csgo_bowie_fade" )
- end,
- }
- CreditShop_Items["perm_bowiemg"] = {
- Name = "Bowie Knife - Мраморный Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_bowie.mdl",
- PermClass = "csgo_bowie_marblefade",
- PermWep = true,
- Price = 250,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_bowie_marblefade" )
- ply:CS_AddPermWep( "csgo_bowie_marblefade" )
- end,
- }
- CreditShop_Items["perm_bowiepz"] = {
- Name = "Bowie Knife - Поверхностная Закалка",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_bowie.mdl",
- PermClass = "csgo_bowie_case",
- PermWep = true,
- Price = 250,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_bowie_case" )
- ply:CS_AddPermWep( "csgo_bowie_case" )
- end,
- }
- CreditShop_Items["perm_bayonetcw"] = {
- Name = "Bayonet Knife - Кровавая Паутина",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_bayonet.mdl",
- PermClass = "csgo_bayonet_crimsonwebs",
- PermWep = true,
- Price = 300,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_bayonet_crimsonwebs" )
- ply:CS_AddPermWep( "csgo_bayonet_crimsonwebs" )
- end,
- }
- CreditShop_Items["perm_bayonetg"] = {
- Name = "Bayonet Knife - Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_bayonet.mdl",
- PermClass = "csgo_bayonet_fade",
- PermWep = true,
- Price = 300,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_bayonet_fade" )
- ply:CS_AddPermWep( "csgo_bayonet_fade" )
- end,
- }
- CreditShop_Items["perm_bayonetmg"] = {
- Name = "Bayonet Knife - Мраморный Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_bayonet.mdl",
- PermClass = "csgo_bayonet_marblefade",
- PermWep = true,
- Price = 300,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_bayonet_marblefade" )
- ply:CS_AddPermWep( "csgo_bayonet_marblefade" )
- end,
- }
- CreditShop_Items["perm_bayonetpz"] = {
- Name = "Bayonet Knife - Поверхностная Закалка",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_bayonet.mdl",
- PermClass = "csgo_bayonet_case",
- PermWep = true,
- Price = 300,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_bayonet_case" )
- ply:CS_AddPermWep( "csgo_bayonet_case" )
- end,
- }
- CreditShop_Items["perm_m9cw"] = {
- Name = "M9 Bayonet Knife - Кровавая Паутина",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_m9.mdl",
- PermClass = "csgo_m9_crimsonwebs",
- PermWep = true,
- Price = 350,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_m9_crimsonwebs" )
- ply:CS_AddPermWep( "csgo_m9_crimsonwebs" )
- end,
- }
- CreditShop_Items["perm_m9g"] = {
- Name = "M9 Bayonet Knife - Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_m9.mdl",
- PermClass = "csgo_m9_fade",
- PermWep = true,
- Price = 350,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_m9_fade" )
- ply:CS_AddPermWep( "csgo_m9_fade" )
- end,
- }
- CreditShop_Items["perm_m9mg"] = {
- Name = "M9 Bayonet Knife - Мраморный Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_m9.mdl",
- PermClass = "csgo_m9_marblefade",
- PermWep = true,
- Price = 350,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_m9_marblefade" )
- ply:CS_AddPermWep( "csgo_m9_marblefade" )
- end,
- }
- CreditShop_Items["perm_m9pz"] = {
- Name = "M9 Bayonet Knife - Поверхностная Закалка",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_m9.mdl",
- PermClass = "csgo_m9_case",
- PermWep = true,
- Price = 350,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_m9_case" )
- ply:CS_AddPermWep( "csgo_m9_case" )
- end,
- }
- CreditShop_Items["perm_karambitcw"] = {
- Name = "Karambit Knife - Кровавая Паутина",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_karambit.mdl",
- PermClass = "csgo_karambit_crimsonwebs",
- PermWep = true,
- Price = 400,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_karambit_crimsonwebs" )
- ply:CS_AddPermWep( "csgo_karambit_crimsonwebs" )
- end,
- }
- CreditShop_Items["perm_karambitg"] = {
- Name = "Karambit Knife - Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_karambit.mdl",
- PermClass = "csgo_karambit_fade",
- PermWep = true,
- Price = 400,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_karambit_fade" )
- ply:CS_AddPermWep( "csgo_karambit_fade" )
- end,
- }
- CreditShop_Items["perm_karambitmg"] = {
- Name = "Karambit Knife - Мраморный Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_karambit.mdl",
- PermClass = "csgo_karambit_marblefade",
- PermWep = true,
- Price = 400,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_karambit_marblefade" )
- ply:CS_AddPermWep( "csgo_karambit_marblefade" )
- end,
- }
- CreditShop_Items["perm_karambitpz"] = {
- Name = "Karambit Knife - Поверхностная Закалка",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_karambit.mdl",
- PermClass = "csgo_karambit_case",
- PermWep = true,
- Price = 400,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_karambit_case" )
- ply:CS_AddPermWep( "csgo_karambit_case" )
- end,
- }
- CreditShop_Items["perm_butterflycw"] = {
- Name = "ButterFly Knife - Кровавая Паутина",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_butterfly.mdl",
- PermClass = "csgo_butterfly_crimsonwebs",
- PermWep = true,
- Price = 450,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_butterfly_crimsonwebs" )
- ply:CS_AddPermWep( "csgo_butterfly_crimsonwebs" )
- end,
- }
- CreditShop_Items["perm_butterflyg"] = {
- Name = "ButterFly Knife - Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_butterfly.mdl",
- PermClass = "csgo_butterfly_fade",
- PermWep = true,
- Price = 450,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_butterfly_fade" )
- ply:CS_AddPermWep( "csgo_butterfly_fade" )
- end,
- }
- CreditShop_Items["perm_butterflymg"] = {
- Name = "ButterFly Knife - Мраморный Градиент",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_butterfly.mdl",
- PermClass = "csgo_butterfly_marblefade",
- PermWep = true,
- Price = 450,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_butterfly_marblefade" )
- ply:CS_AddPermWep( "csgo_butterfly_marblefade" )
- end,
- }
- CreditShop_Items["perm_butterflypz"] = {
- Name = "ButterFly Knife - Поверхностная Закалка",
- Description = "Нож навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_csgo_butterfly.mdl",
- PermClass = "csgo_butterfly_case",
- PermWep = true,
- Price = 450,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "csgo_butterfly_case" )
- ply:CS_AddPermWep( "csgo_butterfly_case" )
- end,
- }
- CreditShop_Items["perm_beatbox"] = {
- Name = "БитБокс",
- Description = "Гаджет навсегда",
- InDepthDescription = "",
- Model = "models/player/voikanaa/snoop_dogg.mdl",
- PermClass = "beatbox",
- PermWep = true,
- Price = 200,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "beatbox" )
- ply:CS_AddPermWep( "beatbox" )
- end,
- }
- CreditShop_Items["perm_lockpick"] = {
- Name = "Lock Pick",
- Description = "Гаджет навсегда",
- InDepthDescription = "",
- Model = "models/weapons/c_crowbar.mdl",
- PermClass = "lockpick",
- PermWep = true,
- Price = 350,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "lockpick" )
- ply:CS_AddPermWep( "lockpick" )
- end,
- }
- CreditShop_Items["perm_cracker"] = {
- Name = "Кейпад Cracker",
- Description = "Гаджет навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_c4.mdl",
- PermClass = "keypad_cracker",
- PermWep = true,
- Price = 500,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "keypad_cracker" )
- ply:CS_AddPermWep( "keypad_cracker" )
- end,
- }
- CreditShop_Items["perm_medkit"] = {
- Name = "МедКит",
- Description = "Гаджет навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_medkit.mdl",
- PermClass = "weapon_medkit",
- PermWep = true,
- Price = 700,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "weapon_medkit" )
- ply:CS_AddPermWep( "weapon_medkit" )
- end,
- }
- CreditShop_Items["perm_repair"] = {
- Name = "Repair tool ( для машин )",
- Description = "Гаджет навсегда",
- InDepthDescription = "",
- Model = "models/vcmod/vcmod_wrench.mdl",
- PermClass = "vc_wrench",
- PermWep = true,
- Price = 900,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "vc_wrench" )
- ply:CS_AddPermWep( "vc_wrench" )
- end,
- }
- CreditShop_Items["perm_tazer"] = {
- Name = "Тазер",
- Description = "Гаджет навсегда",
- InDepthDescription = "",
- Model = "models/weapons/w_pistol.mdl",
- PermClass = "weapon_stungun",
- PermWep = true,
- Price = 1200,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "weapon_stungun" )
- ply:CS_AddPermWep( "weapon_stungun" )
- end,
- }
- CreditShop_Items["perm_hack"] = {
- Name = "Телефон хакера",
- Description = "Гаджет навсегда",
- InDepthDescription = "",
- Model = "models/inside/iiphone5.mdl",
- PermClass = "weapon_hack_phone",
- PermWep = true,
- Price = 1500,
- PM = false,
- Icon = false,
- OnPurFunction =
- function(ply,item)
- ply:Give( "weapon_hack_phone" )
- ply:CS_AddPermWep( "weapon_hack_phone" )
- end,
- }
- end
- if( ItemSort == "High_Low" ) then
- table.sort(CreditShop_Items, function(a, b) return a.Price > b.Price end);
- elseif( ItemSort == "Low_High" ) then
- table.sort(CreditShop_Items, function(a, b) return a.Price < b.Price end);
- end
- // PRESET CONFIG
- --PRESETS--
- --[[--
- CreditShop_Presets[1] = {
- Name = "Tropical Preset", --Preset Name
- TextColor = Color(120,120,120,255), --Preset Text color
- ThemeColor = Color(0,238,255,150) --Preset Theme color
- }
- CreditShop_Presets[5] = {
- Name = "Rainbow Preset", --Preset Name
- Flash = true, --Should the preset constantly change colors
- TextColor = Color(255,255,255,255), --Preset Text Color
- minRed = 0, -- Minimum Red
- maxRed = 255, -- Maximum Red
- minGreen = 0, -- Minimum Green
- maxGreen = 255, -- Maximum Green
- minBlue = 0, -- Minimum Blue
- maxBlue = 255, -- Maximum Blue
- Alpha = 200 -- Alpha ( opacity )
- }
- --]]--
- CreditShop_Presets = {} --IGNORE
- CreditShop_Presets[1] = {
- Name = "Red Preset",
- TextColor = Color(255,174,174,255),
- ThemeColor = Color(255,0,0,150)
- }
- CreditShop_Presets[2] = {
- Name = "Orange Preset",
- TextColor = Color(255,234,174,255),
- ThemeColor = Color(255,144,0,175)
- }
- CreditShop_Presets[3] = {
- Name = "Yellow Preset",
- TextColor = Color(255,255,196,255),
- ThemeColor = Color(255,255,0,184)
- }
- CreditShop_Presets[4] = {
- Name = "Green Preset",
- TextColor = Color(211,255,210,255),
- ThemeColor = Color(12,255,0,200)
- }
- CreditShop_Presets[5] = {
- Name = "Light Blue Preset",
- TextColor = Color(255,255,255,255),
- ThemeColor = Color(0,255,242,200)
- }
- CreditShop_Presets[6] = {
- Name = "Blue Preset",
- TextColor = Color(142,142,255,255),
- ThemeColor = Color(0,4,255,200)
- }
- CreditShop_Presets[7] = {
- Name = "Pink Preset",
- TextColor = Color(251,160,255,255),
- ThemeColor = Color(255,0,238,200)
- }
- CreditShop_Presets[8] = {
- Name = "Purple Preset",
- TextColor = Color(178,0,157,236),
- ThemeColor = Color(126,0,161,236)
- }
- CreditShop_Presets[9] = {
- Name = "Sun Preset",
- TextColor = Color(255,0,0,255),
- ThemeColor = Color(198,66,0,150)
- }
- CreditShop_Presets[10] = {
- Name = "Dark Preset",
- TextColor = Color(255,255,255,255),
- ThemeColor = Color(0,0,0,255)
- }
- CreditShop_Presets[11] = {
- Name = "Tropical Preset",
- TextColor = Color(120,120,120,255),
- ThemeColor = Color(0,238,255,150)
- }
- CreditShop_Presets[12] = {
- Name = "Rainbow Preset",
- Flash = true,
- TextColor = Color(255,255,255,255),
- minRed = 0,
- maxRed = 255,
- minGreen = 0,
- maxGreen = 255,
- minBlue = 0,
- maxBlue = 255,
- Alpha = 200
- }
- CreditShop_Presets[13] = {
- Name = "Red Mayhem Preset",
- Flash = true,
- TextColor = Color(255,255,255,255),
- minRed = 0,
- maxRed = 255,
- minGreen = 0,
- maxGreen = 0,
- minBlue = 0,
- maxBlue = 0,
- Alpha = 200
- }
- CreditShop_Presets[14] = {
- Name = "Green Mayhem Preset",
- Flash = true,
- TextColor = Color(255,255,255,255),
- minRed = 0,
- maxRed = 0,
- minGreen = 0,
- maxGreen = 255,
- minBlue = 0,
- maxBlue = 0,
- Alpha = 200
- }
- CreditShop_Presets[15] = {
- Name = "Blue Mayhem Preset",
- Flash = true,
- TextColor = Color(255,255,255,255),
- minRed = 0,
- maxRed = 0,
- minGreen = 0,
- maxGreen = 0,
- minBlue = 0,
- maxBlue = 255,
- Alpha = 200
- }
- CreditShop_Presets[16] = {
- Name = "White Mayhem Preset",
- Flash = true,
- TextColor = Color(255,255,255,255),
- minRed = 200,
- maxRed = 255,
- minGreen = 200,
- maxGreen = 255,
- minBlue = 200,
- maxBlue = 255,
- Alpha = 200
- }
- //IGNORE
- function formatCredits( num ) -- Formats a number like this "10,000 Credits", saves space
- return string.Comma(num).." Руб."
- end
- end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement