Corps qui disparaissent quand une personne meurt !

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

Jackyyyyyyyyyyy

Jackyyyyyyyyyyy
Messages
434
Score réaction
32
Points
140
Bonjour,
J'ai un petit problème quand une personne meurt son corps disparaît sauf certain job (Citoyen, éboueur)
Je possédé ces addon ( Medic-Mod, character_creator)
Mes job

--[[---------------------------------------------------------------------------
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:

For examples and explanation please visit this wiki page:

Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
color = Color(0, 0, 0, 255),
model = {
"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",
"models/player/Group03/female_01.mdl",
"models/player/Group03/female_02.mdl",
"models/player/Group03/female_03.mdl",
"models/player/Group03/female_04.mdl",
"models/player/Group03/female_05.mdl",
"models/player/Group03/female_06.mdl",
"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/Group02/male_02.mdl",
"models/player/Group02/male_04.mdl",
"models/player/Group02/male_06.mdl",
"models/player/Group02/male_08.mdl",
"models/player/Group03/male_01.mdl",
"models/player/Group03/male_02.mdl",
"models/player/Group03/male_03.mdl",
"models/player/Group03/male_04.mdl",
"models/player/Group03/male_05.mdl",
"models/player/Group03/male_06.mdl",
"models/player/Group03/male_07.mdl",
"models/player/Group03/male_08.mdl",
"models/player/Group03/male_09.mdl"
},
description = [[Tu es un citoyen de la ville ton bute est de te faire de l'argent !]],
weapons = {"weapon_arc_atmcard", "re_hands", "itemstore_pickup", "idcard", "wallet", "sphone"},
command = "admincitoyen",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})

TEAM_VDA = DarkRP.createJob("vendeur d'armes", {
color = Color(0, 0, 0, 255),
model = {
"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",
"models/player/Group03/female_01.mdl",
"models/player/Group03/female_02.mdl",
"models/player/Group03/female_03.mdl",
"models/player/Group03/female_04.mdl",
"models/player/Group03/female_05.mdl",
"models/player/Group03/female_06.mdl",
"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/Group02/male_02.mdl",
"models/player/Group02/male_04.mdl",
"models/player/Group02/male_06.mdl",
"models/player/Group02/male_08.mdl",
"models/player/Group03/male_01.mdl",
"models/player/Group03/male_02.mdl",
"models/player/Group03/male_03.mdl",
"models/player/Group03/male_04.mdl",
"models/player/Group03/male_05.mdl",
"models/player/Group03/male_06.mdl",
"models/player/Group03/male_07.mdl",
"models/player/Group03/male_08.mdl",
"models/player/Group03/male_09.mdl"
},
description = [[Tu fournis des armes au citoyens !]],
weapons = {"weapon_arc_atmcard", "re_hands", "itemstore_pickup", "idcard", "wallet", "sphone"},
command = "admingun",
max = 2,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end

})

TEAM_GARDE = DarkRP.createJob("Gardes du Corps", {
color = Color(0, 0, 0, 255),
model = {
"models/player/smith.mdl",
"models/player/smith.mdl"
},
description = [[Tu dois proteger une personne !]],
weapons = {"weapon_arc_atmcard", "re_hands", "itemstore_pickup", "idcard", "wallet", "stunstick", "stungun", "sphone"},
command = "admingarde",
max = 5,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end
})

TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(0, 0, 0, 255),
model = {
"models/player/mouss/pn_01.mdl",
"models/player/mouss/pn_02.mdl",
"models/player/mouss/pn_03.mdl"
},
description = [[Tu dois proteger une personne !]],
weapons = {"weapon_arc_atmcard", "re_hands", "itemstore_pickup", "idcard", "wallet", "stunstick", "stungun", "pass_police_nationale_1", "tfa_ins2_m9", "weapon_r_handcuffs", "sphone"},
command = "adminpolice",
max = 10,
salary = 25,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end
})

TEAM_GIGN = DarkRP.createJob("G.I.G.N", {
color = Color(0, 0, 0, 255),
model = {
"models/player/raid/raid_02.mdl",
"models/player/raid/raid_03.mdl",
"models/player/raid/raid_04.mdl",
"models/player/raid/raid_05.mdl",
"models/player/raid/raid_06.mdl",
"models/player/raid/raid_07.mdl"
},
description = [[Tu fait parti de l'elite de la police tu interviens dans les situations les plus dangereuse !]],
weapons = {"weapon_arc_atmcard", "re_hands", "itemstore_pickup", "idcard", "wallet", "stunstick", "stungun", "pass_police_nationale_1", "tfa_ins2_m9", "weapon_r_handcuffs", "tfa_ins2_famas", "sphone"},
command = "admingign",
max = 10,
salary = 50,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end
})

TEAM_BAC = DarkRP.createJob("BAC", {
color = Color(0, 0, 0, 255),
model = {
"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",
"models/player/Group03/female_01.mdl",
"models/player/Group03/female_02.mdl",
"models/player/Group03/female_03.mdl",
"models/player/Group03/female_04.mdl",
"models/player/Group03/female_05.mdl",
"models/player/Group03/female_06.mdl",
"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/Group02/male_02.mdl",
"models/player/Group02/male_04.mdl",
"models/player/Group02/male_06.mdl",
"models/player/Group02/male_08.mdl",
"models/player/Group03/male_01.mdl",
"models/player/Group03/male_02.mdl",
"models/player/Group03/male_03.mdl",
"models/player/Group03/male_04.mdl",
"models/player/Group03/male_05.mdl",
"models/player/Group03/male_06.mdl",
"models/player/Group03/male_07.mdl",
"models/player/Group03/male_08.mdl",
"models/player/Group03/male_09.mdl"
},
description = [[Tu fait parti de la bac tu est un policier en civil!]],
weapons = {"weapon_arc_atmcard", "re_hands", "itemstore_pickup", "idcard", "wallet", "stunstick", "stungun", "pass_police_nationale_1", "tfa_ins2_glock_19", "weapon_r_handcuffs", "sphone"},
command = "adminbac",
max = 5,
salary = 50,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end
})

TEAM_MAIRE = DarkRP.createJob("Maire", {
color = Color(0, 0, 0, 255),
model = {
"models/breen.mdl",
"models/breen.mdl"
},
description = [[Tu dirige la ville !]],
weapons = {"weapon_arc_atmcard", "re_hands", "itemstore_pickup", "idcard", "wallet", "stunstick", "stungun", "sphone"},
command = "adminmaire",
max = 1,
salary = 200,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end
})

TEAM_TAXI = DarkRP.createJob("Taximan", {
color = Color(232, 198, 198, 255),
model = {
"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",
"models/player/Group03/female_01.mdl",
"models/player/Group03/female_02.mdl",
"models/player/Group03/female_03.mdl",
"models/player/Group03/female_04.mdl",
"models/player/Group03/female_05.mdl",
"models/player/Group03/female_06.mdl",
"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/Group02/male_02.mdl",
"models/player/Group02/male_04.mdl",
"models/player/Group02/male_06.mdl",
"models/player/Group02/male_08.mdl",
"models/player/Group03/male_01.mdl",
"models/player/Group03/male_02.mdl",
"models/player/Group03/male_03.mdl",
"models/player/Group03/male_04.mdl",
"models/player/Group03/male_05.mdl",
"models/player/Group03/male_06.mdl",
"models/player/Group03/male_07.mdl",
"models/player/Group03/male_08.mdl",
"models/player/Group03/male_09.mdl"
},
description = [[Tu est un chauffeur de taxi du dois conduire des gens !]],
weapons = {"weapon_arc_atmcard", "re_hands", "itemstore_pickup", "idcard", "wallet", "stunstick", "stungun", "sphone"},
command = "admintaxi",
max = 2,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end
})

--[[
Generated using: DarkRP | Job Generator
Job Generator | cSite Alpha
--]]
TEAM_MEDIC = DarkRP.createJob("Medecin", {
color = Color(38, 22, 22, 255),
model = {
"models/player/portal/male_09_medic.mdl",
"models/player/portal/male_08_medic.mdl",
"models/player/portal/male_07_medic.mdl",
"models/player/portal/male_04_medic.mdl"
},
description = [[Tu sauve la vie des gens ]],
weapons = {"weapon_arc_atmcard", "re_hands", "itemstore_pickup", "idcard", "wallet", "stunstick", "stungun", "sphone"},
command = "adminmedecin",
max = 2,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end
})

--[[
Generated using: DarkRP | Job Generator
Job Generator | cSite Alpha
--]]
TEAM_BANQUE = DarkRP.createJob("Banquier", {
color = Color(64, 57, 57, 255),
model = { "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",
"models/player/Group03/female_01.mdl",
"models/player/Group03/female_02.mdl",
"models/player/Group03/female_03.mdl",
"models/player/Group03/female_04.mdl",
"models/player/Group03/female_05.mdl",
"models/player/Group03/female_06.mdl",
"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/Group02/male_02.mdl",
"models/player/Group02/male_04.mdl",
"models/player/Group02/male_06.mdl",
"models/player/Group02/male_08.mdl",
"models/player/Group03/male_01.mdl",
"models/player/Group03/male_02.mdl",
"models/player/Group03/male_03.mdl",
"models/player/Group03/male_04.mdl",
"models/player/Group03/male_05.mdl",
"models/player/Group03/male_06.mdl",
"models/player/Group03/male_07.mdl",
"models/player/Group03/male_08.mdl",
"models/player/Group03/male_09.mdl"
},
description = [[Tu dois dirigé la banque ]],
weapons = {"weapon_arc_atmcard", "re_hands", "itemstore_pickup", "idcard", "wallet", "stunstick", "stungun", "sphone"},
command = "adminbanque",
max = 2,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
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)


Merci par avance de votre réponse !

Cordialement Jacky
 
Discord d'entraide
Rejoignz-nous sur Discord