[QUOTE=Ghost_Sailor;43408185]Anywhere you see [code]"models\items\"[/code]
Make it [code]"models/items/"[/code][/QUOTE]
you put \s not s\
[editline]3rd January 2014[/editline]
oh now, i got this error popping up [code][ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/ammo.lua:60: 'end' expected (to close 'function' at line 59) near '}'
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/ammo.lua:0
[/code]
heres my ammo.lua script now
[code]DarkRP.createAmmoType("5.45x39MM", {
name = "5.45x39MM",
model = "models/items/battery.mdl",
price = 80,
amountGiven = 60,
customCheck = function(ply) return ply:IsAdmin()
})
DarkRP.createAmmoType("7.62x39MM", {
name = "7.62x39MM",
model = "models/items/car_battery01.mdl",
price = 90,
amountGiven = 60,
customCheck = function(ply) return ply:IsAdmin()
})
DarkRP.createAmmoType(".50 AE", {
name = ".50 AE",
model = "models/props_lab/box01a.mdl",
price = 35,
amountGiven = 16,
customCheck = function(ply) return ply:IsAdmin()
})
DarkRP.createAmmoType("5.56x45MM", {
name = "5.56x45MM",
model = "models/Items/BoxMRounds.mdl",
price = 75,
amountGiven = 60,
customCheck = function(ply) return ply:IsAdmin()
})
DarkRP.createAmmoType("7.62x51MM", {
name = "7.62x51MM",
model = "models/items/ammocrate_rockets.mdl",
price = 80,
amountGiven = 60,
customCheck = function(ply) return ply:IsAdmin()
})
DarkRP.createAmmoType("10x25MM", {
name = "10x25MM",
model = "models/items/item_item_crate.mdl",
price = 40,
amountGiven = 30,
customCheck = function(ply) return ply:IsAdmin()
})
DarkRP.createAmmoType("23x75MMR", {
name = "23x75MMR",
model = "models/items/flare.mdl",
price = 50,
amountGiven = 16,
customCheck = function(ply) return ply:IsAdmin()
})
DarkRP.createAmmoType("12 Gauge", {
name = "12 Gauge",
model = "models/items/boxbuckshot.mdl",
price = 45,
amountGiven = 16,
customCheck = function(ply) return ply:IsAdmin()
})
DarkRP.createAmmoType("40MM HE", {
name = "40MM HE",
model = "models/items/ar2_grenade.mdl",
price = 90,
amountGiven = 16,
customCheck = function(ply) return ply:IsAdmin()
})
DarkRP.createAmmoType(".50 BMG", {
name = ".50 BMG",
model = "models/items/ammocrate_rockets.mdl",
price = 85,
amountGiven = 25,
customCheck = function(ply) return ply:IsAdmin()
})
DarkRP.createAmmoType(".45 ACP", {
name = ".45 ACP",
model = "models/items/boxflares.mdl",
price = 30,
amountGiven = 16,
customCheck = function(ply) return ply:IsAdmin()
})
DarkRP.createAmmoType(".380 ACP", {
name = ".380 ACP",
model = "models/items/combine_rifle_cartridge01.mdl",
price = 40,
amountGiven = 50,
customCheck = function(ply) return ply:IsAdmin()
})
DarkRP.createAmmoType("9x19MM", {
name = "9x19MM",
model = "models/items/boxsrounds.mdl",
price = 55,
amountGiven = 60,
customCheck = function(ply) return ply:IsAdmin()
})
DarkRP.createAmmoType("9x18MM", {
name = "9x18MM",
model = "models/items/ammocrate_ar2.mdl",
price = 45,
amountGiven = 60,
customCheck = function(ply) return ply:IsAdmin()
})
DarkRP.createAmmoType(".357 SIG", {
name = ".357 SIG",
model = "models/items/357ammobox.mdl",
price = 40,
amountGiven = 32,
customCheck = function(ply) return ply:IsAdmin()
})
DarkRP.createAmmoType(".454 Casull", {
name = ".454 Casull",
model = "models/items/combine_rifle_ammo01.mdl",
price = 40,
amountGiven = 16,
customCheck = function(ply) return ply:IsAdmin()
})
[/code]
[QUOTE=overki11;43408201]you put \s not s\
[editline]3rd January 2014[/editline]
oh now, i got this error popping up [code][ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/ammo.lua:60: 'end' expected (to close 'function' at line 59) near '}'
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/ammo.lua:0
[/code]
heres my ammo.lua script now
[code]
-- Snip --
[/code][/QUOTE]
Make all of the [code]function(ply) return ply:IsAdmin()[/code]
[code]function(ply) return ply:IsAdmin() end[/code]
(I said \s to say plural backslashes, and /s to say plural forward slashes. Sorry if that confused you)
[QUOTE=Ghost_Sailor;43408252]Make all of the [code]function(ply) return ply:IsAdmin()[/code]
[code]function(ply) return ply:IsAdmin() end[/code]
(I said \s to say plural backslashes, and /s to say plural forward slashes. Sorry if that confused you)[/QUOTE]
Listen. without you guys helping me, then i would never get anywhere with this script. If i do ever get a server, make sure you know, and give you a vip, testing out my other files now, brb if they have problems
Forgot to say, yea i got it fixed
[editline]3rd January 2014[/editline]
[QUOTE=Ghost_Sailor;43408252]Make all of the [code]function(ply) return ply:IsAdmin()[/code]
[code]function(ply) return ply:IsAdmin() end[/code]
(I said \s to say plural backslashes, and /s to say plural forward slashes. Sorry if that confused you)[/QUOTE]
Okay heres my new problem, doing the entities.lua now, heres the error that comes up
[code][ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/entities.lua:15: invalid escape sequence near '"models'
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/entities.lua:0
[/code]
and as usual heres my entities script
[code]DarkRP.createEntity("ACOG Sight", {
ent = "fas2_att_acog",
model = "models\props\cs_office\cardboard_box03.mdl",
price = 50,
max = 3,
cmd = "buyacog",
allowed = {TEAM_GUN}
})
DarkRP.createEntity("Elcan C79", {
ent = "fas2_att_c79",
model = "models\props\cs_office\cardboard_box03.mdl",
price = 50,
max = 3,
cmd = "buyc79",
allowed = {TEAM_GUN}
})
DarkRP.createEntity("Comp M4 Sight", {
ent = "fas2_att_compm4",
model = "models\props\cs_office\cardboard_box03.mdl",
price = 65,
max = 3,
cmd = "buycompm4",
allowed = {TEAM_GUN}
})
DarkRP.createEntity("EoTech Holographic Sight", {
ent = "fas2_att_eotech",
model = "models\props\cs_office\cardboard_box03.mdl",
price = 70,
max = 3,
cmd = "buyeotech",
allowed = {TEAM_GUN}
})
DarkRP.createEntity("ForeGrip", {
ent = "fas2_att_foregrip",
model = "models\props\cs_office\cardboard_box03.mdl",
price = 55,
max = 3,
cmd = "buyforgrip",
allowed = {TEAM_GUN}
})
DarkRP.createEntity("Bipod", {
ent = "fas2_att_harrisbipod",
model = "models\props\cs_office\cardboard_box03.mdl",
price = 45,
max = 3,
cmd = "buybipod",
allowed = {TEAM_GUN}
})
DarkRP.createEntity("Leupold MK4 Sight", {
ent = "fas2_att_harrisbipod",
model = "models\props\cs_office\cardboard_box03.mdl",
price = 80,
max = 3,
cmd = "buymk4",
allowed = {TEAM_GUN}
})
DarkRP.createEntity("M21 20 Round Magazine", {
ent = "fas2_att_m2120mag",
model = "models\props\cs_office\cardboard_box03.mdl",
price = 70,
max = 3,
cmd = "buym2120mag",
allowed = {TEAM_GUN}
})
DarkRP.createEntity("MP5K 30 Round Magazine", {
ent = "fas2_att_mp5k30mag",
model = "models\props\cs_office\cardboard_box03.mdl",
price = 75,
max = 3,
cmd = "buymp5k30mag",
allowed = {TEAM_GUN}
})
DarkRP.createEntity("PSO-1 Rifle Sight", {
ent = "fas2_att_pso1",
model = "models\props\cs_office\cardboard_box03.mdl",
price = 60,
max = 3,
cmd = "buypso1",
allowed = {TEAM_GUN}
})
DarkRP.createEntity("SG Rifle 30 Round Magazine", {
ent = "fas2_att_sg55x30mag",
model = "models\props\cs_office\cardboard_box03.mdl",
price = 75,
max = 3,
cmd = "buysg30mag",
allowed = {TEAM_GUN}
})
DarkRP.createEntity("SKS Rifle 20 Round Magazine", {
ent = "fas2_att_sks20mag",
model = "models\props\cs_office\cardboard_box03.mdl",
price = 70,
max = 3,
cmd = "buysks20mag",
allowed = {TEAM_GUN}
})
DarkRP.createEntity("SKS Rifle 30 Round Magazine", {
ent = "fas2_att_sks30mag",
model = "models\props\cs_office\cardboard_box03.mdl",
price = 80,
max = 3,
cmd = "buysks30mag",
allowed = {TEAM_GUN}
})
DarkRP.createEntity("Suppressor", {
ent = "fas2_att_suppressor",
model = "models\props\cs_office\cardboard_box03.mdl",
price = 100,
max = 3,
cmd = "buysuppressor",
allowed = {TEAM_GUN}
})
DarkRP.createEntity("Tritium Iron Sights", {
ent = "fas2_att_tritiumsights",
model = "models\props\cs_office\cardboard_box03.mdl",
price = 60,
max = 3,
cmd = "buytironsights",
allowed = {TEAM_GUN}
})
DarkRP.createEntity("Uzi Wooden Stock", {
ent = "fas2_att_uziwoodenstock",
model = "models\props\cs_office\cardboard_box03.mdl",
price = 50,
max = 3,
cmd = "buyuziwoodstock",
allowed = {TEAM_GUN}
})
DarkRP.createEntity("Medical Essentials Box", {
ent = "fas2_ammo_medical",
model = "models\items\healthkit.mdl",
price = 200,
max = 3,
cmd = "buymedbox",
allowed = {TEAM_MEDIC}
})
DarkRP.createEntity("Bandages", {
ent = "fas2_ammo_bandages",
model = "models\props_junk\cardboard_box004a.mdl",
price = 50,
max = 3,
cmd = "buybandages"
})
DarkRP.createEntity("QuikClots", {
ent = "fas2_ammo_quikclots",
model = "models\props_junk\cardboard_box004a.mdl",
price = 90,
max = 3,
cmd = "buybandages"
})
DarkRP.createEntity("Hemostats", {
ent = "fas2_ammo_hemostats",
model = "models\props_junk\cardboard_box004a.mdl",
price = 100,
max = 3,
cmd = "buybandages"
})
[/code]
Are you stupid? You had the same error two posts ago, was told how to fix it and you did. Now you are having the same error, and ask us to fix it again.
This is not the 'do it for me' section, people help you here in a hope you will learn instead of copying pasting but obviously you aren't learning but are just expecting us to do stuff for you, much like that spocksgirl that constantly posts here. You either scroll up and fix your damn error using logic or I heavily doubt anyone is going to help you here again
[QUOTE=arcaneex;43408563]Are you stupid? You had the same error two posts ago, was told how to fix it and you did. Now you are having the same error, and ask us to fix it again.
This is not the 'do it for me' section, people help you here in a hope you will learn instead of copying pasting but obviously you aren't learning but are just expecting us to do stuff for you, much like that spocksgirl that constantly posts here. You either scroll up and fix your damn error using logic or I heavily doubt anyone is going to help you here again[/QUOTE]
wow. your completely right. i should try to fix it before posting it here and asking you guys to do it for me. anywhere i can learn how to code lua better? im at the just starting stage i guess you could call it. ill try to fix my errors before crying to u guys to fix it
[QUOTE=overki11;43408676]wow. your completely right. i should try to fix it before posting it here and asking you guys to do it for me. anywhere i can learn how to code lua better? im at the just starting stage i guess you could call it. ill try to fix my errors before crying to u guys to fix it[/QUOTE]
[url]http://facepunch.com/showthread.php?t=1337945[/url]
Do you have anymore errors?
[QUOTE=code_gs;43408716][url]http://facepunch.com/showthread.php?t=1337945[/url]
Do you have anymore errors?[/QUOTE]
yup, here it is (my jobs file)
[code]
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:224: '}' expected (to close '{' at line 221) near 'description'
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0
[/code]
I looked back this time and saw that i had an error similar, and the fix was to change something, but i still am confused because i see nothing wrong.
heres the job.lua
[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.
Raid: Yes
Mug: No]],
weapons = {},
command = "citizen",
max = 0,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})
TEAM_POLICE = DarkRP.createJob("Police Officer", {
color = Color(25, 25, 170, 255),
model = {"models/player/nypd/cop_01.mdl", "models/player/nypd/cop_02.mdl", "models/player/nypd/cop_03.mdl", "models/player/nypd/cop_04.mdl", "models/player/nypd/cop_05.mdl", "models/player/nypd/cop_06.mdl", "models/player/nypd/cop_07.mdl", "models/player/nypd/cop_08.mdl", "models/player/nypd/cop_09.mdl",},
description = [[You are a Officer of the Law. You protect law-abiding Citizens.
Arrest anyone who breaks the law and alert your superiors about illegal operations,
and try to intervene if necessary. Do Not Abuse This Job.
Raid: With Other Cops
Mug: No]],
weapons = {"arrest_stick", "unarrest_stick", "fas2_glock20", "stunstick", "door_ram", "weaponchecker"},
command = "police",
max = 4,
salary = 80,
admin = 0,
vote = true,
hasLicense = true,
help = {
"Please don't abuse your job",
"When you arrest someone they are auto transported to jail.",
"They are auto let out of jail after some time",
"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
"Type /jailpos to set the jail position"
}
})
TEAM_GANG = DarkRP.createJob("Criminal", {
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 Criminal generally works for the leader of the Crime Family.
The Criminal Leader sets your agenda and you follow it or you might be punished.
Raid: Yes
Mug: Yes]],
weapons = {},
command = "criminal",
max = 3,
salary = 20,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_MOB = DarkRP.createJob("Criminal Leader", {
color = Color(25, 25, 25, 255),
model = "models/player/gman_high.mdl",
description = [[The Criminal Leader 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.
Raid: Yes
Mug: Yes]],
weapons = {"lockpick", "unarrest_stick"},
command = "criminall",
max = 1,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
help = {
"As the Criminal Leader, you decide what you want the other Gangsters to do.",
"You get an Unarrest Stick which you can use to break people out of jail.",
"/agenda <Message> Sets the Gangsters' agenda. Use // to go to the next line."
}
})
TEAM_GUN = DarkRP.createJob("Weapons Dealer", {
color = Color(255, 140, 0, 255),
model = "models/player/monk.mdl",
description = [[You are a Weapons Dealer. You sell weapons to people. You may
follow the law and get a Weapons License, or you may sell illegally.
Raid: Yes
Mug: No]],
weapons = {},
command = "gundealer",
max = 2,
salary = 40,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_MEDIC = DarkRP.createJob("Doctor", {
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 doctor, people cannot be healed.
Left click with the Medical Kit to heal other players.
Right click with the Medical Kit to heal yourself.
Raid: No, But Can Heal During One
Mug: No]],
weapons = {"med_kit", "fas2_ifak"},
command = "medic",
max = 1,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
medic = true
})
TEAM_CHIEF = DarkRP.createJob("Police Chief", {
color = Color(20, 20, 255, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[As a Police Chief, your job is to command the Police Force.
Your only superior is the President. You organize raids on Criminals, but you
must have valid evidence before initiating one. Do Not Abuse This Job.
Raid: With Other Cops
Mug: No]],
weapons = {"arrest_stick", "unarrest_stick", "fas2_ragingbull", "stunstick", "door_ram", "weaponchecker"},
command = "chief",
max = 1,
salary = 95,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
NeedToChangeFrom = TEAM_POLICE,
help = {
"Please don't abuse your job",
"When you arrest someone they are auto transported to jail.",
"They are auto let out of jail after some time",
"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
"Type /jailpos to set the jail position"
}
})
TEAM_MAYOR = DarkRP.createJob("President", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
description = [[The President creates laws to govern the city.
If you are the President you may create and accept warrants.
Type /wanted <name> to warrant a player.
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
Raid: No
Mug: No]],
weapons = {},
command = "mayor",
max = 1,
salary = 100,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
help = {
"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect.",
"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect.",
"Type /lockdown to initiate a lockdown",
"Type /unlockdown to end a lockdown",
"Type /placelaws to place a screen containing the laws.",
"Type /addlaw and /removelaw to edit the laws."
}
})
TEAM_HOBO = DarkRP.createJob("Hobo", {
color = Color(80, 45, 0, 255),
model = "models/jessev92/player/l4d/m9-hunter.mdl"
description = [[The lowest member of society. Everybody laughs at you.
You have no home.
Beg for your food and money
Make your own home somewhere in a corner or outsi
[QUOTE=overki11;43408767]yup, here it is (my jobs file)
[code]
--Snip--
[/code]
Im editing default jobs by disabling them in disabledefaults and pasting them here[/QUOTE]
In tables, every element but the last one needs a comma. You're missing a comma after [code]model = "models/jessev92/player/l4d/m9-hunter.mdl"[/code]
[QUOTE=Ghost_Sailor;43408854]In tables, every element but the last one needs a comma. You're missing a comma after [code]model = "models/jessev92/player/l4d/m9-hunter.mdl"[/code][/QUOTE]
wow, you lua people are like, brain magicians, but seriously, it must take alot of patience to fix lua errors
[editline]3rd January 2014[/editline]
I get this lua error that i cant even figure out, i dont know where to start.
[code][ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:265: table index is nil
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:265
2. include - [C]:-1
3. loadCustomDarkRPItems - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:112
4. v - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:120
5. Call - lua/includes/modules/hook.lua:82
6. unknown - lua/includes/modules/gamemode.lua:35
[/code]/*---------------------------------------------------------------------------
/*---------------------------------------------------------------------------
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:
<TODO: INSERT URL HERE>
For examples and explanation please visit this wiki page:
[url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url]
Add jobs under the following line:
---------------------------------------------------------------------------*/
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.
Raid: Yes
Mug: No]],
weapons = {},
command = "citizen",
max = 0,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})
TEAM_POLICE = DarkRP.createJob("Police Officer", {
color = Color(25, 25, 170, 255),
model = {"models/player/nypd/cop_01.mdl", "models/player/nypd/cop_02.mdl", "models/player/nypd/cop_03.mdl", "models/player/nypd/cop_04.mdl", "models/player/nypd/cop_05.mdl", "models/player/nypd/cop_06.mdl", "models/player/nypd/cop_07.mdl", "models/player/nypd/cop_08.mdl", "models/player/nypd/cop_09.mdl",},
description = [[You are a Officer of the Law. You protect law-abiding Citizens.
Arrest anyone who breaks the law and alert your superiors about illegal operations,
and try to intervene if necessary. Do Not Abuse This Job.
Raid: With Other Cops
Mug: No]],
weapons = {"arrest_stick", "unarrest_stick", "fas2_glock20", "stunstick", "door_ram", "weaponchecker"},
command = "police",
max = 4,
salary = 80,
admin = 0,
vote = true,
hasLicense = true,
help = {
"Please don't abuse your job",
"When you arrest someone they are auto transported to jail.",
"They are auto let out of jail after some time",
"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
"Type /jailpos to set the jail position"
}
})
TEAM_GANG = DarkRP.createJob("Criminal", {
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 Criminal generally works for the leader of the Crime Family.
The Criminal Leader sets your agenda and you follow it or you might be punished.
Raid: Yes
Mug: Yes]],
weapons = {},
command = "criminal",
max = 3,
salary = 20,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_MOB = DarkRP.createJob("Criminal Leader", {
color = Color(25, 25, 25, 255),
model = "models/player/gman_high.mdl",
description = [[The Criminal Leader 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.
Raid: Yes
Mug: Yes]],
weapons = {"lockpick", "unarrest_stick"},
command = "criminall",
max = 1,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
help = {
"As the Criminal Leader, you decide what you want the other Gangsters to do.",
"You get an Unarrest Stick which you can use to break people out of jail.",
"/agenda <Message> Sets the Gangsters' agenda. Use // to go to the next line."
}
})
TEAM_GUN = DarkRP.createJob("Weapons Dealer", {
color = Color(255, 140, 0, 255),
model = "models/player/monk.mdl",
description = [[You are a Weapons Dealer. You sell weapons to people. You may
follow the law and get a Weapons License, or you may sell illegally.
Raid: Yes
Mug: No]],
weapons = {},
command = "gundealer",
max = 2,
salary = 40,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_MEDIC = DarkRP.createJob("Doctor", {
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 doctor, people cannot be healed.
Left click with the Medical Kit to heal other players.
Right click with the Medical Kit to heal yourself.
Raid: No, But Can Heal During One
Mug: No]],
weapons = {"med_kit", "fas2_ifak"},
command = "medic",
max = 1,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
medic = true
})
TEAM_CHIEF = DarkRP.createJob("Police Chief", {
color = Color(20, 20, 255, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[As a Police Chief, your job is to command the Police Force.
Your only superior is the President. You organize raids on Criminals, but you
must have valid evidence before initiating one. Do Not Abuse This Job.
Raid: With Other Cops
Mug: No]],
weapons = {"arrest_stick", "unarrest_stick", "fas2_ragingbull", "stunstick", "door_ram", "weaponchecker"},
command = "chief",
max = 1,
salary = 95,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
NeedToChangeFrom = TEAM_POLICE,
help = {
"Please don't abuse your job",
"When you arrest someone they are auto transported to jail.",
"They are auto let out of jail after some time",
"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
"Type /jailpos to set the jail position"
}
})
TEAM_MAYOR = DarkRP.createJob("President", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
description = [[The President creates laws t
Where is TEAM_SWAT defined? That's not a valid team.
[QUOTE=code_gs;43409061]Where is TEAM_SWAT defined? That's not a valid team.[/QUOTE]
ahhh, your right, i deleted team swat due to some coding errors and i didnt want to have swat anyways, ill delete that, and i put in this directory for my thief time because the other one just showed up as an error [code]models\player\t_arctic.mdl[/code] and my playermodel is T-shaped.
NVM i fixed it, turns out Deadeye's classmaker has arctic misspeled, instead of models/player/arctic.mdl its models/player/artic.mdl
What's the new issue? I can't understand you very well.
[QUOTE=code_gs;43409112]What's the new issue? I can't understand you very well.[/QUOTE]
oops, look like i posted it too late, i fixed it, read above
welp. i guess thats all i needed done. any suggestions for jobs? (please note that this is a serious roleplay server that im trying to start.)
For everyone that helped. Thank you. thank you so much.
Sorry, you need to Log In to post a reply to this thread.