- Initiateur de la discussion
Enissay72
Geek
- Messages
- 51
- Score réaction
- 4
- Points
- 65
Bonjour, j'ai un énorme problème lua sur mon serv le voici :
Sa me fait sa avec tous mes jobs alors que j'ai créer la catégorie la voici :
et voici aussi le code du job :
Sinon j'ai une autre error Car les Playermodel sont en mode unassigned alors que dans le tab on voit notre métier (ex: Citoyens ou armurier) mais je ne vois pas mon grade aussi.
J'ai besoin d'une réponse au plus vite
There is 1 Lua problem!
Please check your console for more information!
[ERROR] A runtime error has occurred in "addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua" on line 629.
The best help I can give you is this:
Corrupt team: *VIP* Négociateur!
This job does not have a unique command.
Hints:
- There must be some other job that has the same command.
- Fix this by changing the 'command' of your job to something else.
The responsibility for the error above lies with (the authors of) one (or more) of these files:
1. addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua on line 629
2. function 'doInclude'
3. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 137
4. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 148
5. gamemodes/darkrp/gamemode/cl_init.lua on line 56
------- End of Simplerr error -------
Please check your console for more information!
[ERROR] A runtime error has occurred in "addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua" on line 629.
The best help I can give you is this:
Corrupt team: *VIP* Négociateur!
This job does not have a unique command.
Hints:
- There must be some other job that has the same command.
- Fix this by changing the 'command' of your job to something else.
The responsibility for the error above lies with (the authors of) one (or more) of these files:
1. addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua on line 629
2. function 'doInclude'
3. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 137
4. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 148
5. gamemodes/darkrp/gamemode/cl_init.lua on line 56
------- End of Simplerr error -------
DarkRP.createCategory{
name = "Gouvernement",
categorises = "jobs",
startExpanded = true,
color = Color(0, 132, 255, 255),
canSee = function(ply) return true end,
sortOrder = 2
}
name = "Gouvernement",
categorises = "jobs",
startExpanded = true,
color = Color(0, 132, 255, 255),
canSee = function(ply) return true end,
sortOrder = 2
}
TEAM_NEGO = DarkRP.createJob("*VIP* Négociateur", {
color = Color(0, 87, 255, 255),
model = {"models/player/r6s_doc.mdl"},
description = [[Vous êtes le Négociateur. Vous devez partir à toutes action RP (Braquage, prise d'otage ...) et négocier pour libérer tous le monde et que tous ceux termine bien sans mort.]],
weapons = {"pass_police_nationale", "stungun", "m9k_glock", "m9k_g36", "m9k_mp5", "swat_shield", "m9k_sticky_grenade", "weapon_cuff_police"},
command = "raid",
max = 1,
salary = 850,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
category = "Gouvernement",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(150)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Un membre du R.A.I.D est mort. Paix à son âme.")
end,
customCheck = function(ply) return CLIENT or
table.HasValue({"VIP", "Modo-Test", "Modérateur", "admin", "superadmin", "Co-Fondateur", "Fondateur"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Réserver au VIP",
})
color = Color(0, 87, 255, 255),
model = {"models/player/r6s_doc.mdl"},
description = [[Vous êtes le Négociateur. Vous devez partir à toutes action RP (Braquage, prise d'otage ...) et négocier pour libérer tous le monde et que tous ceux termine bien sans mort.]],
weapons = {"pass_police_nationale", "stungun", "m9k_glock", "m9k_g36", "m9k_mp5", "swat_shield", "m9k_sticky_grenade", "weapon_cuff_police"},
command = "raid",
max = 1,
salary = 850,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
category = "Gouvernement",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(150)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Un membre du R.A.I.D est mort. Paix à son âme.")
end,
customCheck = function(ply) return CLIENT or
table.HasValue({"VIP", "Modo-Test", "Modérateur", "admin", "superadmin", "Co-Fondateur", "Fondateur"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Réserver au VIP",
})
J'ai besoin d'une réponse au plus vite
Dernière édition: