Bonjour j'aimerais savoir ou sont mes erreur , car je ne comprend vraiment pas , c'est du lua , pour mon darkrp ^^'
Les erreurs :
12/26/2014 00:02:22: Lua Error
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:19: '}' expected (to close '{' at line 16) near 'description'
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:19: '}' expected (to close '{' at line 16) near 'description'
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0
12/26/2014 00:02:22: Lua Error: Corrupt shipment "AK47" element model is corrupt.
Corrupt shipment "AK47": element model is corrupt.
12/26/2014 00:02:22: Lua Error: Corrupt shipment "winchester73" element model is corrupt.
Corrupt shipment "winchester73": element model is corrupt.
12/26/2014 00:02:22: Lua Error: Corrupt vehicle "Voiture de police" element model is corrupt.
Corrupt vehicle "Voiture de police": element model is corrupt.
12/26/2014 00:02:22: Lua Error: Vehicle invalid Voiture de police. Unknown vehicle name.
Vehicle invalid: Voiture de police. Unknown vehicle name.12/26/2014 00:02:22: Lua Error: Corrupt vehicle "voiture de taxi" element model is corrupt.
Corrupt vehicle "voiture de taxi": element model is corrupt.
12/26/2014 00:02:22: Lua Error: Vehicle invalid voiture de taxi. Unknown vehicle name.
Vehicle invalid: voiture de taxi. Unknown vehicle name.ConVarRef room_type doesn't point to an existing ConVar
Les scripts :
jobs : /*---------------------------------------------------------------------------
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_CITOYEN = DarkRP.createJob("Citoyen", {
color = Color(37, 207, 37, 255),
model ={"models/player/Group01/male_02.mdl"}
description = [[citoyen.]],
weapons = {},
command = "!citoyen",
max = 0,
salary = 40,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_CP = DarkRP.createJob("Comissaire", {
color = Color(25, 146, 227, 255),
model = {"models/player/elispolice/police.mdl"},
description = [[Dirige la police.]],
weapons = {"m9k_m3","door_ram","arrest_stick","stunstick","unarrest_stick","weaponchecker","taser"},
command = "!cp",
max = 3,
salary = 100,
admin = 0,
vote = true,
hasLicense = false,
customCheck = function(ply) return
table.HasValue({"chefpolicier"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Desolé tu n'a pas le rang necessaire !",
})
TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(10, 39, 168, 255),
model = {"models/player/nypd/male_05.mdl"},
description = [[Fais son metier de policier.]],
weapons = {"m9k_hk45","arrest_stick","stunstick","unarrest_stick","weaponchecker","taser"},
command = "!police",
max = 15,
salary = 80,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_SWAT = DarkRP.createJob("Swat", {
color = Color(103, 0, 128, 255),
model = {"models/steinman/bf4/us_01.mdl"},
description = [[Dois intervenir en tant que grosse intervention (perquisition , etc )]],
weapons = ("door_ram","m9k_mp5","door_ram"},
command = "!swat",
max = 10,
salary = 90,
admin = 1,
vote = false,
hasLicense = true,
})
TEAM_MAIRE = DarkRP.createJob("Maire", {
color = Color(219, 26, 26, 255),
model = {"models/humans/suits_01.mdl"},
description = [[Dirige la ville.]],
weapons = {},
command = "!maire",
max = 1,
salary = 110,
admin = 0,
vote = true,
hasLicense = false,
})
TEAM_MEDECIN = DarkRP.createJob("Medecin", {
color = Color(10, 209, 93, 255),
model = {"models/player/Group03m/male_07.mdl"},
description = [[Soigne ceux qui en ont besoin.]],
weapons = {"med_kit"},
command = "!med",
max = 5,
salary = 90,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_DEPANNEUR = DarkRP.createJob("Depanneur", {
color = Color(165, 165, 165, 255),
model ={"models/player/hostage/hostage_01.mdl","models/player/hostage/hostage_02.mdl","models/player/hostage/hostage_03.mdl","models/player/hostage/hostage_04.mdl"},
description = [[met les voitures qui sont mal garées etc .. a la fourrière.]],
weapons = {},
command = "!depanneur",
max = 0,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_SECURITE = DarkRP.createJob("Garde securité", {
color = Color(165, 165, 165, 255),
model ={"models/player/guard_pack/guard_01.mdl"},
description = [[Garde securite consiste a protèger un établissement etc ...]],
weapons = {"stunstick"},
command = "!securite",
max = 4,
salary = 70,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_BANQUIER = DarkRP.createJob("Banquier", {
color = Color( 140, 129, 129, 255),
model ={"models/humans/suits_01.mdl"},
description = [[Dois géré la banque.]],
weapons = {},
command = "!banquier",
max = 1,
salary = 50,
admin = 0,
vote = true,
hasLicense = false,
})
TEAM_TAXI = DarkRP.createJob("taxi", {
color = Color(165, 165, 165, 255),
model ={"models/player/odessa.mdl"},
description = [[Conduis un taxi et amene des gens a leur destination .]],
weapons = {},
command = "!taxi",
max = 3,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
})
-- Compatibility for when default teams are disabled
TEAM_CITOYEN = TEAM_CITOYEN or -1
TEAM_POLICE = TEAM_POLICE or -1
TEAM_CP = TEAM_CP or -1
TEAM_SWAT = TEAM_SWAT or -1
TEAM_MAIRE = TEAM_MAIRE or -1
TEAM_MEDECIN = TEAM_MEDECIN or -1
TEAM_SECURITE = TEAM_SECURITE or -1
TEAM_BANQUIER = TEAM_BANQUIER or -1
TEAM_DEPANNEUR = TEAM_DEPANNEUR or -1
TEAM_TAXI = TEAM_TAXI or -1
/*---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------*/
GAMEMODE.DefaultTeam = TEAM_CITOYEN
/*---------------------------------------------------------------------------
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_MOB)
vehicle : /*---------------------------------------------------------------------------
DarkRP custom vehicles
---------------------------------------------------------------------------
This file contains your custom vehicles.
This file should also contain vehicles from DarkRP that you edited.
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:Vehicles
Add vehicles under the following line:
---------------------------------------------------------------------------*/
DarkRP.createVehicle({
name = "voiture de police",
model = "07sgmcrownviccvpi",
price = 0,
allowed = {TEAM_POLICE, TEAM_CP},
-- Insert customCheck here if you have one and want one.
})
DarkRP.createVehicle({
name = "voiture de taxi",
model = "crownvic_taxitdm",
price = 0,
allowed = {TEAM_TAXI},
-- Insert customCheck here if you have one and want one.
})
shipment : /*---------------------------------------------------------------------------
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("AK47", {
model = "w_ak47_m9k.mdl",
entity = "m9k_ak47",
price = 3750,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_CITOYEN},
shipmodel = "/srcds/garrysmod/models/weapons",
-- Insert customCheck here if you have one and want one.
})
DarkRP.createShipment("winchester73", {
model = "w_winchester_1873.mdl",
entity = "m9k_winchester73",
price = 3100,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_CITOYEN},
shipmodel = "/srcds/garrysmod/models/weapons",
-- Insert customCheck here if you have one and want one.
})