- Initiateur de la discussion
H
HawkFive
Nouveau né
- Messages
- 2
- Score réaction
- 0
- Points
- 15
Salut je suis actuellement entrain de configurer mon serveur mais j'ai un problème avec les entités pour le métier trafiquant de meth.Quand j'achète les entités sa me met dans le chat /buygas si j'achète le gas sa débite mon argent mais il ne spawn pas.
Voila le code je les ajouter dans : \Serveur rp\steamapps\common\GarrysModDS\garrysmod\addons\darkrpmodification-master\lua\darkrp_customthings/entities.lua
Voila le code je les ajouter dans : \Serveur rp\steamapps\common\GarrysModDS\garrysmod\addons\darkrpmodification-master\lua\darkrp_customthings/entities.lua
Code:
--[[---------------------------------------------------------------------------
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("Gas Canister", { ent = "eml_gas", model = "models/props_c17/canister01a.mdl", price = 1000, max = 2, cmd = "buygascanister", allowed = {TEAM_METH}
})
DarkRP.createEntity("Liquid Iodine", { ent = "eml_iodine", model = "models/props_lab/jar01b.mdl", price = 500, max = 5, cmd = "buyiodine", allowed = {TEAM_METH}
})
DarkRP.createEntity("Jar", { ent = "eml_jar", model = "models/props_lab/jar01a.mdl", price = 500, max = 2, cmd = "buyjar", allowed = {TEAM_METH}
})
DarkRP.createEntity("Muriatic Acid", { ent = "eml_macid", model = "models/props_junk/garbage_plasticbottle001a.mdl", price = 500, max = 5, cmd = "buymacid", allowed = {TEAM_METH}
})
DarkRP.createEntity("Pot", { ent = "eml_pot", model = "models/props_c17/metalPot001a.mdl", price = 500, max = 2, cmd = "buypot", allowed = {TEAM_METH}
})
DarkRP.createEntity("Special Pot", { ent = "eml_spot", model = "models/props_c17/metalPot001a.mdl", price = 1000, max = 2, cmd = "buyspot", allowed = {TEAM_METH}
})
DarkRP.createEntity("Stove", { ent = "eml_stove", model = "models/props_c17/furnitureStove001a.mdl", price = 1000, max = 2, cmd = "buystove", allowed = {TEAM_METH}
})
DarkRP.createEntity("Liquid Sulfur", { ent = "eml_sulfur", model = "models/props_lab/jar01b.mdl", price = 500, max = 5, cmd = "buysulfur", allowed = {TEAM_METH}
})
DarkRP.createEntity("Water", { ent = "eml_water", model = "models/props_junk/garbage_plasticbottle003a.mdl", price = 500, max = 5, cmd = "buywater", allowed = {TEAM_METH}
})