Initial commit
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
You should not edit DarkRP files. Not even the configuration files.
|
||||
|
||||
Use the DarkRPMod addon instead
|
||||
https://github.com/FPtje/DarkRPModification
|
||||
9
gamemodes/darkrp/gamemode/config/_MySQL.lua
Normal file
9
gamemodes/darkrp/gamemode/config/_MySQL.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
RP_MySQLConfig = {}
|
||||
RP_MySQLConfig.EnableMySQL = false
|
||||
RP_MySQLConfig.Host = "127.0.0.1"
|
||||
RP_MySQLConfig.Username = "user"
|
||||
RP_MySQLConfig.Password = "password"
|
||||
RP_MySQLConfig.Database_name = "DarkRP"
|
||||
RP_MySQLConfig.Database_port = 3306
|
||||
RP_MySQLConfig.Preferred_module = "mysqloo"
|
||||
RP_MySQLConfig.MultiStatements = false
|
||||
166
gamemodes/darkrp/gamemode/config/addentities.lua
Normal file
166
gamemodes/darkrp/gamemode/config/addentities.lua
Normal file
@@ -0,0 +1,166 @@
|
||||
DarkRP.createShipment("Глоки отмычки", {
|
||||
model = "models/weapons/w_pist_glock18.mdl",
|
||||
entity = "qwb_glock18",
|
||||
price = 10000,
|
||||
amount = 10,
|
||||
separate = false,
|
||||
pricesep = 160,
|
||||
noship = false,
|
||||
allowed = {TEAM_GUN},
|
||||
category = "Пистолеты",
|
||||
})
|
||||
|
||||
DarkRP.createShipment("Юсп доброграды", {
|
||||
model = "models/weapons/w_pist_usp.mdl",
|
||||
entity = "qwb_usp",
|
||||
price = 8000,
|
||||
amount = 10,
|
||||
separate = false,
|
||||
pricesep = 160,
|
||||
noship = false,
|
||||
allowed = {TEAM_GUN},
|
||||
category = "Пистолеты",
|
||||
})
|
||||
|
||||
DarkRP.createShipment("Юмп сенвуя", {
|
||||
model = "models/weapons/w_smg_ump45.mdl",
|
||||
entity = "qwb_ump45",
|
||||
price = 15000,
|
||||
amount = 10,
|
||||
separate = false,
|
||||
pricesep = nil,
|
||||
noship = false,
|
||||
allowed = {TEAM_GUN},
|
||||
category = "ПП",
|
||||
})
|
||||
|
||||
DarkRP.createShipment("Дробовик жоский", {
|
||||
model = "models/weapons/w_shot_m3super90.mdl",
|
||||
entity = "qwb_m3super",
|
||||
price = 19000,
|
||||
amount = 10,
|
||||
separate = false,
|
||||
pricesep = nil,
|
||||
noship = false,
|
||||
allowed = {TEAM_GUN},
|
||||
category = "Дробовики",
|
||||
})
|
||||
|
||||
DarkRP.createShipment("Авп симпла", {
|
||||
model = "models/weapons/w_snip_g3sg1.mdl",
|
||||
entity = "qwb_awp",
|
||||
price = 27000,
|
||||
amount = 10,
|
||||
separate = false,
|
||||
pricesep = nil,
|
||||
noship = false,
|
||||
allowed = {TEAM_GUN},
|
||||
category = "Снайперки",
|
||||
})
|
||||
|
||||
DarkRP.createEntity("Принтер с урбапетличка рпг", {
|
||||
ent = "nyxteam_printer",
|
||||
model = "models/props_lab/reciever01a.mdl",
|
||||
price = 3000,
|
||||
max = 2,
|
||||
cmd = "buymoneyprinter"
|
||||
})
|
||||
|
||||
DarkRP.createEntity("Медкит", {
|
||||
ent = "item_healthkit",
|
||||
model = "models/Items/HealthKit.mdl",
|
||||
price = 300,
|
||||
max = 4,
|
||||
cmd = "buymedkit"
|
||||
})
|
||||
|
||||
DarkRP.createEntity("Арморкит", {
|
||||
ent = "item_battery",
|
||||
model = "models/Items/battery.mdl",
|
||||
price = 300,
|
||||
max = 4,
|
||||
cmd = "buyarmorkit"
|
||||
})
|
||||
|
||||
if not DarkRP.disabledDefaults["modules"]["hungermod"] then
|
||||
DarkRP.createEntity("Microwave", {
|
||||
ent = "microwave",
|
||||
model = "models/props/cs_office/microwave.mdl",
|
||||
price = 400,
|
||||
max = 1,
|
||||
cmd = "buymicrowave",
|
||||
allowed = TEAM_COOK
|
||||
})
|
||||
end
|
||||
|
||||
DarkRP.createCategory{
|
||||
name = "Другое",
|
||||
categorises = "entities",
|
||||
startExpanded = true,
|
||||
color = Color(0, 107, 0, 255),
|
||||
canSee = fp{fn.Id, true},
|
||||
sortOrder = 255,
|
||||
}
|
||||
|
||||
DarkRP.createCategory{
|
||||
name = "Другое",
|
||||
categorises = "shipments",
|
||||
startExpanded = true,
|
||||
color = Color(0, 107, 0, 255),
|
||||
canSee = fp{fn.Id, true},
|
||||
sortOrder = 255,
|
||||
}
|
||||
|
||||
DarkRP.createCategory{
|
||||
name = "ПП",
|
||||
categorises = "shipments",
|
||||
startExpanded = true,
|
||||
color = Color(0, 107, 0, 255),
|
||||
canSee = fp{fn.Id, true},
|
||||
sortOrder = 100,
|
||||
}
|
||||
|
||||
DarkRP.createCategory{
|
||||
name = "Дробовики",
|
||||
categorises = "shipments",
|
||||
startExpanded = true,
|
||||
color = Color(0, 107, 0, 255),
|
||||
canSee = fp{fn.Id, true},
|
||||
sortOrder = 101,
|
||||
}
|
||||
|
||||
DarkRP.createCategory{
|
||||
name = "Снайперки",
|
||||
categorises = "shipments",
|
||||
startExpanded = true,
|
||||
color = Color(0, 107, 0, 255),
|
||||
canSee = fp{fn.Id, true},
|
||||
sortOrder = 102,
|
||||
}
|
||||
|
||||
DarkRP.createCategory{
|
||||
name = "Пистолеты",
|
||||
categorises = "shipments",
|
||||
startExpanded = true,
|
||||
color = Color(0, 107, 0, 255),
|
||||
canSee = fp{fn.Id, true},
|
||||
sortOrder = 100,
|
||||
}
|
||||
|
||||
DarkRP.createCategory{
|
||||
name = "Другое",
|
||||
categorises = "weapons",
|
||||
startExpanded = true,
|
||||
color = Color(0, 107, 0, 255),
|
||||
canSee = fp{fn.Id, true},
|
||||
sortOrder = 255,
|
||||
}
|
||||
|
||||
DarkRP.createCategory{
|
||||
name = "Другое",
|
||||
categorises = "vehicles",
|
||||
startExpanded = true,
|
||||
color = Color(0, 107, 0, 255),
|
||||
canSee = fp{fn.Id, true},
|
||||
sortOrder = 255,
|
||||
}
|
||||
43
gamemodes/darkrp/gamemode/config/ammotypes.lua
Normal file
43
gamemodes/darkrp/gamemode/config/ammotypes.lua
Normal file
@@ -0,0 +1,43 @@
|
||||
DarkRP.createAmmoType("pistol", {
|
||||
name = "Пистолетные патроны",
|
||||
model = "models/Items/BoxSRounds.mdl",
|
||||
price = 30,
|
||||
amountGiven = 24
|
||||
})
|
||||
|
||||
DarkRP.createAmmoType("buckshot", {
|
||||
name = "Дробовичные патроны",
|
||||
model = "models/Items/BoxBuckshot.mdl",
|
||||
price = 50,
|
||||
amountGiven = 8
|
||||
})
|
||||
|
||||
DarkRP.createAmmoType("smg1", {
|
||||
name = "ПП патроны",
|
||||
model = "models/Items/BoxMRounds.mdl",
|
||||
price = 60,
|
||||
amountGiven = 30
|
||||
})
|
||||
|
||||
DarkRP.createAmmoType("AR2", {
|
||||
name = "Винтовочные патроны",
|
||||
model = "models/Items/BoxMRounds.mdl",
|
||||
price = 80,
|
||||
amountGiven = 30
|
||||
})
|
||||
|
||||
DarkRP.createAmmoType("357", {
|
||||
name = "Револьверные патроны",
|
||||
model = "models/Items/BoxMRounds.mdl",
|
||||
price = 50,
|
||||
amountGiven = 15
|
||||
})
|
||||
|
||||
DarkRP.createCategory{
|
||||
name = "Другое",
|
||||
categorises = "ammo",
|
||||
startExpanded = true,
|
||||
color = Color(0, 107, 0, 255),
|
||||
canSee = fp{fn.Id, true},
|
||||
sortOrder = 255,
|
||||
}
|
||||
542
gamemodes/darkrp/gamemode/config/config.lua
Normal file
542
gamemodes/darkrp/gamemode/config/config.lua
Normal file
@@ -0,0 +1,542 @@
|
||||
--[[-------------------------------------------------------------------------
|
||||
DarkRP config settings.
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
This is the settings file of DarkRP. Every DarkRP setting is listed here.
|
||||
|
||||
Warning:
|
||||
If this file is missing settings (because of e.g. an update), DarkRP will assume default values for these settings.
|
||||
Don't worry about updating this file. If a new setting is added you can manually add them to this file.
|
||||
---------------------------------------------------------------------------]]
|
||||
|
||||
|
||||
--[[
|
||||
Toggle settings.
|
||||
Set to true or false.
|
||||
]]
|
||||
|
||||
-- voice3D - Enable/disable 3DVoice is enabled.
|
||||
GM.Config.voice3D = true
|
||||
-- AdminsCopWeapons - Enable/disable admins spawning with cop weapons.
|
||||
GM.Config.AdminsCopWeapons = false
|
||||
-- adminBypassJobCustomCheck - Enable/disable whether an admin can force set a job with whenever customCheck returns false.
|
||||
GM.Config.adminBypassJobRestrictions = true
|
||||
-- Acts/Taunts - Enable/disable Taunts (e.g. act salute)
|
||||
GM.Config.allowActs = false
|
||||
-- allow people getting their own custom jobs.
|
||||
GM.Config.allowjobswitch = true
|
||||
-- allowrpnames - Allow Players to Set their RP names using the /rpname command.
|
||||
GM.Config.allowrpnames = true
|
||||
-- allowsprays - Enable/disable the use of sprays on the server.
|
||||
GM.Config.allowsprays = true
|
||||
-- allowvehicleowning - Enable/disable whether people can own vehicles.
|
||||
GM.Config.allowvehicleowning = true
|
||||
-- allowvnocollide - Enable/disable the ability to no-collide a vehicle (for security).
|
||||
GM.Config.allowvnocollide = false
|
||||
-- alltalk - Enable for global chat, disable for local chat.
|
||||
GM.Config.alltalk = false
|
||||
-- antimultirun - Disallow people joining your server(s) twice on the same account.
|
||||
GM.Config.antimultirun = true
|
||||
-- autovehiclelock - Enable/Disable automatic locking of a vehicle when a player exits it.
|
||||
GM.Config.autovehiclelock = false
|
||||
-- babygod - people spawn godded (prevent spawn killing).
|
||||
GM.Config.babygod = true
|
||||
-- canforcedooropen - whether players can force an unownable door open with lockpick or battering ram or w/e.
|
||||
GM.Config.canforcedooropen = true
|
||||
-- chatsounds - sounds are played when some things are said in chat.
|
||||
GM.Config.chatsounds = true
|
||||
-- chiefjailpos - Allow the Chief to set the jail positions.
|
||||
GM.Config.chiefjailpos = false
|
||||
-- cit_propertytax - Enable/disable property tax that is exclusive only for citizens.
|
||||
GM.Config.cit_propertytax = false
|
||||
-- copscanunfreeze - Enable/disable the ability of cops to unfreeze other people's props.
|
||||
GM.Config.copscanunfreeze = true
|
||||
-- copscanunweld - Enable/disable the ability of cops to unweld other people's props.
|
||||
GM.Config.copscanunweld = false
|
||||
-- cpcanarrestcp - Allow/Disallow CPs to arrest other CPs.
|
||||
GM.Config.cpcanarrestcp = true
|
||||
-- currencyLeft - The position of the currency symbol. true for left, false for right.
|
||||
GM.Config.currencyLeft = true
|
||||
-- customjobs - Enable/disable the /job command (personalized job names).
|
||||
GM.Config.customjobs = true
|
||||
-- customspawns - Enable/disable whether custom spawns should be used.
|
||||
GM.Config.customspawns = true
|
||||
-- deathblack - Whether or not a player sees black on death.
|
||||
GM.Config.deathblack = false
|
||||
-- showdeaths - Display kill information in the upper right corner of everyone's screen.
|
||||
GM.Config.showdeaths = true
|
||||
-- deadtalk - Enable/disable whether people talk and use commands while dead.
|
||||
GM.Config.deadtalk = true
|
||||
-- deadvoice - Enable/disable whether people talk through the microphone while dead.
|
||||
GM.Config.deadvoice = true
|
||||
-- deathpov - Enable/disable whether people see their death in first person view.
|
||||
GM.Config.deathpov = false
|
||||
-- decalcleaner - Enable/Disable clearing every player's decals.
|
||||
GM.Config.decalcleaner = false
|
||||
-- disallowClientsideScripts - Clientside scripts can be very useful for customizing the HUD or to aid in building. This option bans those scripts.
|
||||
GM.Config.disallowClientsideScripts = false
|
||||
-- doorwarrants - Enable/disable Warrant requirement to enter property.
|
||||
GM.Config.doorwarrants = true
|
||||
-- dropmoneyondeath - Enable/disable whether people drop money on death.
|
||||
GM.Config.dropmoneyondeath = false
|
||||
-- droppocketarrest - Enable/disable whether people drop the stuff in their pockets when they get arrested.
|
||||
GM.Config.droppocketarrest = false
|
||||
-- droppocketdeath - Enable/disable whether people drop the stuff in their pockets when they die.
|
||||
GM.Config.droppocketdeath = true
|
||||
-- dropweapondeath - Enable/disable whether people drop their current weapon when they die.
|
||||
GM.Config.dropweapondeath = false
|
||||
-- Whether players can drop the weapons they spawn with.
|
||||
GM.Config.dropspawnedweapons = false
|
||||
-- dynamicvoice - Enable/disable whether only people in the same room as you can hear your mic.
|
||||
GM.Config.dynamicvoice = true
|
||||
-- earthquakes - Enable/disable earthquakes.
|
||||
GM.Config.earthquakes = false
|
||||
-- enablebuypistol - Turn /buy on of off.
|
||||
GM.Config.enablebuypistol = true
|
||||
-- enforceplayermodel - Whether or not to force players to use their role-defined character models.
|
||||
GM.Config.enforceplayermodel = true
|
||||
-- globalshow - Whether or not to display player info above players' heads in-game.
|
||||
GM.Config.globalshow = false
|
||||
-- ironshoot - Enable/disable whether people need iron sights to shoot.
|
||||
GM.Config.ironshoot = true
|
||||
-- showjob - Whether or not to display a player's job above their head in-game.
|
||||
GM.Config.showjob = true
|
||||
-- letters - Enable/disable letter writing / typing.
|
||||
GM.Config.letters = true
|
||||
-- license - Enable/disable People need a license to be able to pick up guns.
|
||||
GM.Config.license = false
|
||||
-- lockdown - Enable/Disable initiating lockdowns for mayors.
|
||||
GM.Config.lockdown = true
|
||||
-- lockpickfading - Enable/disable the lockpicking of fading doors.
|
||||
GM.Config.lockpickfading = true
|
||||
-- logging - Enable/disable logging everything that happens.
|
||||
GM.Config.logging = true
|
||||
-- lottery - Enable/disable creating lotteries for mayors.
|
||||
GM.Config.lottery = true
|
||||
-- showname - Whether or not to display a player's name above their head in-game.
|
||||
GM.Config.showname = true
|
||||
-- showhealth - Whether or not to display a player's health above their head in-game.
|
||||
GM.Config.showhealth = true
|
||||
-- needwantedforarrest - Enable/disable Cops can only arrest wanted people.
|
||||
GM.Config.needwantedforarrest = false
|
||||
-- noguns - Enabling this feature bans Guns and Gun Dealers.
|
||||
GM.Config.noguns = false
|
||||
-- norespawn - Enable/Disable that people don't have to respawn when they change job.
|
||||
GM.Config.norespawn = true
|
||||
-- keepPickedUp - Enable/Disable keeping picked up weapons when switching jobs.
|
||||
GM.Config.keepPickedUp = false
|
||||
-- instantjob - Enable/Disable instantly respawning when norespawn is false
|
||||
GM.Config.instantjob = false
|
||||
-- npcarrest - Enable/disable arresting npc's.
|
||||
GM.Config.npcarrest = false
|
||||
-- ooc - Whether or not OOC tags are enabled.
|
||||
GM.Config.ooc = true
|
||||
-- propertytax - Enable/disable property tax.
|
||||
GM.Config.propertytax = false
|
||||
-- proppaying - Whether or not players should pay for spawning props.
|
||||
GM.Config.proppaying = false
|
||||
-- propspawning - Enable/disable props spawning. Applies to admins too.
|
||||
GM.Config.propspawning = true
|
||||
-- removeclassitems - Enable/disable shipments/microwaves/etc. removal when someone changes team.
|
||||
GM.Config.removeclassitems = true
|
||||
-- removeondisconnect - Enable/disable shipments/microwaves/etc. removal when someone disconnects.
|
||||
GM.Config.removeondisconnect = true
|
||||
-- respawninjail - Enable/disable whether people can respawn in jail when they die.
|
||||
GM.Config.respawninjail = true
|
||||
-- restrictallteams - Enable/disable Players can only be citizen until an admin allows them.
|
||||
GM.Config.restrictallteams = false
|
||||
-- restrictbuypistol - Enabling this feature makes /buy available only to Gun Dealers.
|
||||
GM.Config.restrictbuypistol = false
|
||||
-- restrictdrop - Enable/disable restricting the weapons players can drop. Setting this to true disallows weapons from shipments from being dropped.
|
||||
GM.Config.restrictdrop = false
|
||||
-- revokeLicenseOnJobChange - Whether licenses are revoked when a player changes jobs.
|
||||
GM.Config.revokeLicenseOnJobChange = true
|
||||
-- shouldResetLaws - Enable/Disable resetting the laws back to the default law set when the mayor changes.
|
||||
GM.Config.shouldResetLaws = false
|
||||
-- strictsuicide - Whether or not players should spawn where they suicided.
|
||||
GM.Config.strictsuicide = false
|
||||
-- telefromjail - Enable/disable teleporting from jail.
|
||||
GM.Config.telefromjail = true
|
||||
-- teletojail - Enable/disable teleporting to jail.
|
||||
GM.Config.teletojail = true
|
||||
-- unlockdoorsonstart - Enable/Disable unlocking all doors on map start.
|
||||
GM.Config.unlockdoorsonstart = false
|
||||
-- voiceradius - Enable/disable local voice chat.
|
||||
GM.Config.voiceradius = true
|
||||
-- tax - Whether players pay taxes on their wallets.
|
||||
GM.Config.wallettax = false
|
||||
-- wantedrespawn - Whether players remain wanted on respawn.
|
||||
GM.Config.wantedrespawn = false
|
||||
-- wantedsuicide - Enable/Disable suiciding while you are wanted by the police.
|
||||
GM.Config.wantedsuicide = false
|
||||
-- realisticfalldamage - Enable/Disable dynamic fall damage. Setting mp_falldamage to 1 will over-ride this.
|
||||
GM.Config.realisticfalldamage = true
|
||||
-- printeroverheat - Whether the default money printer can overheat on its own.
|
||||
GM.Config.printeroverheat = true
|
||||
-- weaponCheckerHideDefault - Hide default weapons when checking weapons.
|
||||
GM.Config.weaponCheckerHideDefault = true
|
||||
-- weaponCheckerHideNoLicense - Hide weapons that do not require a license.
|
||||
GM.Config.weaponCheckerHideNoLicense = false
|
||||
|
||||
--[[
|
||||
Value settings
|
||||
]]
|
||||
-- adminnpcs - Whether or not NPCs should be admin only. 0 = everyone, 1 = admin or higher, 2 = superadmin or higher, 3 = rcon only
|
||||
GM.Config.adminnpcs = 2
|
||||
-- adminsents - Whether or not SENTs should be admin only. 0 = everyone, 1 = admin or higher, 2 = superadmin or higher, 3 = rcon only
|
||||
GM.Config.adminsents = 2
|
||||
-- adminvehicles - Whether or not vehicles should be admin only. 0 = everyone, 1 = admin or higher, 2 = superadmin or higher, 3 = rcon only
|
||||
GM.Config.adminvehicles = 2
|
||||
-- adminweapons - Who can spawn weapons: 0: admins only, 1: supadmins only, 2: no one, 3: everyone
|
||||
GM.Config.adminweapons = 1
|
||||
-- arrestspeed - Sets the max arrest speed.
|
||||
GM.Config.arrestspeed = 120
|
||||
-- babygodtime - How long the babygod lasts.
|
||||
GM.Config.babygodtime = 5
|
||||
-- chatsoundsdelay - How long to wait before letting a player emit a sound from their chat again.
|
||||
-- Leave this on at least a few seconds to prevent people from spamming sounds. Set to 0 to disable.
|
||||
GM.Config.chatsoundsdelay = 5
|
||||
-- deathfee - the amount of money someone drops when dead.
|
||||
GM.Config.deathfee = 30
|
||||
-- decaltimer - Sets the time to clear clientside decals (in seconds).
|
||||
GM.Config.decaltimer = 120
|
||||
-- demotetime - Number of seconds before a player can rejoin a team after demotion from that team.
|
||||
GM.Config.demotetime = 120
|
||||
-- doorcost - Sets the cost of a door.
|
||||
GM.Config.doorcost = 30
|
||||
-- EntitySpamTime - Antispam time between spawning entities.
|
||||
GM.Config.EntitySpamTime = 2
|
||||
-- entremovedelay - how long to wait before removing a bought entity after disconnect.
|
||||
GM.Config.entremovedelay = 0
|
||||
-- gunlabweapon - The weapon that the gunlab spawns.
|
||||
GM.Config.gunlabweapon = "weapon_p2282"
|
||||
-- jailtimer - Sets the jailtimer (in seconds).
|
||||
GM.Config.jailtimer = 120
|
||||
-- lockdowndelay - The amount of time a mayor must wait before starting the next lockdown.
|
||||
GM.Config.lockdowndelay = 120
|
||||
-- maxadvertbillboards - The maximum number of /advert billboards a player can place.
|
||||
GM.Config.maxadvertbillboards = 3
|
||||
-- maxCheques - The maximum number of cheques someone can write
|
||||
GM.Config.maxCheques = 0
|
||||
-- maxdoors - Sets the max amount of doors one can own.
|
||||
GM.Config.maxdoors = 20
|
||||
-- maxdrugs - Sets max drugs.
|
||||
GM.Config.maxdrugs = 2
|
||||
-- maxfoods - Sets the max food cartons per Microwave owner.
|
||||
GM.Config.maxfoods = 2
|
||||
-- maxfooditems - Sets the max amount of food items a player can buy from the F4 menu.
|
||||
GM.Config.maxfooditems = 20
|
||||
-- maxlawboards - The maximum number of law boards the mayor can place.
|
||||
GM.Config.maxlawboards = 2
|
||||
-- maxletters - Sets max letters.
|
||||
GM.Config.maxletters = 10
|
||||
-- maxlotterycost - Maximum payment the mayor can set to join a lottery.
|
||||
GM.Config.maxlotterycost = 250
|
||||
-- maxvehicles - Sets how many vehicles one can buy.
|
||||
GM.Config.maxvehicles = 5
|
||||
-- microwavefoodcost - Sets the sale price of Microwave Food.
|
||||
GM.Config.microwavefoodcost = 30
|
||||
-- gunlabguncost - Sets the initial price of a gun from a gunlab. Note that the
|
||||
-- gunlab owner can change this price.
|
||||
GM.Config.gunlabguncost = 200
|
||||
-- druglabdrugcost - Sets the initial price of drugs from a drugs lab. Note that
|
||||
-- the drugs lab owner can change this price.
|
||||
GM.Config.druglabdrugcost = 100
|
||||
-- minlotterycost - Minimum payment the mayor can set to join a lottery.
|
||||
GM.Config.minlotterycost = 30
|
||||
-- Money packets will get removed if they don't get picked up after a while. Set to 0 to disable.
|
||||
GM.Config.moneyRemoveTime = 600
|
||||
-- mprintamount - Value of the money printed by the money printer.
|
||||
GM.Config.mprintamount = 250
|
||||
-- normalsalary - Sets the starting salary for newly joined players.
|
||||
GM.Config.normalsalary = 45
|
||||
-- npckillpay - Sets the money given for each NPC kill.
|
||||
GM.Config.npckillpay = 10
|
||||
-- paydelay - Sets how long it takes before people get salary.
|
||||
GM.Config.paydelay = 160
|
||||
-- pocketitems - Sets the amount of objects the pocket can carry.
|
||||
GM.Config.pocketitems = 10
|
||||
-- pricecap - The maximum price of items (using /price).
|
||||
GM.Config.pricecap = 500
|
||||
-- pricemin - The minimum price of items (using /price).
|
||||
GM.Config.pricemin = 50
|
||||
-- propcost - How much prop spawning should cost (prop paying must be enabled for this to have an effect).
|
||||
GM.Config.propcost = 10
|
||||
-- quakechance - Chance of an earthquake happening.
|
||||
GM.Config.quakechance = 4000
|
||||
-- respawntime - Minimum amount of seconds a player has to wait before respawning.
|
||||
GM.Config.respawntime = 1
|
||||
-- changejobtime - Minimum amount of seconds a player has to wait before changing job.
|
||||
GM.Config.changejobtime = 10
|
||||
-- runspeed - Sets the max running speed.
|
||||
GM.Config.runspeed = 240
|
||||
-- runspeed - Sets the max running speed for CP teams.
|
||||
GM.Config.runspeedcp = 255
|
||||
-- searchtime - Number of seconds for which a search warrant is valid.
|
||||
GM.Config.searchtime = 30
|
||||
-- ShipmentSpamTime - Antispam time between spawning shipments.
|
||||
GM.Config.ShipmentSpamTime = 3
|
||||
-- shipmenttime - The number of seconds it takes for a shipment to spawn.
|
||||
GM.Config.shipmentspawntime = 10
|
||||
-- startinghealth - the health when you spawn.
|
||||
GM.Config.startinghealth = 100
|
||||
-- startingmoney - your wallet when you join for the first time.
|
||||
GM.Config.startingmoney = 20000
|
||||
-- stunstickdamage - amount of damage the stunstick will do to entities.
|
||||
-- When between 0 and 1, the damage is relative, where 1 takes the entire health of the entity.
|
||||
-- When above 1, the damage is absolute
|
||||
GM.Config.stunstickdamage = 1000
|
||||
-- vehiclecost - Sets the cost of a vehicle (To own it).
|
||||
GM.Config.vehiclecost = 40
|
||||
-- wallettaxmax - Maximum percentage of tax to be paid.
|
||||
GM.Config.wallettaxmax = 5
|
||||
-- wallettaxmin - Minimum percentage of tax to be paid.
|
||||
GM.Config.wallettaxmin = 1
|
||||
-- wallettaxtime - Time in seconds between taxing players. Requires server restart.
|
||||
GM.Config.wallettaxtime = 600
|
||||
-- wantedtime - Number of seconds for which a player is wanted for.
|
||||
GM.Config.wantedtime = 120
|
||||
-- walkspeed - Sets the max walking speed.
|
||||
GM.Config.walkspeed = 160
|
||||
-- falldamagedamper - The damper on realistic fall damage. Default is 15. Decrease this for more damage.
|
||||
GM.Config.falldamagedamper = 15
|
||||
-- falldamageamount - The base damage taken from falling for static fall damage. Default is 10.
|
||||
GM.Config.falldamageamount = 10
|
||||
-- printeroverheatchance - The likelyhood of a printer overheating. The higher this number, the less likely (minimum 3, default 22).
|
||||
GM.Config.printeroverheatchance = 22
|
||||
-- printerreward - Reward for destroying a money printer.
|
||||
GM.Config.printerreward = 950
|
||||
|
||||
--[[---------------------------------------------------------------------------
|
||||
Chat distance settings
|
||||
Distance is in source units (similar to inches)
|
||||
---------------------------------------------------------------------------]]
|
||||
GM.Config.talkDistance = 250
|
||||
GM.Config.whisperDistance = 90
|
||||
GM.Config.yellDistance = 550
|
||||
GM.Config.meDistance = 250
|
||||
GM.Config.voiceDistance = 550
|
||||
|
||||
--[[---------------------------------------------------------------------------
|
||||
Other settings
|
||||
---------------------------------------------------------------------------]]
|
||||
|
||||
-- The classname of money packets. Use this to create your own money entity!
|
||||
-- Note: the money packet must support the "Setamount" method (or the amount DTVar).
|
||||
GM.Config.MoneyClass = "spawned_money"
|
||||
-- In case you do wish to keep the default money, but change the model, this option is the way to go:
|
||||
GM.Config.moneyModel = "models/props/cs_assault/money.mdl"
|
||||
-- You can set your own, custom sound to be played for all players whenever a lockdown is initiated.
|
||||
-- Note: Remember to include the folder where the sound file is located.
|
||||
GM.Config.lockdownsound = "npc/overwatch/cityvoice/f_confirmcivilstatus_1_spkr.wav"
|
||||
|
||||
-- The skin DarkRP uses. Set to "default" to use the GMod default derma theme.
|
||||
GM.Config.DarkRPSkin = "DarkRP"
|
||||
GM.Config.currency = "$"
|
||||
GM.Config.currencyThousandSeparator = ","
|
||||
GM.Config.chatCommandPrefix = "/"
|
||||
GM.Config.F1MenuHelpPage = "https://darkrp.miraheze.org/wiki/Main_Page"
|
||||
GM.Config.F1MenuHelpPageTitle = "DarkRP Wiki"
|
||||
|
||||
-- The sound that plays when you get a DarkRP notification
|
||||
GM.Config.notificationSound = "buttons/lightswitch2.wav"
|
||||
|
||||
-- Put Steam ID's and ranks in this list, and the players will have that rank when they join.
|
||||
GM.Config.DefaultPlayerGroups = {
|
||||
["STEAM_0:0:00000000"] = "superadmin",
|
||||
["STEAM_0:0:11111111"] = "admin",
|
||||
}
|
||||
|
||||
-- Custom modules in this addon that are disabled.
|
||||
GM.Config.DisabledCustomModules = {
|
||||
["hudreplacement"] = false,
|
||||
["extraf4tab"] = false,
|
||||
}
|
||||
|
||||
-- The list of weapons that players are not allowed to drop. Items set to true are not allowed to be dropped.
|
||||
GM.Config.DisallowDrop = {
|
||||
["arrest_stick"] = true,
|
||||
["door_ram"] = true,
|
||||
["gmod_camera"] = true,
|
||||
["gmod_tool"] = true,
|
||||
["keys"] = true,
|
||||
["lockpick"] = true,
|
||||
["med_kit"] = true,
|
||||
["pocket"] = true,
|
||||
["stunstick"] = true,
|
||||
["unarrest_stick"] = true,
|
||||
["weapon_keypadchecker"] = true,
|
||||
["weapon_physcannon"] = true,
|
||||
["weapon_physgun"] = true,
|
||||
["weaponchecker"] = true,
|
||||
}
|
||||
|
||||
-- The list of weapons people spawn with.
|
||||
GM.Config.DefaultWeapons = {
|
||||
"keys",
|
||||
"weapon_physcannon",
|
||||
"gmod_camera",
|
||||
"gmod_tool",
|
||||
"itemstore_pickup",
|
||||
"weapon_physgun",
|
||||
}
|
||||
|
||||
-- Override categories.
|
||||
-- NOTE: categories are to be set in the "category" field of the custom jobs/shipments/entities/ammo/pistols/vehicles.
|
||||
-- Use this only to override the categories of _default_ things.
|
||||
-- This will NOT work for your own custom stuff.
|
||||
-- Make sure the category is created in the darkrp_customthings/categories.lua, otherwise it won't work!
|
||||
GM.Config.CategoryOverride = {
|
||||
-- jobs = {
|
||||
-- ["Citizen"] = "Citizens",
|
||||
-- ["Hobo"] = "Citizens",
|
||||
-- ["Gun Dealer"] = "Citizens",
|
||||
-- ["Medic"] = "Citizens",
|
||||
-- ["Civil Protection"] = "Civil Protection",
|
||||
-- ["Gangster"] = "Gangsters",
|
||||
-- ["Mob boss"] = "Gangsters",
|
||||
-- ["Civil Protection Chief"] = "Civil Protection",
|
||||
-- ["Mayor"] = "Civil Protection",
|
||||
-- },
|
||||
-- entities = {
|
||||
-- ["Drug lab"] = "Other",
|
||||
-- ["Money printer"] = "Other",
|
||||
-- ["Gun lab"] = "Other",
|
||||
|
||||
-- },
|
||||
-- shipments = {
|
||||
-- ["AK47"] = "Rifles",
|
||||
-- ["MP5"] = "Rifles",
|
||||
-- ["M4"] = "Rifles",
|
||||
-- ["Mac 10"] = "Other",
|
||||
-- ["Pump shotgun"] = "Shotguns",
|
||||
-- ["Sniper rifle"] = "Snipers",
|
||||
|
||||
-- },
|
||||
-- weapons = {
|
||||
-- ["Desert eagle"] = "Pistols",
|
||||
-- ["Fiveseven"] = "Pistols",
|
||||
-- ["Glock"] = "Pistols",
|
||||
-- ["P228"] = "Pistols",
|
||||
-- },
|
||||
-- vehicles = {}, -- There are no default vehicles.
|
||||
-- ammo = {
|
||||
-- ["Pistol ammo"] = "Other",
|
||||
-- ["Shotgun ammo"] = "Other",
|
||||
-- ["Rifle ammo"] = "Other",
|
||||
-- },
|
||||
}
|
||||
|
||||
-- The list of weapons admins spawn with, in addition to the default weapons, a job's weapons and GM.Config.AdminsCopWeapons.
|
||||
GM.Config.AdminWeapons = {
|
||||
"weapon_keypadchecker",
|
||||
}
|
||||
|
||||
-- These are the default laws, they're unchangeable in-game.
|
||||
GM.Config.DefaultLaws = {
|
||||
"Нелья пиздиться без причины.",
|
||||
"Нельзя грабить воровать.",
|
||||
"Маники и накрота запрещены.",
|
||||
}
|
||||
|
||||
GM.Config.PocketBlacklist = {
|
||||
["fadmin_jail"] = true,
|
||||
["meteor"] = true,
|
||||
["door"] = true,
|
||||
["func_"] = true,
|
||||
["player"] = true,
|
||||
["beam"] = true,
|
||||
["worldspawn"] = true,
|
||||
["env_"] = true,
|
||||
["path_"] = true,
|
||||
["prop_physics"] = true,
|
||||
["money_printer"] = true,
|
||||
["gunlab"] = true,
|
||||
["prop_dynamic"] = true,
|
||||
["prop_vehicle_prisoner_pod"] = true,
|
||||
["keypad_wire"] = true,
|
||||
["gmod_button"] = true,
|
||||
["gmod_rtcameraprop"] = true,
|
||||
["gmod_cameraprop"] = true,
|
||||
["gmod_dynamite"] = true,
|
||||
["gmod_thruster"] = true,
|
||||
["gmod_light"] = true,
|
||||
["gmod_lamp"] = true,
|
||||
["gmod_emitter"] = true,
|
||||
}
|
||||
|
||||
-- These weapons are classed as 'legal' in the weapon checker and are not stripped when confiscating weapons.
|
||||
-- This setting is used IN ADDITION to GM.Config.weaponCheckerHideDefault and GM.Config.weaponCheckerHideNoLicense.
|
||||
-- You should use the former if you want to class the default weapons (GM.Config.DefaultWeapons and, if admin, GM.Config.AdminWeapons) and a player's job weapons as legal.
|
||||
-- The latter takes GM.NoLicense weapons as legal (see licenseweapons.lua).
|
||||
-- The format of this config is similar to GM.Config.DisallowDrop.
|
||||
GM.Config.noStripWeapons = {
|
||||
|
||||
}
|
||||
|
||||
-- The entities listed here will not be removed when a player changes their job.
|
||||
-- This only applies when removeclassitems is set to true.
|
||||
-- Note: entities will only be removed when the player changes to a job that is not allowed to have the entity.
|
||||
GM.Config.preventClassItemRemoval = {
|
||||
["gunlab"] = false,
|
||||
["microwave"] = false,
|
||||
["spawned_shipment"] = false,
|
||||
}
|
||||
|
||||
-- Properties set to true are allowed to be used. Values set to false or are missing from this list are blocked.
|
||||
GM.Config.allowedProperties = {
|
||||
remover = true,
|
||||
ignite = false,
|
||||
extinguish = true,
|
||||
keepupright = true,
|
||||
gravity = true,
|
||||
collision = true,
|
||||
skin = true,
|
||||
bodygroups = true,
|
||||
}
|
||||
|
||||
--[[---------------------------------------------------------------------------
|
||||
F4 menu
|
||||
---------------------------------------------------------------------------]]
|
||||
-- hide the items that you can't buy and the jobs you can't get (instead of graying them out).
|
||||
-- this option hides items when you don't have enough money, when the maximum is reached for a job or any other reason.
|
||||
GM.Config.hideNonBuyable = false
|
||||
|
||||
-- Hide only the items that you have the wrong job for (or for which the customCheck says no).
|
||||
-- When you set this option to true and hideNonBuyable to false, you WILL see e.g. items that are too expensive for you to buy.
|
||||
-- but you won't see gundealer shipments when you have the citizen job.
|
||||
GM.Config.hideTeamUnbuyable = true
|
||||
|
||||
--[[---------------------------------------------------------------------------
|
||||
AFK module
|
||||
---------------------------------------------------------------------------]]
|
||||
-- The time of inactivity before being demoted.
|
||||
GM.Config.afkdemotetime = 600
|
||||
-- Prevent people from spamming AFK.
|
||||
GM.Config.AFKDelay = 300
|
||||
|
||||
--[[---------------------------------------------------------------------------
|
||||
Hitmenu module
|
||||
---------------------------------------------------------------------------]]
|
||||
-- The minimum price for a hit.
|
||||
GM.Config.minHitPrice = 200
|
||||
-- The maximum price for a hit.
|
||||
GM.Config.maxHitPrice = 50000
|
||||
-- The minimum distance between a hitman and his customer when they make the deal.
|
||||
GM.Config.minHitDistance = 150
|
||||
-- The text that tells the player he can press use on the hitman to request a hit.
|
||||
GM.Config.hudText = "I am a hitman.\nPress E on me to request a hit!"
|
||||
-- The text above a hitman when he's got a hit.
|
||||
GM.Config.hitmanText = "Hit\naccepted!"
|
||||
-- The cooldown time for a hit target (so they aren't spam killed).
|
||||
GM.Config.hitTargetCooldown = 120
|
||||
-- How long a customer has to wait to be able to buy another hit (from the moment the hit is accepted).
|
||||
GM.Config.hitCustomerCooldown = 240
|
||||
|
||||
--[[---------------------------------------------------------------------------
|
||||
Hungermod module
|
||||
---------------------------------------------------------------------------]]
|
||||
-- hungerspeed <Amount> - Set the rate at which players will become hungry (2 is the default).
|
||||
GM.Config.hungerspeed = 2
|
||||
-- starverate <Amount> - How much health that is taken away every second the player is starving (3 is the default).
|
||||
GM.Config.starverate = 3
|
||||
270
gamemodes/darkrp/gamemode/config/jobrelated.lua
Normal file
270
gamemodes/darkrp/gamemode/config/jobrelated.lua
Normal file
@@ -0,0 +1,270 @@
|
||||
-- People often copy jobs. When they do, the GM table does not exist anymore.
|
||||
-- This line makes the job code work both inside and outside of gamemode files.
|
||||
-- You should not copy this line into your code.
|
||||
local GAMEMODE = GAMEMODE or GM
|
||||
--[[--------------------------------------------------------
|
||||
Default teams. Please do not edit this file. Please use the darkrpmod addon instead.
|
||||
--------------------------------------------------------]]
|
||||
TEAM_CITIZEN = DarkRP.createJob("Гражданин", {
|
||||
color = Color(20, 150, 20, 255),
|
||||
model = {
|
||||
"models/Humans/Group02/Player/Tale_01.mdl",
|
||||
"models/Humans/Group02/Player/Tale_03.mdl",
|
||||
"models/Humans/Group02/Player/Tale_04.mdl",
|
||||
"models/Humans/Group02/Player/Tale_05.mdl",
|
||||
"models/Humans/Group02/Player/Tale_06.mdl",
|
||||
"models/Humans/Group02/Player/Tale_07.mdl",
|
||||
"models/Humans/Group02/Player/Tale_08.mdl",
|
||||
"models/Humans/Group02/Player/Tale_09.mdl",
|
||||
|
||||
"models/Humans/Group02/Player/Temale_01.mdl",
|
||||
"models/Humans/Group02/Player/Temale_02.mdl",
|
||||
"models/Humans/Group02/Player/Temale_07.mdl"
|
||||
},
|
||||
description = [[Обычный пясун йобнуца.]],
|
||||
weapons = {},
|
||||
command = "citizen",
|
||||
max = 0,
|
||||
salary = GAMEMODE.Config.normalsalary,
|
||||
admin = 0,
|
||||
vote = false,
|
||||
hasLicense = false,
|
||||
candemote = false,
|
||||
category = "Гражданские",
|
||||
})
|
||||
|
||||
TEAM_POLICE = DarkRP.createJob("Мент", {
|
||||
color = Color(25, 25, 170, 255),
|
||||
model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
|
||||
description = [[Мусорок йобнуца.]],
|
||||
weapons = {"arrest_stick", "unarrest_stick", "qwb_glock18", "stunstick", "door_ram", "weaponchecker"},
|
||||
command = "cp",
|
||||
max = 4,
|
||||
salary = GAMEMODE.Config.normalsalary * 1.45,
|
||||
admin = 0,
|
||||
vote = true,
|
||||
hasLicense = true,
|
||||
ammo = {
|
||||
["pistol"] = 60,
|
||||
},
|
||||
category = "Менты",
|
||||
})
|
||||
|
||||
TEAM_GANG = DarkRP.createJob("Гангстер", {
|
||||
color = Color(75, 75, 75, 255),
|
||||
model = {
|
||||
"models/player/Group03/Female_01.mdl",
|
||||
"models/player/Group03/Female_02.mdl",
|
||||
"models/player/Group03/Female_03.mdl",
|
||||
"models/player/Group03/Female_04.mdl",
|
||||
"models/player/Group03/Female_06.mdl",
|
||||
"models/player/group03/male_01.mdl",
|
||||
"models/player/Group03/Male_02.mdl",
|
||||
"models/player/Group03/male_03.mdl",
|
||||
"models/player/Group03/Male_04.mdl",
|
||||
"models/player/Group03/Male_05.mdl",
|
||||
"models/player/Group03/Male_06.mdl",
|
||||
"models/player/Group03/Male_07.mdl",
|
||||
"models/player/Group03/Male_08.mdl",
|
||||
"models/player/Group03/Male_09.mdl"},
|
||||
description = [[Бандит чтобы с ментами пиздиться.]],
|
||||
weapons = {},
|
||||
command = "gangster",
|
||||
max = 3,
|
||||
salary = GAMEMODE.Config.normalsalary,
|
||||
admin = 0,
|
||||
vote = false,
|
||||
hasLicense = false,
|
||||
category = "Бандиты",
|
||||
})
|
||||
|
||||
TEAM_MOB = DarkRP.createJob("Пахан", {
|
||||
color = Color(25, 25, 25, 255),
|
||||
model = "models/player/gman_high.mdl",
|
||||
description = [[Заправляет гангстерами.]],
|
||||
weapons = {"lockpick", "unarrest_stick"},
|
||||
command = "mobboss",
|
||||
max = 1,
|
||||
salary = GAMEMODE.Config.normalsalary * 1.34,
|
||||
admin = 0,
|
||||
vote = false,
|
||||
hasLicense = false,
|
||||
category = "Бандиты",
|
||||
})
|
||||
|
||||
TEAM_GUN = DarkRP.createJob("Продавец оружия", {
|
||||
color = Color(255, 140, 0, 255),
|
||||
model = "models/player/monk.mdl",
|
||||
description = [[Продает пушки доброградовские.]],
|
||||
weapons = {},
|
||||
command = "gundealer",
|
||||
max = 2,
|
||||
salary = GAMEMODE.Config.normalsalary,
|
||||
admin = 0,
|
||||
vote = false,
|
||||
hasLicense = false,
|
||||
category = "Гражданские",
|
||||
})
|
||||
|
||||
TEAM_MEDIC = DarkRP.createJob("Медик", {
|
||||
color = Color(47, 79, 79, 255),
|
||||
model = "models/player/kleiner.mdl",
|
||||
description = [[Юзлесс профа тут но похуй пусть будет.]],
|
||||
weapons = {"med_kit"},
|
||||
command = "medic",
|
||||
max = 3,
|
||||
salary = GAMEMODE.Config.normalsalary,
|
||||
admin = 0,
|
||||
vote = false,
|
||||
hasLicense = false,
|
||||
medic = true,
|
||||
category = "Гражданские",
|
||||
})
|
||||
|
||||
TEAM_CHIEF = DarkRP.createJob("Глава ментов", {
|
||||
color = Color(20, 20, 255, 255),
|
||||
model = "models/player/combine_soldier_prisonguard.mdl",
|
||||
description = [[Управляешь мусорками.]],
|
||||
weapons = {"arrest_stick", "unarrest_stick", "qwb_ump45", "stunstick", "door_ram", "weaponchecker"},
|
||||
command = "chief",
|
||||
max = 1,
|
||||
salary = GAMEMODE.Config.normalsalary * 1.67,
|
||||
admin = 0,
|
||||
vote = false,
|
||||
hasLicense = true,
|
||||
chief = true,
|
||||
NeedToChangeFrom = TEAM_POLICE,
|
||||
ammo = {
|
||||
["pistol"] = 60,
|
||||
},
|
||||
category = "Менты",
|
||||
})
|
||||
|
||||
TEAM_MAYOR = DarkRP.createJob("Мэр", {
|
||||
color = Color(150, 20, 20, 255),
|
||||
model = "models/player/breen.mdl",
|
||||
description = [[Создаешь законы и прочую хуйню делаешь]],
|
||||
weapons = {},
|
||||
command = "mayor",
|
||||
max = 1,
|
||||
salary = GAMEMODE.Config.normalsalary * 1.89,
|
||||
admin = 0,
|
||||
vote = true,
|
||||
hasLicense = false,
|
||||
mayor = true,
|
||||
category = "Менты",
|
||||
})
|
||||
|
||||
TEAM_HOBO = DarkRP.createJob("Бомж", {
|
||||
color = Color(80, 45, 0, 255),
|
||||
model = "models/player/corpse1.mdl",
|
||||
description = [[Вам сасет сенвай хотябы ладно]],
|
||||
weapons = {"weapon_bugbait"},
|
||||
command = "hobo",
|
||||
max = 5,
|
||||
salary = 0,
|
||||
admin = 0,
|
||||
vote = false,
|
||||
hasLicense = false,
|
||||
candemote = false,
|
||||
hobo = true,
|
||||
category = "Гражданские",
|
||||
})
|
||||
|
||||
if not DarkRP.disabledDefaults["modules"]["hungermod"] then
|
||||
TEAM_COOK = DarkRP.createJob("Cook", {
|
||||
color = Color(238, 99, 99, 255),
|
||||
model = "models/player/mossman.mdl",
|
||||
description = [[As a cook, it is your responsibility to feed the other members of your city.
|
||||
You can spawn a microwave and sell the food you make:
|
||||
/buymicrowave]],
|
||||
weapons = {},
|
||||
command = "cook",
|
||||
max = 2,
|
||||
salary = 45,
|
||||
admin = 0,
|
||||
vote = false,
|
||||
hasLicense = false,
|
||||
cook = true
|
||||
})
|
||||
end
|
||||
|
||||
-- Compatibility for when default teams are disabled
|
||||
TEAM_CITIZEN = TEAM_CITIZEN or -1
|
||||
TEAM_POLICE = TEAM_POLICE or -1
|
||||
TEAM_GANG = TEAM_GANG or -1
|
||||
TEAM_MOB = TEAM_MOB or -1
|
||||
TEAM_GUN = TEAM_GUN or -1
|
||||
TEAM_MEDIC = TEAM_MEDIC or -1
|
||||
TEAM_CHIEF = TEAM_CHIEF or -1
|
||||
TEAM_MAYOR = TEAM_MAYOR or -1
|
||||
TEAM_HOBO = TEAM_HOBO or -1
|
||||
TEAM_COOK = TEAM_COOK or -1
|
||||
|
||||
-- Door groups
|
||||
AddDoorGroup("Менты", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
|
||||
AddDoorGroup("Оружейник", TEAM_GUN)
|
||||
|
||||
|
||||
-- Agendas
|
||||
DarkRP.createAgenda("Гангстерская повестка", TEAM_MOB, {TEAM_GANG})
|
||||
DarkRP.createAgenda("Ментовская повестка", {TEAM_MAYOR, TEAM_CHIEF}, {TEAM_POLICE})
|
||||
|
||||
-- Group chats
|
||||
DarkRP.createGroupChat(function(ply) return ply:isCP() end)
|
||||
DarkRP.createGroupChat(TEAM_MOB, TEAM_GANG)
|
||||
DarkRP.createGroupChat(function(listener, ply) return not ply or ply:Team() == listener:Team() end)
|
||||
|
||||
-- Initial team when first spawning
|
||||
GAMEMODE.DefaultTeam = TEAM_CITIZEN
|
||||
|
||||
-- Teams that belong to Менты
|
||||
GAMEMODE.CivilProtection = {
|
||||
[TEAM_POLICE] = true,
|
||||
[TEAM_CHIEF] = true,
|
||||
[TEAM_MAYOR] = true,
|
||||
}
|
||||
|
||||
-- Hitman team
|
||||
-- DarkRP.addHitmanTeam(TEAM_MOB)
|
||||
|
||||
-- Demote groups
|
||||
DarkRP.createDemoteGroup("Менты", {TEAM_POLICE, TEAM_CHIEF})
|
||||
DarkRP.createDemoteGroup("Гангстеры", {TEAM_GANG, TEAM_MOB})
|
||||
|
||||
-- Default categories
|
||||
DarkRP.createCategory{
|
||||
name = "Гражданские",
|
||||
categorises = "jobs",
|
||||
startExpanded = true,
|
||||
color = Color(0, 107, 0, 255),
|
||||
canSee = fp{fn.Id, true},
|
||||
sortOrder = 100,
|
||||
}
|
||||
|
||||
DarkRP.createCategory{
|
||||
name = "Менты",
|
||||
categorises = "jobs",
|
||||
startExpanded = true,
|
||||
color = Color(25, 25, 170, 255),
|
||||
canSee = fp{fn.Id, true},
|
||||
sortOrder = 101,
|
||||
}
|
||||
|
||||
DarkRP.createCategory{
|
||||
name = "Бандиты",
|
||||
categorises = "jobs",
|
||||
startExpanded = true,
|
||||
color = Color(75, 75, 75, 255),
|
||||
canSee = fp{fn.Id, true},
|
||||
sortOrder = 101,
|
||||
}
|
||||
|
||||
DarkRP.createCategory{
|
||||
name = "Другие",
|
||||
categorises = "jobs",
|
||||
startExpanded = true,
|
||||
color = Color(0, 107, 0, 255),
|
||||
canSee = fp{fn.Id, true},
|
||||
sortOrder = 255,
|
||||
}
|
||||
5
gamemodes/darkrp/gamemode/config/licenseweapons.lua
Normal file
5
gamemodes/darkrp/gamemode/config/licenseweapons.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
GM.NoLicense["weapon_physcannon"] = true
|
||||
GM.NoLicense["weapon_physgun"] = true
|
||||
GM.NoLicense["weapon_bugbait"] = true
|
||||
GM.NoLicense["gmod_tool"] = true
|
||||
GM.NoLicense["gmod_camera"] = true
|
||||
Reference in New Issue
Block a user