- Initiateur de la discussion
R
rom156
Têtard
- Messages
- 6
- Score réaction
- 0
- Points
- 5
bonjour à chaque fois que j'essaye de créer mes job le menu f4 ne s'ouvre plus. et m'annonce une erreur sur l'addons darkRp
voici l’erreur :
[DarkRP] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value)
1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23
2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62
Voici également mes jobs ;
TEAM_CITIZEN = DarkRP.createJob("Citoyen", {
color = Color(0, 196, 43, 255),
model = {
"models/player/zelpa/male_01_extended.mdl",
"models/player/zelpa/male_03_extended.mdl"
},
description = [[Menez votre vie comme bon vous semble. La vie vous offre une chance de devenir une bonne personne .]],
weapons = {"keys"},
command = "citoyen1",
max = 64,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Civils",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(0)
end
})
TEAM_CIVILS2 = DarkRP.createJob("Garde du corp", {
color = Color(0, 199, 41, 255),
model = {
"models/kerry/gruppe/male_01_security.mdl",
"models/kerry/gruppe/male_02_security.mdl",
"models/kerry/gruppe/male_03_security.md",
"models/kerry/gruppe/male_04_security.mdl"
},
description = [[Vous proposez vos service en tant que garde du corp. Votre seul préoccupation est la protection d'une personne ou d'un bien.]],
weapons = {"weapon_fists", "keys","weapon_physcannon","gmod_tool","empty_hands","gmod_camera","weapon_physgun"},
command = "gardeducorp1",
max = 4,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Civils",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(10)
ply:SetArmor(0)
ply:SetBodygroup(0, 0)
end
})
TEAM_CIVILS3 = DarkRP.createJob("Dépanneur", {
color = Color(0, 199, 41, 255),
model = {
"models/player/zelpa/male_02_extended.mdl"
},
description = [[La méchanic est votre dada.Vous gagnez également votre vie en remorquant les véhicules gênant la circulation ou étant mal stationnés.]],
weapons = {"weapon_fists", "keys","weapon_physcannon","gmod_tool","empty_hands","gmod_camera","weapon_physgun","vc_wrench"},
command = "depanneur1",
max = 4,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Civils",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(0)
ply:SetArmor(0)
ply:SetBodygroup(0, 0)
end
})
TEAM_CIVILS3 = DarkRP.createJob("Vendeur D'armes", {
color = Color(34, 120, 15, 255),
model = {
"models/weapons/c_arms_gor.mdl",
},
description = [[Vous êtes dans la vente d'armes légals depuis des années, les armes, munitions n'ont pas de secrets pour vous.]],
weapons = {"weapon_fists", "keys","weapon_physcannon","gmod_tool","empty_hands","gmod_camera","weapon_physgun"},
command = "vendeurdarmes1",
max = 4,
salary = 25,
vote = false,
hasLicense = false,
candemote = false,
category = "Civils",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(0)
ply:SetArmor(0)
ply:SetBodygroup(0, 0)
end
})
Je n'arrive pas à régler le problème si quelqu'un a la solution je suis preneur.
Merci à vous !
voici l’erreur :
[DarkRP] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value)
1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23
2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62
Voici également mes jobs ;
TEAM_CITIZEN = DarkRP.createJob("Citoyen", {
color = Color(0, 196, 43, 255),
model = {
"models/player/zelpa/male_01_extended.mdl",
"models/player/zelpa/male_03_extended.mdl"
},
description = [[Menez votre vie comme bon vous semble. La vie vous offre une chance de devenir une bonne personne .]],
weapons = {"keys"},
command = "citoyen1",
max = 64,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Civils",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(0)
end
})
TEAM_CIVILS2 = DarkRP.createJob("Garde du corp", {
color = Color(0, 199, 41, 255),
model = {
"models/kerry/gruppe/male_01_security.mdl",
"models/kerry/gruppe/male_02_security.mdl",
"models/kerry/gruppe/male_03_security.md",
"models/kerry/gruppe/male_04_security.mdl"
},
description = [[Vous proposez vos service en tant que garde du corp. Votre seul préoccupation est la protection d'une personne ou d'un bien.]],
weapons = {"weapon_fists", "keys","weapon_physcannon","gmod_tool","empty_hands","gmod_camera","weapon_physgun"},
command = "gardeducorp1",
max = 4,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Civils",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(10)
ply:SetArmor(0)
ply:SetBodygroup(0, 0)
end
})
TEAM_CIVILS3 = DarkRP.createJob("Dépanneur", {
color = Color(0, 199, 41, 255),
model = {
"models/player/zelpa/male_02_extended.mdl"
},
description = [[La méchanic est votre dada.Vous gagnez également votre vie en remorquant les véhicules gênant la circulation ou étant mal stationnés.]],
weapons = {"weapon_fists", "keys","weapon_physcannon","gmod_tool","empty_hands","gmod_camera","weapon_physgun","vc_wrench"},
command = "depanneur1",
max = 4,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Civils",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(0)
ply:SetArmor(0)
ply:SetBodygroup(0, 0)
end
})
TEAM_CIVILS3 = DarkRP.createJob("Vendeur D'armes", {
color = Color(34, 120, 15, 255),
model = {
"models/weapons/c_arms_gor.mdl",
},
description = [[Vous êtes dans la vente d'armes légals depuis des années, les armes, munitions n'ont pas de secrets pour vous.]],
weapons = {"weapon_fists", "keys","weapon_physcannon","gmod_tool","empty_hands","gmod_camera","weapon_physgun"},
command = "vendeurdarmes1",
max = 4,
salary = 25,
vote = false,
hasLicense = false,
candemote = false,
category = "Civils",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(0)
ply:SetArmor(0)
ply:SetBodygroup(0, 0)
end
})
Je n'arrive pas à régler le problème si quelqu'un a la solution je suis preneur.
Merci à vous !