Job

  • Initiateur de la discussion Misterjojo45
  • Date de début
  • Initiateur de la discussion
M

Misterjojo45

Geek
Messages
11
Score réaction
1
Points
45
Bonjour je vous explique mon problème je crée mes jobs normal et la a un certain nombre de job quand je veux en mettre un autre sa me lua error
merci de me repondre :p
 
Nardox

Nardox

Psychopathe
Messages
1 143
Score réaction
240
Points
250
Envoie tes codes
 
  • Initiateur de la discussion
M

Misterjojo45

Geek
Messages
11
Score réaction
1
Points
45
celui de mes jobs qui marche ou ceux qui marche pas ?
 
Pichot

Pichot

Geek suprême
Messages
281
Score réaction
144
Points
150
Regarde dans la console client/server pour connaître l'endroit ou tu t'es planté ^^
 
yanax

yanax

Geek suprême
Messages
220
Score réaction
45
Points
100
  • Initiateur de la discussion
M

Misterjojo45

Geek
Messages
11
Score réaction
1
Points
45
ceux qui marche:
TEAM_DRESSEUR = DarkRP.createJob("Dresseur", {
color = Color(0, 255, 56, 255),
model = {"models/pkmn trainer red/ash.mdl",
"models/pkmn trainer red/bwa.mdl",
"models/pkmn trainer red/dsh.mdl",
"models/pkmn trainer red/gen.mdl",
"models/pkmn trainer red/hsh.mdl",
"models/pkmn trainer red/ptn.mdl",
"models/pkmn trainer red/red.mdl",},
description = [[Vous êtes un Dresseur (pas de capture forcer sauf en cadre RP) ]],
weapons = {"pokeball_admin"},
command = "Dresseur",
max = 16,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(150) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
})

TEAM_STAFF = DarkRP.createJob("Fondateur", {
color = Color(255, 0, 0, 255),
model = {"models/lordvipes/daftpunk/player/dp_t_01_player.mdl"},
description = [[Vous êtes un Fondateur. ]],
weapons = {},
command = "Fondateur",
max = 1,
salary = 0,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
PlayerLoadout = function(ply)
ply:SetHealth(5000000) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
customCheck = function(ply) return ply:GetNWString("usergroup") == "Fondateur" or ply:GetNWString("usergroup") == "grade" or ply:GetNWString("usergroup") == "grade" or ply:GetNWString("usergroup") == "grade" end,
})

TEAM_STAFF = DarkRP.createJob("Co-Fondateur", {
color = Color(255, 0, 0, 255),
model = {"models/player_link.mdl"},
description = [[Vous êtes un Co-Fondateur. ]],
weapons = {},
command = "Co-Fondateur",
max = 1,
salary = 0,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
PlayerLoadout = function(ply)
ply:SetHealth(5000000) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
customCheck = function(ply) return ply:GetNWString("usergroup") == "Co-Fondateur" or ply:GetNWString("usergroup") == "grade" or ply:GetNWString("usergroup") == "grade" or ply:GetNWString("usergroup") == "grade" end,
})

TEAM_POKEMON = DarkRP.createJob("Evoli", {
color = Color(175, 100, 11, 255),
model = {"models/player_eevee.mdl"},
description = [[Vous êtes Evoli. ]],
weapons = {"weapon_diviiclaws"},
command = "Evoli",
max = 5,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(250) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
level = 3
})

TEAM_POKEMON = DarkRP.createJob("Noctali", {
color = Color(0, 0, 0, 255),
model = {"models/player_umbreon.mdl"},
description = [[Vous êtes Noctali. ]],
weapons = {"sfw_pulsar","sfw_vapor","weapon_camo","weapon_diviiclaws"},
command = "Noctali",
max = 5,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(500) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
level = 5
})

TEAM_POKEMON = DarkRP.createJob("Aquali", {
color = Color(11, 142, 170, 255),
model = {"models/player_vaporeon.mdl"},
description = [[Vous êtes Aquali. ]],
weapons = {"sfw_aquamarine","sfw_blizzard","weapon_diviiclaws"},
command = "Aquali",
max = 5,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(500) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
level = 5
})

TEAM_POKEMON = DarkRP.createJob("Voltali", {
color = Color(249, 255, 0, 255),
model = {"models/player_jolteon.mdl"},
description = [[Vous êtes Voltali. ]],
weapons = {"sfw_storm","sfw_pulsar","weapon_diviiclaws"},
command = "Voltali",
max = 5,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(500) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
level = 5
})

TEAM_POKEMON = DarkRP.createJob("Mentali", {
color = Color(255, 0, 244, 255),
model = {"models/player_espeon.mdl"},
description = [[Vous êtes Mentali. ]],
weapons = {"sfw_trace","weapon_diviiclaws","sfw_saphyre"},
command = "Mentali",
max = 5,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(500) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
level = 5
})

TEAM_POKEMON = DarkRP.createJob("Phyllali", {
color = Color(49, 255, 16, 255),
model = {"models/player_leafeon.mdl"},
description = [[Vous êtes Phyllali. ]],
weapons = {"sfw_neutrino","weapon_diviiclaws","sfw_pandemic"},
command = "Phyllali",
max = 5,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(500) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
level = 5
})

TEAM_Staff = DarkRP.createJob("SuperAdmin", {
color = Color(255, 0, 0, 255),
model = {"models/player/anonymous_hacktivist.mdl"},
description = [[Vous êtes un SuperAdmin. ]],
weapons = {},
command = "SuperAdmin",
max = 3,
salary = 0,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(5000000) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
customCheck = function(ply) return ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "grade" or ply:GetNWString("usergroup") == "grade" or ply:GetNWString("usergroup") == "grade" end,
})

TEAM_POKEMON = DarkRP.createJob("Mewtwo Shadow", {
color = Color(50, 9, 91, 255),
model = {"models/player/shadow_mewtwo_m.mdl"},
description = [[Mewtwo Shadow est un pokémon méchant capturable mais difficilement ]],
weapons = {"sfw_astra","sfw_prisma","sfw_zeala","sfw_supra"},
command = "Mewtwo Shadow",
max = 1,
salary = 600,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(2000) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
customCheck = function(ply) return ply:GetNWString("usergroup") == "V.I.P" or ply:GetNWString("usergroup") == "Fondateur" or ply:GetNWString("usergroup") == "Co-Fondateur" or ply:GetNWString("usergroup") == "superadmin" end,
})

TEAM_DRESSEUR = DarkRP.createJob("Professeur ", {
color = Color(252, 252, 252, 255),
model = {"models/player/blackmesa_scientific.mdl"},
description = [[Vous etes un professeur ,vous donnez au dresseur leurs starteur.]],
weapons = {"pokeball_admin"},
command = "",
max = 2,
salary = 600,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(250) -- rajoute de la vie
ply:SetArmor(100) -- rajoute de l'armure
end,
customCheck = function(ply) return ply:GetNWString("usergroup") == "Professeur" or ply:GetNWString("usergroup") == "Fondateur" or ply:GetNWString("usergroup") == "Co-Fondateur" or ply:GetNWString("usergroup") == "superadmin" end,
})
ceux qui marche pas:
TEAM_POKEMON = DarkRP.createJob("Givrali", {
color = Color(11, 206, 206, 255),
model = {"models/player_glaceon.mdl"},
description = [[Vous etes Givrali.]],
weapons = {"sfw_fallingstar","sfw_cryon","sfw_blizzard"},
command = "",
max = 5,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
})
 
Reese Roite

Reese Roite

Psychopathe
Messages
952
Score réaction
90
Points
250
Nope passe moi l'erreur lua
 
Nardox

Nardox

Psychopathe
Messages
1 143
Score réaction
240
Points
250
Look dans le console l'erreur LUA et envoie
 
  • Initiateur de la discussion
M

Misterjojo45

Geek
Messages
11
Score réaction
1
Points
45
------- End of Simplerr error -------
1. error - [C]:-1
2. error - gamemodes/darkrp/gamemode/libraries/simplerr.lua:530
3. createJob - gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua:414
 
Reese Roite

Reese Roite

Psychopathe
Messages
952
Score réaction
90
Points
250
En fait, y a tellement d'erreurs dans tes jobs :eek: ...
 
  • Initiateur de la discussion
