Probleme de job

  • Initiateur de la discussion
G

Gemref45

Nouveau né
Messages
1
Score réaction
0
Points
15
Bonjour, je met tout mes job dans mon serveur et quand je suis dedans sa me lai met pas

Mes job

TEAM_BRAQUEUR = DarkRP.createJob("Braqueur", {
color = Color(255, 0, 0, 255),
model = {"models/Splinks/KF2/characters/Player_Foster.mdl"},
description = [[Vous braquer des banques,des personnes, le commissariat et vous faite des printers ...]],
weapons = {"weapon_fists"},
command = "",
max = 5,
salary = 200,
admin = 0,
vote = true,
hasLicense = false,
candemote = false,


})

TEAM_CHEFGIGN = DarkRP.createJob("*VIP* Chef GIGN", {
color = ,
model = {"models/gign remasteredhd.mdl"},
description = [[Vous intervenez dans des interventions dangereuse]],
weapons = {"weapon_arc_atmcard", "bb_ak47_alt", "weapon_fists", "m9k_deagle", "m9k_acr", "policebadge", "arrest_stick", "door_ram", "unarrest_stick", "stunstick", "weaponchecker", "itemstore_pickup", "stungun"},
command = "ChefGIGN",
max = 1,
salary = 3000,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "Chef GIGN",
chief = true,
ammo = {
["pistol"] = 50,
["buckshot"] = 0,
["smg1"] = 0
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(100)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Le chef du GIGN est mort")
customCheck = function(ply) return ply:GetNWString("usergroup") == "VIP" or ply:GetNWString("usergroup") == "Admin" or ply:GetNWString("usergroup") == "SuperAdmin" end,

})

TEAM_CITIZEN = DarkRP.createJob("Citoyen", {
color = Color(20, 150, 20, 255),
model = {
"models/player/mossman_arctic.mdl"
"models/player/Group01/female_01.mdl",
"models/player/Group01/male_01.mdl"
},
description = [[VOUS ETES UN CITOYEN.]],
weapons = {},
command = "citizen",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",

})

TEAM_CUISINIER = DarkRP.createJob("Cuisinier", {
color = Color(0, 0, 0, 255),
model = {"models/player/mossman.mdl"},
description = [[Vous nourrissez la ville]],
weapons = {"weapon_fists"},
command = "Cuisinier",
max = 2,
salary = 248,
admin = 0,
vote = true,
hasLicense = false,
candemote = false,
category = "Cuisinier",
cook = true,
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)

})

TEAM_FLASH = DarkRP.createJob("FLASH", {
color = Color(0, 10, 255, 255),
model = {"Models/player/pizzaroll/injflash.mdl"},
description = [[Tu combat le crime]],
weapons = {"weapon_fists", "gmod_camera", "tfs_speedster", "weapon_physgun", "stungun", "itemstore_pickup", "weaponchecker", "stunstick", "unarrest_stick", "keys", "door_ram", "m9k_fists", "gmod_tool"},
command = "",
max = 1,
salary = 2998,
admin = ,
vote = true,
hasLicense = false,
candemote = ,
customCheck = function(ply) return ply:GetNWString("usergroup") == "VIP" or ply:GetNWString("usergroup") == "Admin" or ply:GetNWString("usergroup") == "SuperAdmin" or ply:GetNWString("usergroup") == "Modo" end,
category = "Flash",
PlayerSpawn = function(ply)
ply:SetMaxHealth(150)
ply:SetHealth(150)
ply:SetArmor(99)

})

TEAM_AGENT_DE_SECURITER = DarkRP.createJob("Agent de sécurité ", {
color = Color(0, 255, 152, 255),
model = {},
description = [[Vous etes un agent de sécurité ]],
weapons = {"weapon_fists", "itemstore_pickup", "weaponchecker", "stunstick", "wep_jack_job_drpstungun"},
command = "",
max = 6,
salary = 500,
admin = 0,
vote = true,
hasLicense = false,
candemote = false,
category = "Agent de sécurité ",
NeedToChangeFrom = TEAM_AGENT_DE_SECURITER,
ammo = {
["pistol"] = 0,
["buckshot"] = 0
},
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)

})

