SRCDS Steam group


DarkRP F4 Weapons Tab
#1
Hi,

I made a DarkRP server about a week ago. I added custom shipments and weapons using FA:S Weapons. I tried to make the weapons only be able to have the gun dealer see them, but every job can buy weapons if they go into the F4 menu. The shipments can only be seen as gun dealer though. Also I have the drugs mod, and tried to set it so only the drug dealer job can see them, but everyone can see them as well.


Here is the code to my shipments:

DarkRP.createShipment("AK 47", {
model = "models/weapons/w_rif_ak47.mdl",
entity = "fas2_ak47",
price = 420,
amount = 1,
seperate = true,
pricesep = 420,
noship = true,
allowed = {TEAM_GUN}
})

DarkRP.createShipment("AK 47 Shipment", {
model = "models/weapons/w_rif_ak47.mdl",
entity = "fas2_ak47",
price = 4200,
amount = 10,
seperate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUN}
})

DarkRP.createShipment("Glock", {
model = "models/weapons/w_pist_glock18.mdl",
entity = "fas2_glock20",
price = 200,
amount = 1,
seperate = true,
pricesep = 200,
noship = true,
allowed = {TEAM_GUN}
})

DarkRP.createShipment("Glock Shipment", {
model = "models/weapons/w_pist_glock18.mdl",
entity = "fas2_glock20",
price = 2000,
amount = 10,
seperate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUN}
})

DarkRP.createShipment("Raging Bull", {
model = "models/weapons/w_357.mdl",
entity = "fas2_ragingbull",
price = 230,
amount = 1,
seperate = true,
pricesep = 230,
noship = true,
allowed = {TEAM_GUN}
})

DarkRP.createShipment("Raging Bull Shipment", {
model = "models/weapons/w_357.mdl",
entity = "fas2_ragingbull",
price = 2300,
amount = 10,
seperate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUN}
})

DarkRP.createShipment("Alcohol", {
model = "models/drug_mod/alcohol_can.mdl",
entity = "durgz_alcohol",
price = 300,
amount = 1,
seperate = true,
pricesep = 300,
noship = true,
allowed = {TEAM_DRUG}
})

AddCustomShipment("Aspirin", {
model = "models/jaanus/aspbtl.mdl",
entity = "durgz_aspirin",
price = 1500,
amount = 10,
seperate = true,
pricesep = 300,
noship = false,
allowed = {TEAM_DRUG}
})
AddCustomShipment("Cocaine", {
model = "models/cocn.mdl",
entity = "durgz_cocaine",
price = 2500,
amount = 10,
seperate = true,
pricesep = 500,
noship = false,
allowed = {TEAM_DRUG}
})
AddCustomShipment("Heroine", {
model = "models/katharsmodels/syringe_out/syringe_out.mdl",
entity = "durgz_heroine",
price = 250,
amount = 10,
seperate = true,
pricesep = 50,
noship = false,
allowed = {TEAM_DRUG}
})
AddCustomShipment("LSD", {
model = "models/smile/smile.mdl",
entity = "durgz_lsd",
price = 750,
amount = 10,
seperate = true,
pricesep = 150,
noship = false,
allowed = {TEAM_DRUG}
})
DarkRP.createShipment("Mushroom", {
model = "models/ipha/mushroom_small.mdl",
entity = "durgz_mushroom",
price = 1000,
amount = 10,
seperate = true,
pricesep = 200,
noship = false,
allowed = {TEAM_DRUG}
})
AddCustomShipment("PCP", {
model = "models/marioragdoll/super mario galaxy/star/star.mdl",
entity = "durgz_pcp",
price = 1025,
amount = 10,
seperate = true,
pricesep = 205,
noship = false,
allowed = {TEAM_DRUG}
})

DarkRP.createShipment("Weed", {
model = "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl",
entity = "durgz_weed",
price = 150,
amount = 1,
seperate = true,
pricesep = 150,
noship = true,
allowed = {TEAM_DRUG}
})