M

Misterjojo45

Geek
Messages
11
Score réaction
1
Points
45
et je peux faire quoi?
 
Reese Roite

Reese Roite

Psychopathe
Messages
952
Score réaction
90
Points
250
Je vais te les corriger parce que j'ai la flemme d'écrire ;)
Code:
TEAM_DRESSEUR = DarkRP.createJob("Dresseur", {
color = Color(0, 255, 56, 255),
model = {"models/pkmn trainer red/ash.mdl",
"models/pkmn trainer red/bwa.mdl",
"models/pkmn trainer red/dsh.mdl",
"models/pkmn trainer red/gen.mdl",
"models/pkmn trainer red/hsh.mdl",
"models/pkmn trainer red/ptn.mdl",
"models/pkmn trainer red/red.mdl",},
description = [[Vous êtes un Dresseur (pas de capture forcer sauf en cadre RP) ]],
weapons = {"pokeball_admin"},
command = "Dresseur",
max = 16,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(150) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end
})
TEAM_STAFF = DarkRP.createJob("Fondateur", {
color = Color(255, 0, 0, 255),
model = {"models/lordvipes/daftpunk/player/dp_t_01_player.mdl"},
description = [[Vous êtes un Fondateur. ]],
weapons = {},
command = "Fondateur",
max = 1,
salary = 0,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
PlayerLoadout = function(ply)
ply:SetHealth(5000000) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
customCheck = function(ply) return ply:GetNWString("usergroup") == "Fondateur" or ply:GetNWString("usergroup") == "grade" or ply:GetNWString("usergroup") == "grade" or ply:GetNWString("usergroup") == "grade" end
})
TEAM_STAFF = DarkRP.createJob("Co-Fondateur", {
color = Color(255, 0, 0, 255),
model = {"models/player_link.mdl"},
description = [[Vous êtes un Co-Fondateur. ]],
weapons = {},
command = "Co-Fondateur",
max = 1,
salary = 0,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
PlayerLoadout = function(ply)
ply:SetHealth(5000000) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
customCheck = function(ply) return ply:GetNWString("usergroup") == "Co-Fondateur" or ply:GetNWString("usergroup") == "grade" or ply:GetNWString("usergroup") == "grade" or ply:GetNWString("usergroup") == "grade" end
})
TEAM_POKEMON = DarkRP.createJob("Evoli", {
color = Color(175, 100, 11, 255),
model = {"models/player_eevee.mdl"},
description = [[Vous êtes Evoli. ]],
weapons = {"weapon_diviiclaws"},
command = "Evoli",
max = 5,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(250) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
level = 3
})
TEAM_POKEMON = DarkRP.createJob("Noctali", {
color = Color(0, 0, 0, 255),
model = {"models/player_umbreon.mdl"},
description = [[Vous êtes Noctali. ]],
weapons = {"sfw_pulsar","sfw_vapor","weapon_camo","weapon_diviiclaws"},
command = "Noctali",
max = 5,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(500) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
level = 5
})
TEAM_POKEMON = DarkRP.createJob("Aquali", {
color = Color(11, 142, 170, 255),
model = {"models/player_vaporeon.mdl"},
description = [[Vous êtes Aquali. ]],
weapons = {"sfw_aquamarine","sfw_blizzard","weapon_diviiclaws"},
command = "Aquali",
max = 5,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(500) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
level = 5
})
TEAM_POKEMON = DarkRP.createJob("Voltali", {
color = Color(249, 255, 0, 255),
model = {"models/player_jolteon.mdl"},
description = [[Vous êtes Voltali. ]],
weapons = {"sfw_storm","sfw_pulsar","weapon_diviiclaws"},
command = "Voltali",
max = 5,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(500) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
level = 5
})
TEAM_POKEMON = DarkRP.createJob("Mentali", {
color = Color(255, 0, 244, 255),
model = {"models/player_espeon.mdl"},
description = [[Vous êtes Mentali. ]],
weapons = {"sfw_trace","weapon_diviiclaws","sfw_saphyre"},
command = "Mentali",
max = 5,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(500) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
level = 5
})
TEAM_POKEMON = DarkRP.createJob("Phyllali", {
color = Color(49, 255, 16, 255),
model = {"models/player_leafeon.mdl"},
description = [[Vous êtes Phyllali. ]],
weapons = {"sfw_neutrino","weapon_diviiclaws","sfw_pandemic"},
command = "Phyllali",
max = 5,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(500) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
level = 5
})
TEAM_Staff = DarkRP.createJob("SuperAdmin", {
color = Color(255, 0, 0, 255),
model = {"models/player/anonymous_hacktivist.mdl"},
description = [[Vous êtes un SuperAdmin. ]],
weapons = {},
command = "SuperAdmin",
max = 3,
salary = 0,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(5000000) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
customCheck = function(ply) return ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "grade" or ply:GetNWString("usergroup") == "grade" or ply:GetNWString("usergroup") == "grade" end
})
TEAM_POKEMON = DarkRP.createJob("Mewtwo Shadow", {
color = Color(50, 9, 91, 255),
model = {"models/player/shadow_mewtwo_m.mdl"},
description = [[Mewtwo Shadow est un pokémon méchant capturable mais difficilement ]],
weapons = {"sfw_astra","sfw_prisma","sfw_zeala","sfw_supra"},
command = "Mewtwo Shadow",
max = 1,
salary = 600,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(2000) -- rajoute de la vie
ply:SetArmor(0) -- rajoute de l'armure
end,
customCheck = function(ply) return ply:GetNWString("usergroup") == "V.I.P" or ply:GetNWString("usergroup") == "Fondateur" or ply:GetNWString("usergroup") == "Co-Fondateur" or ply:GetNWString("usergroup") == "superadmin" end
})
TEAM_DRESSEUR = DarkRP.createJob("Professeur ", {
color = Color(252, 252, 252, 255),
model = {"models/player/blackmesa_scientific.mdl"},
description = [[Vous etes un professeur ,vous donnez au dresseur leurs starteur.]],
weapons = {"pokeball_admin"},
command = "professeur",
max = 2,
salary = 600,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
PlayerLoadout = function(ply)
ply:SetHealth(250) -- rajoute de la vie
ply:SetArmor(100) -- rajoute de l'armure
end,
customCheck = function(ply) return ply:GetNWString("usergroup") == "Professeur" or ply:GetNWString("usergroup") == "Fondateur" or ply:GetNWString("usergroup") == "Co-Fondateur" or ply:GetNWString("usergroup") == "superadmin" end
})
TEAM_POKEMON = DarkRP.createJob("Givrali", {
color = Color(11, 206, 206, 255),
model = {"models/player_glaceon.mdl"},
description = [[Vous etes Givrali.]],
weapons = {"sfw_fallingstar","sfw_cryon","sfw_blizzard"},
command = "givrali",
max = 5,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true
})
 
  • Initiateur de la discussion
