Problème Lua Error

  • Initiateur de la discussion Enissay72
  • Date de début
  • Initiateur de la discussion
Enissay72

Enissay72

Geek
Messages
51
Score réaction
4
Points
65
Bonjour,
J'ai un problème Lua Error le voici
There are 2 Lua problems!
Please check your console for more information!
[ERROR] A runtime error has occurred in "darkrp_customthings/jobs.lua" on line 138.
The best help I can give you is this:

Corrupt team: Acolyte Sith!
The model must either be a table of correct model strings or a single correct model string.

Hints:
- This error could happens when the model does not exist on the server.
- Are you sure the model path is right?
- Is the model from an addon that is not properly installed?

The responsibility for this error lies with (the authors of) one (or more) of these files:
1. darkrp_customthings/jobs.lua on line 138
2. [C] on line -1
3. gamemodes/starwarsrp/gamemode/libraries/simplerr.lua on line 410
4. gamemodes/starwarsrp/gamemode/libraries/fn.lua on line 82
5. gamemodes/starwarsrp/gamemode/libraries/modificationloader.lua on line 119
6. gamemodes/starwarsrp/gamemode/libraries/modificationloader.lua on line 127
7. addons/ulib/lua/ulib/shared/hook.lua on line 109
------
[ERROR] A runtime error has occurred in "darkrp_customthings/jobs.lua" on line 454.
The best help I can give you is this:

[ERROR] A runtime error has occurred in "darkrp_customthings/jobs.lua" on line 138.
The best help I can give you is this:

Corrupt team: Acolyte Sith!
The model must either be a table of correct model strings or a single correct model string.

Hints:
- This error could happens when the model does not exist on the server.
- Are you sure the model path is right?
- Is the model from an addon that is not properly installed?

The responsibility for this error lies with (the authors of) one (or more) of these files:
1. darkrp_customthings/jobs.lua on line 138
2. [C] on line -1
3. gamemodes/starwarsrp/gamemode/libraries/simplerr.lua on line 410
4. gamemodes/starwarsrp/gamemode/libraries/fn.lua on line 82
5. gamemodes/starwarsrp/gamemode/libraries/modificationloader.lua on line 119
6. gamemodes/starwarsrp/gamemode/libraries/modificationloader.lua on line 127
7. addons/ulib/lua/ulib/shared/hook.lua on line 109
------

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 454
2. gamemodes/starwarsrp/gamemode/libraries/fn.lua on line 82
3. gamemodes/starwarsrp/gamemode/libraries/modificationloader.lua on line 119
4. gamemodes/starwarsrp/gamemode/libraries/modificationloader.lua on line 127
5. addons/ulib/lua/ulib/shared/hook.lua on line 109
------
There are 2 Lua problems!
Please check your console for more information!
Merci de m'aider
 
Zlaydis

Zlaydis

Geek suprême
Messages
336
Score réaction
86
Points
100
Bah tu as des ERREURS dans ton job.lua aux lignes 138 et 454 regarde si tu n'as pas oublier des virgules, des guillemets de "}" etc..
 
  • Initiateur de la discussion
Enissay72

Enissay72

Geek
Messages
51
Score réaction
4
Points
65
Ligne 138 : TEAM_ACOLYTES = DarkRP.createJob("Acolyte Sith", {
et la ligne 454 n'existe pas.
 
bourdrel62680

bourdrel62680

Geek suprême
Messages
542
Score réaction
144
Points
160
Donne nous tous le métier
 
Projec-Exor

Projec-Exor

Geek
Messages
345
Score réaction
59
Points
80
Code:
TEAM_ACOLYTESITH = DarkRP.createJob("Acolyte Sith", { color = Color(255, 0, 0, 255), model = {"models/nate159/req/swtfu/sith_acolyte.mdl", "models/tfa/comm/pm_sw_lana_beniko.mdl"}, description = [[Vous êtes un Acolyte SIth. Vous devenez un Sith aguérit et vous êtes parer au combat.
]], weapons = {"weapon_lightsaber"}, command = "acolytestm", max = 0, salary = 0, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Ordre Sith", PlayerLoadout = function(ply) ply:SetHealth(400) ply:SetArmor(10) PlayerDeath = function(ply, weapon, killer) ply:teamBan(250) ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "") end
end,
})
 
  • Initiateur de la discussion
Enissay72

Enissay72

Geek
Messages
51
Score réaction
4
Points
65
Projec-Exor à dit:
Code:
TEAM_ACOLYTESITH = DarkRP.createJob("Acolyte Sith", { color = Color(255, 0, 0, 255), model = {"models/nate159/req/swtfu/sith_acolyte.mdl", "models/tfa/comm/pm_sw_lana_beniko.mdl"}, description = [[Vous êtes un Acolyte SIth. Vous devenez un Sith aguérit et vous êtes parer au combat.
]], weapons = {"weapon_lightsaber"}, command = "acolytestm", max = 0, salary = 0, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Ordre Sith", PlayerLoadout = function(ply) ply:SetHealth(400) ply:SetArmor(10) PlayerDeath = function(ply, weapon, killer) ply:teamBan(250) ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "") end
end,
})
Pourquoi tu as totalement changé le code ?
 
  • J'aime
Réactions: Projec-Exor
  • Initiateur de la discussion
Enissay72

Enissay72

Geek
Messages
51
Score réaction
4
Points
65
Problème réglé c'est juste j'avais oublié d'upload les addons des playermodel sur le serv ...
 
Pierre97

Pierre97

Geek
Messages
360
Score réaction
68
Points
70
Passe en résolu ;)
 
Projec-Exor

Projec-Exor

Geek
Messages
345
Score réaction
59
Points
80
Enissay72 à dit:
Pourquoi tu as totalement changé le code ?
J'ai essayer de changer un peu ton code xD
 
Discord d'entraide
Rejoignz-nous sur Discord