And this is my jobs code:

TEAM_CITIZEN = DarkRP.createJob("Citizen", {
color = Color(20, 150, 20, 255),
model = {
"models/player/Group01/Female_01.mdl",
"models/player/Group01/Female_02.mdl",
"models/player/Group01/Female_03.mdl",
"models/player/Group01/Female_04.mdl",
"models/player/Group01/Female_06.mdl",
"models/player/group01/male_01.mdl",
"models/player/Group01/Male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/Male_04.mdl",
"models/player/Group01/Male_05.mdl",
"models/player/Group01/Male_06.mdl",
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"
},
description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
weapons = {},
command = "citizen",
max = 0,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})

TEAM_POLICE = DarkRP.createJob("Civil Protection", {
color = Color(25, 25, 170, 255),
model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
description = [[The protector of every citizen that lives in the city.
You have the power to arrest criminals and protect innocents.
Hit a player with your arrest baton to put them in jail.
Bash a player with a stunstick and they may learn to obey the law.
The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
The Battering Ram can also unfreeze frozen props (if enabled).
Type /wanted <name> to alert the public to the presence of a criminal.]],
weapons = {"arrest_stick", "unarrest_stick", "fas2_glock20", "stunstick", "door_ram", "weaponchecker"},
command = "cp",
max = 4,
salary = 50,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})

TEAM_GANG = DarkRP.createJob("Gangster", {
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 = [[The lowest person of crime.
A gangster generally works for the Mobboss who runs the crime family.
The Mob boss sets your agenda and you follow it or you might be punished.]],
weapons = {},
command = "gangster",
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})

TEAM_MOB = DarkRP.createJob("Mob boss", {
color = Color(25, 25, 25, 255),
model = "models/player/gman_high.mdl",
description = [[The Mob boss is the boss of the criminals in the city.
With his power he coordinates the gangsters and forms an efficient crime organization.
He has the ability to break into houses by using a lockpick.
The Mob boss posesses the ability to unarrest you.]],
weapons = {"lockpick", "unarrest_stick", "brax_crowbar", "weapon_gphone"},
command = "mobboss",
max = 1,
salary = 55,
admin = 0,
vote = false,
hasLicense = false
})

TEAM_MEDIC = DarkRP.createJob("Medic", {
color = Color(47, 79, 79, 255),
model = "models/player/kleiner.mdl",
description = [[With your medical knowledge you work to restore players to full health.
Without a medic, people cannot be healed.
Left click with the Medical Kit to heal other players.
Right click with the Medical Kit to heal yourself.]],
weapons = {"med_kit", "weapon_gphone"},
command = "medic",
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
medic = true
})

TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
color = Color(20, 20, 255, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[The Chief is the leader of the Civil Protection unit.
Coordinate the police force to enforce law in the city.
Hit a player with arrest baton to put them in jail.
Bash a player with a stunstick and they may learn to obey the law.
The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
Type /wanted <name> to alert the public to the presence of a criminal.
Type /jailpos to set the Jail Position]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker", "weapon_gphone"},
command = "chief",
max = 1,
salary = 65,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
NeedToChangeFrom = TEAM_POLICE,
ammo = {
["pistol"] = 60,
}
})

TEAM_MAYOR = DarkRP.createJob("Mayor", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
description = [[The Mayor of the city creates laws to govern the city.
If you are the mayor you may create and accept warrants.
Type /wanted <name> to warrant a player.
Type /jailpos to set the Jail Position.
Type /lockdown initiate a lockdown of the city.
Everyone must be inside during a lockdown.
The cops patrol the area.
/unlockdown to end a lockdown]],
weapons = {"weapon_gphone"},
command = "mayor",
max = 1,
salary = 85,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "The mayor has been killed and is therefor demoted.")
else
DarkRP.notifyAll(0, 4, "The mayor has died and is therefor demoted.")
end
end
})

TEAM_HOBO = DarkRP.createJob("Hobo", {
color = Color(80, 45, 0, 255),
model = "models/player/corpse1.mdl",
description = [[The lowest member of society. Everybody laughs at you.
You have no home.
Beg for your food and money
Sing for everyone who passes to get money
Make your own wooden home somewhere in a corner or outside someone else's door]],
weapons = {"weapon_bugbait"},
command = "hobo",
max = 5,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
hobo = true
})

TEAM_GUN = DarkRP.createJob("Gun Dealer", {
color = Color(255, 140, 0, 255),
model = "models/player/monk.mdl",
description = [[A Gun Dealer is the only person who can sell guns to other people.
Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
weapons = {},
command = "gundealer",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})

Also my config:

/*
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 = true
-- 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
-- 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 = true
-- 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
-- deathpov - Enable/disable whether people see their death in first person view
GM.Config.deathpov = false
-- decalcleaner - Enable/Disable clearing ever players 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 = true
-- 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 = false
-- 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
-- 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
-- showname - 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 = false
-- npcarrest - Enable/disable arresting npc's
GM.Config.npcarrest = true
-- ooc - Whether or not OOC tags are enabled.
GM.Config.ooc = true
-- propertytax - Enable/disable property tax.
GM.Config.propertytax = true
-- proppaying - Whether or not players should pay for spawning props.
GM.Config.proppaying = false
-- propspawning - Enable/disable props spawning for non-admins.
GM.Config.propspawning = true
-- removeclassitems - Enable/disable shipments/microwaves/etc. removal when someone changes team.
GM.Config.removeclassitems = 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 = true
-- restrictdrop - Enable/disable restricting the weapons players can drop. Setting this to true disallows weapons from shipments from being dropped
GM.Config.restrictdrop = 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
-- 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 - Can the default money printer 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 = true
-- shouldResetLaws - Enable/Disable resetting the laws back to the default law set when the mayor changes
GM.Config.shouldResetLaws = 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 = 3
-- 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 = 1
-- 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 = 3
-- adminweapons - Who can spawn weapons: 0: admins only, 1: supadmins only, 2: no one
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. (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
-- entremovedelay - how long to wait before removing a bought entity after disconnect.
GM.Config.entremovedelay = 0
-- jailtimer - Sets the jailtimer. (in seconds)
GM.Config.jailtimer = 120
-- 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
-- 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
-- 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 = 300
-- 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 = 60
-- ShipmentSpawnTime - Antispam time between spawning shipments.
GM.Config.ShipmentSpamTime = 3
-- shipmenttime - The number of seconds it takes for a shipment to spawn.
GM.Config.shipmentspawntime = 5
-- startinghealth - the health when you spawn.
GM.Config.startinghealth = 100
-- startingmoney - your wallet when you join for the first time.
GM.Config.startingmoney = 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 = 32

/*---------------------------------------------------------------------------
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"

-- The skin DarkRP uses. Set to "default" to use the GMod default derma theme
GM.Config.DarkRPSkin = "DarkRP"
GM.Config.currency = "$"
GM.Config.chatCommandPrefix = "/"
GM.Config.F1MenuHelpPage = "http://wiki.darkrp.com/index.php/Main_Page"
GM.Config.F1MenuHelpPageTitle = "Wiki page"

-- 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",
}

-- 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",
"pocket",
"weapon_physgun"
}

-- The list of weapons admins spawn with, in addition to the default weapons, a job's weapons and GM.Config.AdminCopWeapons
GM.Config.AdminWeapons = {
"weapon_keypadchecker"
}

-- These are the default laws, they're unchangeable in-game.
GM.Config.DefaultLaws = {
"Do not attack other citizens except in self-defence.",
"Do not steal or break in to peoples homes.",
"Money printers/drugs are illegal."
}

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,
}

-- 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,
}

-- 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 = true

-- 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 = 400
-- 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

-- Empty disabled modules set
GM.Config.DisabledCustomModules = {}


Any help would be appreciated

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)