TEAM_GIGN = DarkRP.createJob("GIGN", {
color = Color(0, 26, 255, 255),
model = {"models/player/riot.mdl"},
description = [[Vous faite partit des forces de l'ordre votre missions est d'intervenir sur des braquage de banque, prise d'otage ...]],
weapons = {"weapon_fists", "bb_ak47_alt", "arrest_stick", "stunstick", "unarrest_stick", "bb_galil_alt", "bb_css_smoke_alt", "keys", "weapon_arc_atmcard", "weapon_cuff_police", "flip", "weapon_drivelicense", "weapon_policeshield", "policebadge", "stungun", "gmod_tool", "itemstore_pickup", "door_ram", "weaponchecker"},
command = "",
max = 5,
salary = 1000,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
category = "GIGN",
NeedToChangeFrom = TEAM_GIGN,
ammo = {
["pistol"] = 0,
["buckshot"] = 0
},
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(99)
end,
customCheck = function(ply)

end,
CustomCheckFailMsg = "",
})

TEAM_POLICIER = DarkRP.createJob("Policier", {
color = Color(0, 26, 255, 255),
model = {
"models/player/santosrp/Male_02_santosrp.mdl",
"models/player/santosrp/Male_04_santosrp.mdl",
"models/player/santosrp/Male_05_santosrp.mdl",
"models/player/santosrp/Male_06_santosrp.mdl",
"models/player/santosrp/Male_07_santosrp.mdl",
"models/player/santosrp/Male_08_santosrp.mdl",
"models/player/santosrp/Male_09_santosrp.mdl"
},
description = [[Vous etes un Policier]],
weapons = {"policebadge", "arrest_stick", "door_ram", "unarrest_stick", "stunstick", "weaponchecker", "itemstore_pickup", "stungun", "weapon_fists", "cw_deagle"},
command = "arrest",
max = 5,
salary = 1000,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
category = "Policier",
NeedToChangeFrom = TEAM_POLICIER,
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(50)
end
})

TEAM_PROSTITUER = DarkRP.createJob("Prostituer", {
color = Color(0, 255, 152, 255),
model = {"models/player/p2_chell.mdl"},
description = [[Vous etes une prostituer]],
weapons = {"weapon_fists", "itemstore_pickup", "weapon_rape"},
command = "",
max = 2,
salary = 100,
admin = 0,
vote = true,
hasLicense = false,
candemote = false,
category = "Prostituer",
NeedToChangeFrom = TEAM_PROSTITUER,
ammo = {
["pistol"] = 0,
["buckshot"] = 0
},
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
end
})

TEAM_TUEUR_A_GAGE = DarkRP.createJob("Tueur a gage", {
color = Color(112, 111, 111, 255),
model = {"models/player/agent_47.mdl"},
description = [[Vous etes un Tueur a gage]],
weapons = {"weapon_fists", "fas2_m24"},
command = "",
max = 2,
salary = 200,
admin = 0,
vote = true,
hasLicense = false,
candemote = false,
category = "Tueur a gage",
NeedToChangeFrom = TEAM_TUEUR_A_GAGE,
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
end
})

TEAM_VENDEURDARME = DarkRP.createJob("Vendeur d'arme", {
color = Color(255, 0, 107, 255),
model = {"models/player/adam_jensen.mdl"},
description = [[Vous vendez des armes]],
weapons = {"weapon_fists", "itemstore_pickup"},
command = "",
max = 2,
salary = 100,
admin = 0,
vote = true,
hasLicense = false,
candemote = false,
category = "Vendeur d'arme",
NeedToChangeFrom = TEAM_VENDEURDARME,
ammo = {
["pistol"] = 0,
["buckshot"] = 0
},
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
end
})

TEAM_VOLEUR = DarkRP.createJob("Voleur", {
color = Color(255, 0, 107, 255),
model = {"models/Splinks/KF2/characters/Player_DJSkully.mdl"},
description = [[Vous etes un voleur]],
weapons = {"weapon_fists", "gm_pickpocket", "master_lockpick", "itemstore_pickup"},
command = "",
max = 5,
salary = 100,
admin = 0,
vote = true,
hasLicense = false,
candemote = false,
category = "Voleur",
NeedToChangeFrom = TEAM_VOLEUR,
ammo = {
["pistol"] = 0
},
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
end
})

Merci de me repondre au plus vite
 
Zozo147

Zozo147

Helpeur Divin
Messages
1 814
Score réaction
848
Points
430
Bonjour/Bonsoir

Je pense que c'est ça :

Code:
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
end
Il manque des virgules à chaque end mettez des virgules comme ceci :

Code:
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
end,
 
Z

ZYGEULLL

Geek suprême
Messages
263
Score réaction
18
Points
110
Il manque la command de la plus-part des jobs ^^
 
ThePierard7

ThePierard7

Geek suprême
Messages
246
Score réaction
32
Points
130
Résolu ?
 
Feytone

Feytone

Chuck Norris
Messages
4 741
Score réaction
1 301
Points
600
Ben. ®

Ben. ®

Psychopathe
Messages
2 255
Score réaction
511
Points
340
À ouais , t'as fait nimp avec tes jobs..
 
A

Azgar87

Bambi
Messages
3
Score réaction
0
Points
35
Je ne sais pas si c'est résolu, ou si ma réponse est bonne mais, quand tu marque :

Code:
TEAM_AGENT_DE_SECURITER = DarkRP.createJob("Agent de sécurité ", {
color = Color(0, 255, 152, 255),
model = {},
description = [[Vous etes un agent de sécurité ]],
weapons = {"weapon_fists", "itemstore_pickup", "weaponchecker", "stunstick", "wep_jack_job_drpstungun"},
command = "",
max = 6,
salary = 500,
admin = 0,
vote = true,
hasLicense = false,
candemote = false,
category = "Agent de sécurité ",
NeedToChangeFrom = TEAM_AGENT_DE_SECURITER,
ammo = {
["pistol"] = 0,
["buckshot"] = 0
},
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
})
Je pense que le

Code:
NeedToChangeFrom = TEAM_AGENT_DE_SECURITER,
pose problème, tente

Code:
NeedToChangeFrom = TEAM_CITIZEN,
Je crois que là tu dis que seuls les agents de sécurité peuvent devenir agent de sécurité.

Bon jeu.


 
Discord d'entraide
Rejoignz-nous sur Discord