Bonjour bug métier citoyen !

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

anthonybersee

Geek
Messages
34
Score réaction
1
Points
95
Corrupt team: Citoyen!
The admin value must be a number and it must be greater than or equal to zero and smaller than three.

Hints:
- No hints, sorry.

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 18
2. function 'xpcall'
3. gamemodes/darkrp/gamemode/libraries/simplerr.lua on line 477
4. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
5. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
6. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 137
7. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 148
8. gamemodes/darkrp/gamemode/init.lua on line 111

Mon job.lua est :

TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
color = Color(115, 117, 122, 255),
model = {
"models/Humans/Group01/male_02.mdl",
"models/Humans/Group01/Male_01.mdl",
"models/Humans/Group01/Male_03.mdl",
"models/Humans/Group01/Male_04.mdl",
"models/Humans/Group01/Male_05.mdl",
"models/Humans/Group01/Male_06.mdl",
"models/Humans/Group01/Male_07.mdl",
"models/Humans/Group01/Male_08.mdl",
"models/Humans/Group01/Male_09.mdl",
"models/Humans/Group01/Female_01.mdl",
"models/Humans/Group01/Female_02.mdl",
"models/Humans/Group01/Female_03.mdl",
"models/Humans/Group01/Female_04.mdl",
"models/Humans/Group01/Female_05.mdl",
"models/Humans/Group01/Female_06.mdl",
"models/Humans/Group01/Female_07.mdl",
"models/fearless/02.mdl",
"models/fearless/bsuit01.mdl",
"models/fearless/dgsuit12.mdl",
"models/fearless/suit07.mdl",
"models/fearless/mayor2.mdl"
},
description = [[En citoyen vous avez le droit ,de braquer ,de printers ,ect ...(Ceci est un des caractéristiques du serveur !)]],
weapons = {"weapon_fists","keys","weapon_physcannon","gmod_tool"},
command = "citoyen",
max = 32,
salary = 0,
vote = false,
hasLicense = false,
category = "Civil",
candemote = false,
PlayerLoadout = function(ply) ply:SetArmor( 0 ) end,
customCheck = function(ply) return CLIENT or
table.HasValue({"VIP","user","moderator","admin","superadmin"}, ply:GetNWString("usergroup"))
end,
})
 
MrSkiziz

MrSkiziz

Geek suprême
Messages
173
Score réaction
231
Points
130
met sur un paste bin pour jobs.lua
 
MrPungle

MrPungle

Geek
Messages
42
Score réaction
10
Points
95
anthonybersee à dit:
The admin value must be a number and it must be greater than or equal to zero and smaller than three.
admin = 0,
tu mets ça dans ton code en dessous de la ligne du salaire par exemple.

MrSkiziz à dit:
met sur un paste bin pour jobs.lua
réponse useless, le problème est simple et l'erreur est facile à trouver, tu pourrais au moins proposer une solution.

TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
color = Color(20, 150, 20, 255),
model = {
"models/player/group01/male_01.mdl",
"models/player/group01/Male_02.mdl",
"models/player/group01/male_03.mdl",
"models/player/group01/Male_04.mdl",
"models/player/group01/Male_05.mdl",
"models/player/group01/Male_06.mdl",
"models/player/group01/Male_07.mdl",
"models/player/group01/Male_08.mdl",
"models/player/group01/Male_09.mdl",
"models/player/group01/female_01.mdl",
"models/player/group01/female_02.mdl",
"models/player/group01/female_03.mdl",
"models/player/group01/female_04.mdl",
"models/player/group01/female_05.mdl",
"models/player/group01/female_06.mdl",

},
description = [[Le citoyen est un membre actif de la société bien qu'il n'ai pas de rôle spécifique.]],
weapons = {"weapon_arc_atmcard","weapon_fists",},
command = "citoyen",
max = 0,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
})
 
  • Initiateur de la discussion
anthonybersee

anthonybersee

Geek
Messages
34
Score réaction
1
Points
95
--[[---------------------------------------------------------------------------
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 your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
color = Color(115, 117, 122, 255),
model = {
"models/Humans/Group01/male_02.mdl",
"models/Humans/Group01/Male_01.mdl",
"models/Humans/Group01/Male_03.mdl",
"models/Humans/Group01/Male_04.mdl",
"models/Humans/Group01/Male_05.mdl",
"models/Humans/Group01/Male_06.mdl",
"models/Humans/Group01/Male_07.mdl",
"models/Humans/Group01/Male_08.mdl",
"models/Humans/Group01/Male_09.mdl",
"models/Humans/Group01/Female_01.mdl",
"models/Humans/Group01/Female_02.mdl",
"models/Humans/Group01/Female_03.mdl",
"models/Humans/Group01/Female_04.mdl",
"models/Humans/Group01/Female_05.mdl",
"models/Humans/Group01/Female_06.mdl",
"models/Humans/Group01/Female_07.mdl",
"models/fearless/02.mdl",
"models/fearless/bsuit01.mdl",
"models/fearless/dgsuit12.mdl",
"models/fearless/suit07.mdl",
"models/fearless/mayor2.mdl"

},
description = [[En citoyen vous avez le droit ,de braquer ,de printers ,ect ...(Ceci est un des caractéristiques du serveur !)]],
weapons = {"weapon_fists","keys","weapon_physcannon","gmod_tool"},
command = "citoyen",
max = 32,
salary = 0,
vote = false,
hasLicense = false,
category = "Civil",
candemote = false,
PlayerLoadout = function(ply) ply:SetArmor( 0 ) end,
customCheck = function(ply) return CLIENT or
table.HasValue({"VIP","user","moderator","admin","superadmin"}, ply:GetNWString("usergroup"))
end,
})

--[[---------------------------------------------------------------------------
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)
 
MrSkiziz

MrSkiziz

Geek suprême
Messages
173
Score réaction
231
Points
130
MrPungle à dit:
admin = 0,
tu mets ça dans ton code en dessous de la ligne du salaire par exemple.


réponse useless, le problème est simple et l'erreur est facile à trouver, tu pourrais au moins proposer une solution.

TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
color = Color(20, 150, 20, 255),
model = {
"models/player/group01/male_01.mdl",
"models/player/group01/Male_02.mdl",
"models/player/group01/male_03.mdl",
"models/player/group01/Male_04.mdl",
"models/player/group01/Male_05.mdl",
"models/player/group01/Male_06.mdl",
"models/player/group01/Male_07.mdl",
"models/player/group01/Male_08.mdl",
"models/player/group01/Male_09.mdl",
"models/player/group01/female_01.mdl",
"models/player/group01/female_02.mdl",
"models/player/group01/female_03.mdl",
"models/player/group01/female_04.mdl",
"models/player/group01/female_05.mdl",
"models/player/group01/female_06.mdl",

},
description = [[Le citoyen est un membre actif de la société bien qu'il n'ai pas de rôle spécifique.]],
weapons = {"weapon_arc_atmcard","weapon_fists",},
command = "citoyen",
max = 0,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
})
Effectivement j'avais pas vu
 
  • Initiateur de la discussion
anthonybersee

anthonybersee

Geek
Messages
34
Score réaction
1
Points
95
ok je test !
 
thepsyca

thepsyca

Psychopathe
Messages
2 164
Score réaction
648
Points
365
anthonybersee à dit:
customCheck = function(ply) return CLIENT or
table.HasValue({"VIP","user","moderator","admin","superadmin"}, ply:GetNWString("usergroup"))
end,
Tu peut aussi l'enlever puisque tu Whitelist pour tout les rangs de ton serveur
 
Discord d'entraide
Rejoignz-nous sur Discord