- Initiateur de la discussion
TristanSao
Geek
- Messages
- 80
- Score réaction
- 5
- Points
- 95
--[[---------------------------------------------------------------------------
DarkRP custom entities
---------------------------------------------------------------------------
This file contains your custom entities.
This file should also contain entities from DarkRP that you edited.
Note: If you want to edit a default DarkRP entity, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the entity to this file and edit it.
The default entities can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua#L111
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomEntityFields
Add entities under the following line:
DarkRP.createEntity("baril", {
ent = "the_opium_barrel",
model = "models/props_junk/terracotta01.mdl",
price = 3500,
max = 2,
cmd = "barrelbuy",
allowedTeam = {TEAM_OPIUM}
})
DarkRP.createEntity("Bouteille Vide", {
ent = "the_opium_bottle",
model = "models/props_junk/water_bottle.mdl",
price = 100,
max = 5,
cmd = "videbuy",
allowedTeam = {TEAM_OPIUM}
})
DarkRP.createEntity("codéine", {
ent = "the_opium_codeine",
model = "models/props_junk/cardboard_box003a.mdl",
price = 900,
max = 2,
cmd = "codéinebuy",
allowedTeam = {TEAM_OPIUM}
})
DarkRP.createEntity("gaz", {
ent = "the_opium_gas",
model = "models/props_junk/propane_tank.mdl",
price = 700,
max = 3,
cmd = "gazbuy",
allowedTeam = {TEAM_OPIUM}
})
DarkRP.createEntity("chauffe-eau", {
ent = "the_opium_heater",
model = "models/hunter/blocks/cube075x075x025.mdl",
price = 1500,
max = 3,
cmd = "chaufeaubuy",
allowedTeam = {TEAM_OPIUM}
})
DarkRP.createEntity("papavérine", {
ent = "the_opium_papaverine",
model = "models/props_junk/cardboard_box003a.mdl",
price = 900,
max = 1,
cmd = "papavérinebuy",
})
DarkRP.createEntity("sulfate", {
ent = "the_opium_sulfate",
model = "models/props_junk/cardboard_box003a.mdl",
price = 900,
max = 1,
cmd = "sulfatebuy",
allowedTeam = {TEAM_OPIUM}
})
DarkRP.createEntity("Bouteille D'eau", {
ent = "the_opium_water",
model = "models/props_junk/cardboard_box003a.mdl",
price = 200,
max = 6,
cmd = "eaubuy",
allowedTeam = {TEAM_OPIUM}
})
Quand je le mets dans addEntity tout l'monde la.
Quand je le mets dans Entity personne le vois help pls xD
Je veux simplement que le metier de l'opium le vois j'ai du faire une boulette
Ducoup je comprend pas comment .
DarkRP custom entities
---------------------------------------------------------------------------
This file contains your custom entities.
This file should also contain entities from DarkRP that you edited.
Note: If you want to edit a default DarkRP entity, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the entity to this file and edit it.
The default entities can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua#L111
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomEntityFields
Add entities under the following line:
DarkRP.createEntity("baril", {
ent = "the_opium_barrel",
model = "models/props_junk/terracotta01.mdl",
price = 3500,
max = 2,
cmd = "barrelbuy",
allowedTeam = {TEAM_OPIUM}
})
DarkRP.createEntity("Bouteille Vide", {
ent = "the_opium_bottle",
model = "models/props_junk/water_bottle.mdl",
price = 100,
max = 5,
cmd = "videbuy",
allowedTeam = {TEAM_OPIUM}
})
DarkRP.createEntity("codéine", {
ent = "the_opium_codeine",
model = "models/props_junk/cardboard_box003a.mdl",
price = 900,
max = 2,
cmd = "codéinebuy",
allowedTeam = {TEAM_OPIUM}
})
DarkRP.createEntity("gaz", {
ent = "the_opium_gas",
model = "models/props_junk/propane_tank.mdl",
price = 700,
max = 3,
cmd = "gazbuy",
allowedTeam = {TEAM_OPIUM}
})
DarkRP.createEntity("chauffe-eau", {
ent = "the_opium_heater",
model = "models/hunter/blocks/cube075x075x025.mdl",
price = 1500,
max = 3,
cmd = "chaufeaubuy",
allowedTeam = {TEAM_OPIUM}
})
DarkRP.createEntity("papavérine", {
ent = "the_opium_papaverine",
model = "models/props_junk/cardboard_box003a.mdl",
price = 900,
max = 1,
cmd = "papavérinebuy",
})
DarkRP.createEntity("sulfate", {
ent = "the_opium_sulfate",
model = "models/props_junk/cardboard_box003a.mdl",
price = 900,
max = 1,
cmd = "sulfatebuy",
allowedTeam = {TEAM_OPIUM}
})
DarkRP.createEntity("Bouteille D'eau", {
ent = "the_opium_water",
model = "models/props_junk/cardboard_box003a.mdl",
price = 200,
max = 6,
cmd = "eaubuy",
allowedTeam = {TEAM_OPIUM}
})
Quand je le mets dans addEntity tout l'monde la.
Quand je le mets dans Entity personne le vois help pls xD
Je veux simplement que le metier de l'opium le vois j'ai du faire une boulette
Ducoup je comprend pas comment .