Howdy, i have been getting some errors the recent past few days.
[CODE][ERROR] A runtime error has occurred in "darkrp_customthings/jobs.lua" on line 93.
The best help I can give you is this:
Corrupt team: Civil Protection!
The model must either be a table of correct model strings or a single correct model string.
Hints:
- No hints, sorry.
The responsibility for this error lies with (the authors of) one (or more) of these files:
1. darkrp_customthings/jobs.lua on line 93
2. [C] on line -1
3. gamemodes/darkrp/gamemode/libraries/simplerr.lua on line 409
4. gamemodes/darkrp/gamemode/libraries/fn.lua on line 80
5. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 119
6. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 127
7. addons/ulib/lua/ulib/shared/hook.lua on line 183
------
[ERROR] A runtime error has occurred in "darkrp_customthings/jobs.lua" on line 449.
The best help I can give you is this:
[ERROR] A runtime error has occurred in "darkrp_customthings/jobs.lua" on line 93.
The best help I can give you is this:
Corrupt team: Civil Protection!
The model must either be a table of correct model strings or a single correct model string.
Hints:
- No hints, sorry.
The responsibility for this error lies with (the authors of) one (or more) of these files:
1. darkrp_customthings/jobs.lua on line 93
2. [C] on line -1
3. gamemodes/darkrp/gamemode/libraries/simplerr.lua on line 409
4. gamemodes/darkrp/gamemode/libraries/fn.lua on line 80
5. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 119
6. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 127
7. addons/ulib/lua/ulib/shared/hook.lua on line 183
------
Hints:
- No hints, sorry.
The responsibility for this error lies with (the authors of) one (or more) of these files:
1. darkrp_customthings/jobs.lua on line 449
2. gamemodes/darkrp/gamemode/libraries/fn.lua on line 80
3. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 119
4. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 127
5. addons/ulib/lua/ulib/shared/hook.lua on line 183
------[/CODE]
[CODE]Here is whats in my customjob file
--[[---------------------------------------------------------------------------
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:
[url]https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua[/url]
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_MEDIC = DarkRP.createJob("Medic", {
color = Color(47, 79, 79, 255),
model = {
"models/player/group03m/female_01.mdl",
"models/player/group03m/male_01.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 = {"fas2_ifak"},
command = "medic",
max = 3,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
medic = true
})
TEAM_DETECTIVE = DarkRP.createJob("Detective", {
color = Color(20, 20, 255, 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 = [[VIP ONLY
You are a detective, undercover police. You are to assist in raids, pay informants for information, and solve any crime you
can get your hands on.]],
weapons = {"arrest_stick", "unarrest_stick", "fas2_ots33", "stunstick", "door_ram", "weaponchecker"},
command = "dt",
max = 6,
salary = 170,
admin = 0,
vote = false,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})
TEAM_FBIS = DarkRP.createJob("FBI SWAT", {
color = Color(90, 45, 255, 255),
model = {
"models/player/group03m/female_01.mdl"
},
description = [[VIP ONLY
An elite FBI Special Weapons and Tactics Operator. This class should be patrolling the streets
arresting thieves, but should be raiding printer farms and meth labs.]],
weapons = {"arrest_stick", "unarrest_stick", "fas2_glock20", "fas2_m4a1", "door_ram", "weaponchecker"},
command = "FS",
max = 6,
salary = 220,
admin = 0,
vote = false,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})
TEAM_POLICE = DarkRP.createJob("Civil Protection", {
color = Color(25, 25, 170, 255),
model = {
"models/player/group03m/female_01.mdl",
"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/npyd/cop_08.mdl",
"models/player/nypd/cop_09.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 = 0,
salary = 120,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})
[/CODE]
Also for some reason, any model i insert into the model field, turns up as an error, even with css mounted, and all the required addons and models for the file installed on the server, in multiple places, eg. The models folder, and the addon in the addons folder. I can post a directory of where it is if thats needed, however i dont know if that will help.
Anyways if anyone has any suggestions they would be appreciated :D
Sorry, you need to Log In to post a reply to this thread.