M

Misterjojo45

Geek
Messages
11
Score réaction
1
Points
45
ok simaire
 
  • Initiateur de la discussion
M

Misterjojo45

Geek
Messages
11
Score réaction
1
Points
45
je peux savoir c quoi mes erreurs
 
Pichot

Pichot

Geek suprême
Messages
281
Score réaction
144
Points
150
Tu dois mettre un nom de team unique. Pas TEAM_STAFF ou TEAM_POKEMON mais du genre TEAM_PIKACHU ect.. un nom pour chaque métier
 
Reese Roite

Reese Roite

Psychopathe
Messages
952
Score réaction
90
Points
250
Nope absolument pas nécessaire mais bien essayé ;)
Le nom de team peut être à chaque fois le même
 
  • J'aime
Réactions: kirikoumalou et EglyKozz
EglyKozz

EglyKozz

Psychopathe
Messages
1 627
Score réaction
359
Points
310
Reese Roite à dit:
Nope absolument pas nécessaire mais bien essayé ;)
Le nom de team peut être à chaque fois le même
)
My life was change °.°
 
  • J'aime
Réactions: kirikoumalou
Reese Roite

Reese Roite

Psychopathe
Messages
952
Score réaction
90
Points
250
haha
 
Pichot

Pichot

Geek suprême
Messages
281
Score réaction
144
Points
150
MDR
 
Discord d'entraide
Rejoignz-nous sur Discord