Probleme lua

  • Initiateur de la discussion PiZzI
  • Date de début
  • Initiateur de la discussion
P

PiZzI

Geek
Messages
14
Score réaction
0
Points
65
Probleme lua voici le jobs.lua

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 jobs under the following line:
---------------------------------------------------------------------------]]

TEAM_BANQUE = DarkRP.createJob("Banquier", {
color = Color(0, 252, 222, 255),
model = {"models/player/magnusson.mdl"},
description = [[Banquier]],
weapons = {"weapon_fists"},
command = "/br",
max = 1,
salary = 356,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_GDM = DarkRP.createJob("Garde du maire", {
color = Color(8, 255, 33, 255),
model = {"models/player/guard_pack/guard_01.mdl, "},
description = [[Garde du maire]],
weapons = {"weapon_fists", "m9k_famas"},
command = "",
max = 4,
salary = 1000,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_VLR = DarkRP.createJob("Voleur", {
color = Color(8, 255, 33, 255),
model = {"models/player/guard_pack/guard_01.mdl, "},
description = [[Voleur]],
weapons = {"weapon_fists", "lockpick"},
command = "",
max = 3,
salary = 20,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_GIGN = DarkRP.createJob("GIGN", {
color = Color(175, 8, 234, 255),
model = {"models/player/codmw2/codmw2.mdl"},
description = [[GIGN]],
weapons = {"weapon_fists", "m9k_g36", "colt1911"},
command = "",
max = 5,
salary = 2000,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_CGIGN = DarkRP.createJob("Chef GIGN", {
color = Color(210, 154, 229, 255),
model = {"models/player/codmw2/codmw2.mdl"},
description = [[Chef GIGN]],
weapons = {"weapon_fists", "m9k_g36", "m9k_colt1911"},
command = "",
max = 1,
salary = 2500,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})







--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZEN


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

Nardox

Psychopathe
Messages
1 143
Score réaction
240
Points
250
PiZzI à dit:
Probleme lua voici le jobs.lua

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 jobs under the following line:
---------------------------------------------------------------------------]]

TEAM_BANQUE = DarkRP.createJob("Banquier", {
color = Color(0, 252, 222, 255),
model = {"models/player/magnusson.mdl"},
description = [[Banquier]],
weapons = {"weapon_fists"},
command = "/br",
max = 1,
salary = 356,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_GDM = DarkRP.createJob("Garde du maire", {
color = Color(8, 255, 33, 255),
model = {"models/player/guard_pack/guard_01.mdl, "},
description = [[Garde du maire]],
weapons = {"weapon_fists", "m9k_famas"},
command = "",
max = 4,
salary = 1000,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_VLR = DarkRP.createJob("Voleur", {
color = Color(8, 255, 33, 255),
model = {"models/player/guard_pack/guard_01.mdl, "},
description = [[Voleur]],
weapons = {"weapon_fists", "lockpick"},
command = "",
max = 3,
salary = 20,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_GIGN = DarkRP.createJob("GIGN", {
color = Color(175, 8, 234, 255),
model = {"models/player/codmw2/codmw2.mdl"},
description = [[GIGN]],
weapons = {"weapon_fists", "m9k_g36", "colt1911"},
command = "",
max = 5,
salary = 2000,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_CGIGN = DarkRP.createJob("Chef GIGN", {
color = Color(210, 154, 229, 255),
model = {"models/player/codmw2/codmw2.mdl"},
description = [[Chef GIGN]],
weapons = {"weapon_fists", "m9k_g36", "m9k_colt1911"},
command = "",
max = 1,
salary = 2500,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})







--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZEN


--[[---------------------------------------------------------------------------
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)
Essaye ça:

TEAM_BANQUE = DarkRP.createJob("Banquier", {
color = Color(0, 252, 222, 255),
model = {"models/player/magnusson.mdl"},
description = [[Banquier]],
weapons = {"weapon_fists"},
command = "/br",
max = 1,
salary = 356,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_GDM = DarkRP.createJob("Garde du maire", {
color = Color(8, 255, 33, 255),
model = {"models/player/guard_pack/guard_01.mdl"},
description = [[Garde du maire]],
weapons = {"weapon_fists", "m9k_famas"},
command = "gdm",
max = 4,
salary = 1000,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_VLR = DarkRP.createJob("Voleur", {
color = Color(8, 255, 33, 255),
model = {"models/player/guard_pack/guard_01.mdl"},
description = [[Voleur]],
weapons = {"weapon_fists", "lockpick"},
command = "vole",
max = 3,
salary = 20,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_GIGN = DarkRP.createJob("GIGN", {
color = Color(175, 8, 234, 255),
model = {"models/player/codmw2/codmw2.mdl"},
description = [[GIGN]],
weapons = {"weapon_fists", "m9k_g36", "colt1911"},
command = "gign",
max = 5,
salary = 2000,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_CGIGN = DarkRP.createJob("Chef GIGN", {
color = Color(210, 154, 229, 255),
model = {"models/player/codmw2/codmw2.mdl"},
description = [[Chef GIGN]],
weapons = {"weapon_fists", "m9k_g36", "m9k_colt1911"},
command = "chefgign",
max = 1,
salary = 2500,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})
 
  • Initiateur de la discussion
P

PiZzI

Geek
Messages
14
Score réaction
0
Points
65
Merci je vais test et je dirai des nouvelle si sa ne marche pas ^^
 
M

Mehdi2904

Geek suprême
Messages
848
Score réaction
88
Points
145
Code:
category = "",
retire ça..
 
Nardox

Nardox

Psychopathe
Messages
1 143
Score réaction
240
Points
250
Enleve les customcheck si tu ne t'en sert pas
 
M

Mehdi2904

Geek suprême
Messages
848
Score réaction
88
Points
145
Enleve tout enfaite c'est horrible ton code ;p
 
  • J'aime
Réactions: Nardox
S

Selio Itatake

Bambi
Messages
4
Score réaction
0
Points
35
Sa sens le gars qui est aller sur TCB job generator xD et retire le custom check et veifie que l'ecriture soit verte ;) .
 
S

Selio Itatake

Bambi
Messages
4
Score réaction
0
Points
35
Ne soit pas verte pardon
 
EglyKozz

EglyKozz

Psychopathe
Messages
1 627
Score réaction
359
Points
310
Selio Itatake à dit:
Sa sens le gars qui est aller sur TCB job generator xD
C'est exactement ça XDDD
 
Discord d'entraide
Rejoignz-nous sur Discord