Here is my Jobs.lua:
Code: Select all
/*---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.
Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the job to this file and edit it.
The default jobs can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add jobs under the following line:
---------------------------------------------------------------------------*/
TEAM_POLICE = AddExtraTeam("Police Officer", {
color = Color(0, 255, 255, 255),
model = {"models/humans/nypd1940/male_01.mdl",
"models/humans/nypd1940/male_02.mdl",
"models/humans/nypd1940/male_03.mdl",
"models/humans/nypd1940/male_04.mdl",
"models/humans/nypd1940/male_05.mdl",
"models/humans/nypd1940/male_06.mdl",
"models/humans/nypd1940/male_07.mdl",
"models/humans/nypd1940/male_08.mdl",
"models/humans/nypd1940/male_09.mdl"
},
description = [[You are part of the Police Force, You are responsible for protecting The City.]],
weapons = {"m9k_m92beretta", "m9k_mp5", "arrest_stick", "unarrest_stick", "stunstick"},
command = "police",
max = 4,
salary = 45,
admin = 0,
vote = true,
haslicense = true,
})
TEAM_CHIEF = AddExtraTeam("Police Chief", {
color = Color(25, 25, 170, 255),
model = {"models/player/german/german_01.mdl"},
description = [[The Chief is the leader of the Police 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", "m9k_coltpython_cop", "stunstick", "door_ram", "weaponchecker"},
command = "chief",
max = 1,
salary = 80
admin = 0,
vote = false,
hasLicense = true,
chief = true,
NeedToChangeFrom = {TEAM_POLICE},
})
TEAM_MAYOR = AddExtraTeam("Mayor", {
color = Color(150, 20, 20, 255),
model = {"models/player/hitler/hitler.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 = {},
command = "mayor",
max = 1,
salary = 100
admin = 0,
vote = true,
hasLicense = false,
mayor = true
})
TEAM_DJ = AddExtraTeam("DJ", {
color = Color(80, 45, 0, 255),
model = {"models/player/elvis_fix/t_leet.mdl"},
description = [[Sing / Play Music for Money. You can only have a pistol.
you spawn with it.
and you may only use it in self defense.]],
weapons = {"m9k_colt1911"},
command = "dj",
max = 1,
salary = 5,
vote = false,
hasLicense = false,
candemote = false,
customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:GetUserGroup() == "dmod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "headadmin" or ply:GetUserGroup() == "donmod" or ply:GetUserGroup() == "donadmin" end,
CustomCheckFailMsg = "This job is donator only!"
})
TEAM_TERRORIST = AddExtraTeam("OSAMA", {
color = Color(0, 0, 0,),
model = {"models/jessev92/player/misc/osamabl1.mdl"},
description = [[As Osama Bin Laden you are the most feared Terrorist of all time.
You lead your vicious crew thru raids and annihilate anything in your path.
Terrorists can only raid when you are present, otherwise terrorist is
an RDM class.]]
weapons = {"spiderman_swep", "m9k_ak47", "unarrest_stick", "lockpick", "bangbanggun"},
command = "osama",
max = 1,
salary = 300
admin = 0,
vote = false,
hasLicense = true,
customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:GetUserGroup() == "dmod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "headadmin" or ply:GetUserGroup() == "donmod" or ply:GetUserGroup() == "donadmin" end,
CustomCheckFailMsg = "This job is donator only!"
})
TEAM_TERRORIST = AddExtraTeam("Terrorist", {
color = Color(153, 204, 0, 255),
model = "models/jessev92/player/misc/osamabl1.mdl",
description = [[You are A Terrorist, You blow up public places to cause as much death as possible.]],
command = "terrorist",
max = 3,
salary = 0,
admin = 0,
vote = false,
haslicense = true,
customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:GetUserGroup() == "donmod" or ply:GetUserGroup() == "dmod" or ply:GetUserGroup() == "donadmin" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup () == "headadmin" end,
CustomCheckFailMsg = "This job is donator only!",
})
TEAM_ASSASSIN = AddExtraTeam("Hitman", {
color = Color(0, 0, 0,),
model = {"models/hitman_47.mdl"},
description = [[Kill people for money, simple. Only kill people if you have a hit on them and it must be discreet, no one can see you.]]
weapons = {"gdcw_m82a1", "gdcw_silverballer_lsx"},
command = "hitman",
max = 1,
salary = 50
admin = 0,
vote = true,
hasLicense = true,
})
TEAM_SWAT = AddExtraTeam("SWAT", {
color = Color(0, 0, 255, 255),
model = "models/player/specnaz/slow_specnaz.mdl",
description = [[ You are the Most Elite of the Police Force. You are used for extreme situations.]],
weapons = {"m9k_acr", "m9k_l85", "m9k_glock", "m9k_mp7", "arrest_stick", "unarrest_stick", "stunstick"},
command = "swat",
max = 3,
salary = 145,
admin = 0,
vote = true,
haslicense = true,
})
TEAM_ASSASSIN = AddExtraTeam("Corvo", {
color = Color(0, 0, 0, 0),
model = {"models/player/corvo.mdl"},
description = [[The most feared assassin in the game, no one fucks with you. you can raid, take hits, rdm every 5 minutes, you pick. Corvo does whatever he wants whenever he wants.]]
weapons = {"spiderman_swep", "m9k_tec9", "gdcw_silverballer_lsx", "unarrest_stick", "gdcw_m82a1", "bangbanggun", "lockpick"},
command = "corvo",
max = 1,
salary = 250
admin = 0,
vote = false,
hasLicense = true,
hitman = true
customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:GetUserGroup() == "dmod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "headadmin" or ply:GetUserGroup() == "donmod" or ply:GetUserGroup() == "donadmin" end,
CustomCheckFailMsg = "This job is donator only!"
})
TEAM_TROLL = AddExtraTeam("Troll", {
color = Color(0, 0, 0,),
model = {"models/player/blacktubby/blacktubby_player.mdl"},
description = [[Your sole purpose is to piss people off without breaking rules.]]
weapons = {},
command = "troll",
max = 1,
salary = 150
admin = 0,
vote = false,
hasLicense = true,
customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:GetUserGroup() == "dmod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "headadmin" or ply:GetUserGroup() == "donmod" or ply:GetUserGroup() == "donadmin" end,
CustomCheckFailMsg = "This job is donator only!"
})
TEAM_BRUTEENFORCER = AddExtraTeam("Brute Enforcer", {
color = Color(0, 122, 255, 255),
model = "models/player/umbrella_ct/umbrella_ct.mdl",
description = [[You are A Cop who has betrayed the Feds and is on a Rampage. You may RDM Once every 5 minutes.]],
command = "bruteenforcer",
weapons = {"m9k_tec9"},
max = 1,
salary = 0,
admin = 0,
vote = false,
haslicense = true,
CustomCheckFailMsg = "This job is donator only!",
customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:GetUserGroup() == "donmod" or ply:GetUserGroup() == "dmod" or ply:GetUserGroup() == "donadmin" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup () == "headadmin" end
})
TEAM_SWATCHIEF = AddExtraTeam("SWAT Chief", {
color = Color(0, 0, 153, 255),
model = "models/player/01ar_combine_soldier01.mdl",
description = [[You are in charge of the SWAT Team, You are responsible for protecting The City and leading the SWAT team.]],
weapons = {"m9k_deagle", "m9k_mp5", "m9k_famas", "m9k_l85", "m9k_auga3", "arrest_stick", "unarrest_stick", "stunstick"},
command = "swatchief",
max = 1,
salary = 200,
admin = 0,
vote = true,
haslicense = true,
NeedToChangeFrom = {TEAM_SWAT},
chief = true
customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:GetUserGroup() == "dmod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "headadmin" or ply:GetUserGroup() == "donmod" or ply:GetUserGroup() == "donadmin" end,
CustomCheckFailMsg = "This job is donator only!"
})
TEAM_KOBALT = AddExtraTeam("Kobalt", {
color = Color(255, 51, 5, 255),
model = "models/player/daedric.mdl",
description = [[This job is for Donator only! Leader of the Daedric Army]],
weapons = {"m9k_milkormgl", "m9k_rpg7", "m9k_m249lmg", "gdcw_m200i"},
command = "kobalt",
max = 1,
salary = 100,
admin = 0,
vote = false,
haslicense = true,
candemote = false,
mayorCanSetSalary = false,
customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:GetUserGroup() == "dmod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "headadmin" or ply:GetUserGroup() == "donmod" or ply:GetUserGroup() == "donadmin" end,
CustomCheckFailMsg = "This job is donator only!"
})
TEAM_THIEF = AddExtraTeam("Thief", {
color = Color(75, 75, 75, 255),
model = {"models/player/moon_knight/slow_v2.mdl"},
description = [[]],
weapons = {"lockpick", "weapon_fists"},
command = "thief",
max = 4,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
mayorCanSetSalary = false
})
TEAM_HOBOLORD = AddExtraTeam("Hobo Lord", {
color = Color(80, 45, 0, 255),
model = "models/player/hunter.mdl",
description = [[]],
weapons = {"weapon_fists", "m9k_knife"},
command = "hobolord",
max = 1,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
hobo = true,
mayorCanSetSalary = false
})
TEAM_EXPERIENCEDRAIDER = AddExtraTeam("Experienced Raider", {
color = Color(18, 55, 211, 59),
model = "models/player/corvo.mdl",
description = [[]],
weapons = {"fastpick","weapon_fists"},
command = "experiencedraider",
max = 2,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:GetUserGroup() == "dmod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "headadmin" or ply:GetUserGroup() == "donmod" or ply:GetUserGroup() == "donadmin" end,
CustomCheckFailMsg = "This job is donator only!"
})
TEAM_NINJA = AddExtraTeam("Ninja", {
color = Color(204, 204, 255, 255),
model = "models/player/lordvipes/rerc_vector/vector_cvp.mdl",
description = [[You are a Swift Ninja, You raid bases and use your agility to get in and out quietly.]],
weapons = {"m9k_knife", "climb_swep2"},
command = "ninja",
max = 3,
salary = 65,
admin = 0,
vote = false,
haslicense = true,
customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:GetUserGroup() == "dmod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "headadmin" or ply:GetUserGroup() == "donmod" or ply:GetUserGroup() == "donadmin" end,
CustomCheckFailMsg = "This job is donator only!"
})
if not DarkRP.disabledDefaults["modules"]["hungermod"] then
TEAM_COOK = AddExtraTeam("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
/*---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------*/
GAMEMODE.DefaultTeam = TEAM_CITIZEN
/*---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------*/
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
/*---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam(TEAM_ASSASSIN)
Code: Select all
/*---------------------------------------------------------------------------
DarkRP custom shipments and guns
---------------------------------------------------------------------------
This file contains your custom shipments and guns.
This file should also contain shipments and guns from DarkRP that you edited.
Note: If you want to edit a default DarkRP shipment, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the shipment to this file and edit it.
The default shipments and guns can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields
Add shipments and guns under the following line:
---------------------------------------------------------------------------*/
DarkRP.createShipment("AK-47", {
model = "models/weapons/w_ak47_m9k.mdl", --
entity = "m9k_ak47", -- the entity that comes out of the shipment
price = 20000, -- the price of one shipment
amount = 10, -- how many of the item go in one purchased shipment
separate = true, -- whether the item is sold separately (usually used for guns)
pricesep = 2000, -- the price of a separately sold item
noship = false, -- whether this item has a shipment
allowed = {TEAM_GUN}, -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
customCheck = function(ply) return ply:Frags() < 10 end, -- OPTIONAL, extra conditions before people can purchase the shipment or separate item
weight = 15, -- OPTIONAL, the weight of the shipment. The default is the weight of the shipment
spareammo = 10, -- OPTIONAL, Add ammo to the default amount of ammo for every weapon
clip1 = 30, -- OPTIONAL, The amount of bullets in the primary clip by default
clip2 = 30, -- OPTIONAL, The amount of bullets in the secondary clip by default
buttonColor = Color(255, 255, 255, 255), -- Optional: The color of the button in the F4 menu,
label = "Deadly Assault Rifle", -- Optional: the text on the button in the F4 menu
})
DarkRP.createShipment("MP5", {
model = "models/weapons/w_hk_mp5.mdl", --
entity = "m9k_mp5", -- the entity that comes out of the shipment
price = 10000, -- the price of one shipment
amount = 10, -- how many of the item go in one purchased shipment
separate = true, -- whether the item is sold separately (usually used for guns)
pricesep = 1000, -- the price of a separately sold item
noship = false, -- whether this item has a shipment
allowed = {TEAM_GUN}, -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
customCheck = function(ply) return ply:Frags() < 10 end, -- OPTIONAL, extra conditions before people can purchase the shipment or separate item
weight = 15, -- OPTIONAL, the weight of the shipment. The default is the weight of the shipment
spareammo = 10, -- OPTIONAL, Add ammo to the default amount of ammo for every weapon
clip1 = 30, -- OPTIONAL, The amount of bullets in the primary clip by default
clip2 = 30, -- OPTIONAL, The amount of bullets in the secondary clip by default
buttonColor = Color(255, 255, 255, 255), -- Optional: The color of the button in the F4 menu,
label = "Deadly SMG", -- Optional: the text on the button in the F4 menu
})
DarkRP.createShipment("Acr", {
model = "models/weapons/w_masada_acr.mdl", --
entity = "m9k_acr", -- the entity that comes out of the shipment
price = 20000, -- the price of one shipment
amount = 10, -- how many of the item go in one purchased shipment
separate = true, -- whether the item is sold separately (usually used for guns)
pricesep = 2000, -- the price of a separately sold item
noship = false, -- whether this item has a shipment
allowed = {TEAM_GUN}, -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
customCheck = function(ply) return ply:Frags() < 10 end, -- OPTIONAL, extra conditions before people can purchase the shipment or separate item
weight = 15, -- OPTIONAL, the weight of the shipment. The default is the weight of the shipment
spareammo = 10, -- OPTIONAL, Add ammo to the default amount of ammo for every weapon
clip1 = 30, -- OPTIONAL, The amount of bullets in the primary clip by default
clip2 = 30, -- OPTIONAL, The amount of bullets in the secondary clip by default
buttonColor = Color(255, 255, 255, 255), -- Optional: The color of the button in the F4 menu,
label = "Deadly Assault Rifle", -- Optional: the text on the button in the F4 menu
})
DarkRP.createShipment("Winchester", {
model = "models/weapons/w_winchester_1873.mdl", --
entity = "m9k_winchester73", -- the entity that comes out of the shipment
price = 10000, -- the price of one shipment
amount = 10, -- how many of the item go in one purchased shipment
separate = true, -- whether the item is sold separately (usually used for guns)
pricesep = 1000, -- the price of a separately sold item
noship = false, -- whether this item has a shipment
allowed = {TEAM_GUN}, -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
customCheck = function(ply) return ply:Frags() < 10 end, -- OPTIONAL, extra conditions before people can purchase the shipment or separate item
weight = 15, -- OPTIONAL, the weight of the shipment. The default is the weight of the shipment
spareammo = 10, -- OPTIONAL, Add ammo to the default amount of ammo for every weapon
clip1 = 30, -- OPTIONAL, The amount of bullets in the primary clip by default
clip2 = 30, -- OPTIONAL, The amount of bullets in the secondary clip by default
buttonColor = Color(255, 255, 255, 255), -- Optional: The color of the button in the F4 menu,
label = "Deadly Lever Action", -- Optional: the text on the button in the F4 menu
})
DarkRP.createShipment("AMD65", {
model = "models/weapons/w_amd_65.mdl", --
entity = "m9k_amd65", -- the entity that comes out of the shipment
price = 10000, -- the price of one shipment
amount = 10, -- how many of the item go in one purchased shipment
separate = true, -- whether the item is sold separately (usually used for guns)
pricesep = 1000, -- the price of a separately sold item
noship = false, -- whether this item has a shipment
allowed = {TEAM_GUN}, -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
customCheck = function(ply) return ply:Frags() < 10 end, -- OPTIONAL, extra conditions before people can purchase the shipment or separate item
weight = 15, -- OPTIONAL, the weight of the shipment. The default is the weight of the shipment
spareammo = 10, -- OPTIONAL, Add ammo to the default amount of ammo for every weapon
clip1 = 30, -- OPTIONAL, The amount of bullets in the primary clip by default
clip2 = 30, -- OPTIONAL, The amount of bullets in the secondary clip by default
buttonColor = Color(255, 255, 255, 255), -- Optional: The color of the button in the F4 menu,
label = "Deadly Assault Rifle", -- Optional: the text on the button in the F4 menu
})
DarkRP.createShipment("MP5SD", {
model = "models/weapons/w_hk_mp5sd.mdl", --
entity = "m9k_mp5sd", -- the entity that comes out of the shipment
price = 10000, -- the price of one shipment
amount = 10, -- how many of the item go in one purchased shipment
separate = true, -- whether the item is sold separately (usually used for guns)
pricesep = 1000, -- the price of a separately sold item
noship = false, -- whether this item has a shipment
allowed = {TEAM_GUN}, -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
customCheck = function(ply) return ply:Frags() < 10 end, -- OPTIONAL, extra conditions before people can purchase the shipment or separate item
weight = 15, -- OPTIONAL, the weight of the shipment. The default is the weight of the shipment
spareammo = 10, -- OPTIONAL, Add ammo to the default amount of ammo for every weapon
clip1 = 30, -- OPTIONAL, The amount of bullets in the primary clip by default
clip2 = 30, -- OPTIONAL, The amount of bullets in the secondary clip by default
buttonColor = Color(255, 255, 255, 255), -- Optional: The color of the button in the F4 menu,
label = "Deadly SMG", -- Optional: the text on the button in the F4 menu
})
DarkRP.createShipment("Model500, {
model = "models/weapons/w_sw_model_500.mdl", --
entity = "m9k_model500", -- the entity that comes out of the shipment
price = 10000, -- the price of one shipment
amount = 10, -- how many of the item go in one purchased shipment
separate = true, -- whether the item is sold separately (usually used for guns)
pricesep = 1000, -- the price of a separately sold item
noship = false, -- whether this item has a shipment
allowed = {TEAM_GUN}, -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
customCheck = function(ply) return ply:Frags() < 10 end, -- OPTIONAL, extra conditions before people can purchase the shipment or separate item
weight = 15, -- OPTIONAL, the weight of the shipment. The default is the weight of the shipment
spareammo = 10, -- OPTIONAL, Add ammo to the default amount of ammo for every weapon
clip1 = 30, -- OPTIONAL, The amount of bullets in the primary clip by default
clip2 = 30, -- OPTIONAL, The amount of bullets in the secondary clip by default
buttonColor = Color(255, 255, 255, 255), -- Optional: The color of the button in the F4 menu,
label = "Deadly Model500", -- Optional: the text on the button in the F4 menu
})
DarkRP.createShipment("AugA3", {
model = "models/weapons/w_auga3.mdl", --
entity = "m9k_auga3", -- the entity that comes out of the shipment
price = 10000, -- the price of one shipment
amount = 10, -- how many of the item go in one purchased shipment
separate = true, -- whether the item is sold separately (usually used for guns)
pricesep = 1000, -- the price of a separately sold item
noship = false, -- whether this item has a shipment
allowed = {TEAM_GUN}, -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
customCheck = function(ply) return ply:Frags() < 10 end, -- OPTIONAL, extra conditions before people can purchase the shipment or separate item
weight = 15, -- OPTIONAL, the weight of the shipment. The default is the weight of the shipment
spareammo = 10, -- OPTIONAL, Add ammo to the default amount of ammo for every weapon
clip1 = 30, -- OPTIONAL, The amount of bullets in the primary clip by default
clip2 = 30, -- OPTIONAL, The amount of bullets in the secondary clip by default
buttonColor = Color(255, 255, 255, 255), -- Optional: The color of the button in the F4 menu,
label = "Deadly SMG", -- Optional: the text on the button in the F4 menu
})
DarkRP.createShipment("RagingBull", {
model = "models/weapons/w_taurus_raging_bull.mdl", --
entity = "m9k_ragingbull", -- the entity that comes out of the shipment
price = 10000, -- the price of one shipment
amount = 10, -- how many of the item go in one purchased shipment
separate = true, -- whether the item is sold separately (usually used for guns)
pricesep = 1000, -- the price of a separately sold item
noship = false, -- whether this item has a shipment
allowed = {TEAM_GUN}, -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
customCheck = function(ply) return ply:Frags() < 10 end, -- OPTIONAL, extra conditions before people can purchase the shipment or separate item
weight = 15, -- OPTIONAL, the weight of the shipment. The default is the weight of the shipment
spareammo = 10, -- OPTIONAL, Add ammo to the default amount of ammo for every weapon
clip1 = 30, -- OPTIONAL, The amount of bullets in the primary clip by default
clip2 = 30, -- OPTIONAL, The amount of bullets in the secondary clip by default
buttonColor = Color(255, 255, 255, 255), -- Optional: The color of the button in the F4 menu,
label = "Deadly Revolver", -- Optional: the text on the button in the F4 menu
})
DarkRP.createShipment("G36C, {
model = "models/weapons/w_hk_g3.mdl", --
entity = "m9k_g36", -- the entity that comes out of the shipment
price = 10000, -- the price of one shipment
amount = 10, -- how many of the item go in one purchased shipment
separate = true, -- whether the item is sold separately (usually used for guns)
pricesep = 1000, -- the price of a separately sold item
noship = false, -- whether this item has a shipment
allowed = {TEAM_GUN}, -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
customCheck = function(ply) return ply:Frags() < 10 end, -- OPTIONAL, extra conditions before people can purchase the shipment or separate item
weight = 15, -- OPTIONAL, the weight of the shipment. The default is the weight of the shipment
spareammo = 10, -- OPTIONAL, Add ammo to the default amount of ammo for every weapon
clip1 = 30, -- OPTIONAL, The amount of bullets in the primary clip by default
clip2 = 30, -- OPTIONAL, The amount of bullets in the secondary clip by default
buttonColor = Color(255, 255, 255, 255), -- Optional: The color of the button in the F4 menu,
label = "Deadly SMG", -- Optional: the text on the button in the F4 menu
})
DarkRP.createShipment("Deagle", {
model = "models/weapons/w_tcom_deagle.mdl", --
entity = "m9k_deagle", -- the entity that comes out of the shipment
price = 10000, -- the price of one shipment
amount = 10, -- how many of the item go in one purchased shipment
separate = true, -- whether the item is sold separately (usually used for guns)
pricesep = 1000, -- the price of a separately sold item
noship = false, -- whether this item has a shipment
allowed = {TEAM_GUN}, -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
customCheck = function(ply) return ply:Frags() < 10 end, -- OPTIONAL, extra conditions before people can purchase the shipment or separate item
weight = 15, -- OPTIONAL, the weight of the shipment. The default is the weight of the shipment
spareammo = 10, -- OPTIONAL, Add ammo to the default amount of ammo for every weapon
clip1 = 30, -- OPTIONAL, The amount of bullets in the primary clip by default
clip2 = 30, -- OPTIONAL, The amount of bullets in the secondary clip by default
buttonColor = Color(255, 255, 255, 255), -- Optional: The color of the button in the F4 menu,
label = "Deadly 50 Cal", -- Optional: the text on the button in the F4 menu
})
DarkRP.createShipment("M4A1, {
model = "models/weapons/w_m4a1_iron.mdl", --
entity = "m9k_m4a1", -- the entity that comes out of the shipment
price = 10000, -- the price of one shipment
amount = 10, -- how many of the item go in one purchased shipment
separate = true, -- whether the item is sold separately (usually used for guns)
pricesep = 1000, -- the price of a separately sold item
noship = false, -- whether this item has a shipment
allowed = {TEAM_GUN}, -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
customCheck = function(ply) return ply:Frags() < 10 end, -- OPTIONAL, extra conditions before people can purchase the shipment or separate item
weight = 15, -- OPTIONAL, the weight of the shipment. The default is the weight of the shipment
spareammo = 10, -- OPTIONAL, Add ammo to the default amount of ammo for every weapon
clip1 = 30, -- OPTIONAL, The amount of bullets in the primary clip by default
clip2 = 30, -- OPTIONAL, The amount of bullets in the secondary clip by default
buttonColor = Color(255, 255, 255, 255), -- Optional: The color of the button in the F4 menu,
label = "Deadly Assault Rifle", -- Optional: the text on the button in the F4 menu
})
DarkRP.createShipment("Luger", {
model = "models/weapons/w_luger_p08.mdl", --
entity = "m9k_luger", -- the entity that comes out of the shipment
price = 10000, -- the price of one shipment
amount = 10, -- how many of the item go in one purchased shipment
separate = true, -- whether the item is sold separately (usually used for guns)
pricesep = 1000, -- the price of a separately sold item
noship = false, -- whether this item has a shipment
allowed = {TEAM_GUN}, -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
customCheck = function(ply) return ply:Frags() < 10 end, -- OPTIONAL, extra conditions before people can purchase the shipment or separate item
weight = 15, -- OPTIONAL, the weight of the shipment. The default is the weight of the shipment
spareammo = 10, -- OPTIONAL, Add ammo to the default amount of ammo for every weapon
clip1 = 30, -- OPTIONAL, The amount of bullets in the primary clip by default
clip2 = 30, -- OPTIONAL, The amount of bullets in the secondary clip by default
buttonColor = Color(255, 255, 255, 255), -- Optional: The color of the button in the F4 menu,
label = "Pistol", -- Optional: the text on the button in the F4 menu
})
DarkRP.createEntity("Drug lab", {
ent = "drug_lab",
model = "models/props_lab/crematorcase.mdl",
price = 400,
max = 3,
cmd = "buydruglab",
allowed = {TEAM_GANG, TEAM_MOB}
})
DarkRP.createEntity("Money printer", {
ent = "money_printer",
model = "models/props_c17/consolebox01a.mdl",
price = 1000,
max = 2,
cmd = "buymoneyprinter"
})
DarkRP.createEntity("Gun lab", {
ent = "gunlab",
model = "models/props_c17/TrapPropeller_Engine.mdl",
price = 500,
max = 1,
cmd = "buygunlab",
allowed = TEAM_GUN
})
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
Any help / advice is appreciated. i have had 0 success with my DarkRP server and im pretty close to giving up. the only thing i've done properly is ULX