Probleme avec les entité

  • Initiateur de la discussion
sony65

sony65

Geek
Messages
51
Score réaction
2
Points
95
Bonjour je vous contact car j'ai un problème avec entities sur mon serveur DARK RP,
Je vous explique,
Dès que je met des entités dans le entities.lua tout mon serveur ce met a planté (exemple : Les spawns de jobs change, on ne vois plus aucun métier, catégorie, Arme, munition).

le entities :

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:
---------------------------------------------------------------------------]] AddEntity("Combinateur", { ent = "zmlab_combiner", model = "models/zerochain/zmlab/zmlab_combiner.mdl", price = 6000, max = 1, cmd = "buycombiner_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth", }) AddEntity("Filtre a gaz", { ent = "zmlab_filter", model = "models/zerochain/zmlab/zmlab_filter.mdl", price = 1000, max = 1, cmd = "buyfilter_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth", }) AddEntity("Congelateur", { ent = "zmlab_frezzer", model = "models/zerochain/zmlab/zmlab_frezzer.mdl", price = 2000, max = 2, cmd = "buyfrezzer_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth", }) AddEntity("Caisse de transport", { ent = "zmlab_collectcrate", model = "models/zerochain/zmlab/zmlab_transportcrate.mdl", price = 250, max = 5, cmd = "buycollectcrate_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth", }) AddEntity("Methylamin", { ent = "zmlab_methylamin", model = "models/zerochain/zmlab/zmlab_methylamin.mdl", price = 1000, max = 6, cmd = "buymethylamin_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth", }) AddEntity("Aluminium", { ent = "zmlab_aluminium", model = "models/zerochain/zmlab/zmlab_aluminiumbox.mdl", price = 100, max = 6, cmd = "buyaluminium_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth", })
Le categories :

Code:
--[[ Generated using: DarkRP | Category Generator https://csite.io/tools/gmod-darkrp-category
--]]
DarkRP.createCategory{ name = "Matos Meth", categorises = "entities", startExpanded = true, color = Color(0, 0, 0, 255), canSee = function(ply) return table.HasValue({TEAM_FABRIQUANT}, ply:Team()) end, sortOrder = 0
}
Normalement y'a pas de bug dans les script mais peut être que le problème viens d'autre part ? mais je ne vois pas d'ou..
Pour ce qui est des autre entités j'ai du les redirigé sur les weapon (même pour les outils de garagiste -_-).
Mais pour les entités de meth je suis obligé de les mettres dans entities sinon l'addon bug et le congélateur ne marche pas...

Merci de votre aide !
 
chesiren

chesiren

Geek suprême
Messages
124
Score réaction
39
Points
160
On peut avoir l'erreur que t'a dans la console?
 
  • Initiateur de la discussion
sony65

sony65

Geek
Messages
51
Score réaction
2
Points
95
Merci de ta réponse,
J'ai tout remis comme avant en attendant histoire que le serveur soit jouable.
Dit moi il y a rien a modifier pour pouvoir entré des entités ? par exemple je sait pas moi mais dans darkrp modification ou autre ?
Dans les paramètre par défaut j'ai supprimé toutes les entités par défaut.
 
chesiren

chesiren

Geek suprême
Messages
124
Score réaction
39
Points
160
addons\darkrpmodification\lua\darkrp_customthings\entities.lua
Code:
DarkRP.createEntity("Combinateur", { ent = "zmlab_combiner", model = "models/zerochain/zmlab/zmlab_combiner.mdl", price = 6000, max = 1, cmd = "buycombiner_zmlab", category = "Matos Meth", allowed = {TEAM_FABRIQUANT}
})
utilise cette base pour faire les autres
 
  • Initiateur de la discussion
sony65

sony65

Geek
Messages
51
Score réaction
2
Points
95
Toujours pareil avec la ligne que tu a changé 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("Combinateur", { ent = "zmlab_combiner", model = "models/zerochain/zmlab/zmlab_combiner.mdl", price = 6000, max = 1, cmd = "buycombiner_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth",
})
DarkRP.createEntity("Filtre a gaz", { ent = "zmlab_filter", model = "models/zerochain/zmlab/zmlab_filter.mdl", price = 1000, max = 1, cmd = "buyfilter_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth",
})
DarkRP.createEntity("Congelateur", { ent = "zmlab_frezzer", model = "models/zerochain/zmlab/zmlab_frezzer.mdl", price = 2000, max = 2, cmd = "buyfrezzer_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth",
})
DarkRP.createEntity("Caisse de transport", { ent = "zmlab_collectcrate", model = "models/zerochain/zmlab/zmlab_transportcrate.mdl", price = 250, max = 5, cmd = "buycollectcrate_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth",
})
DarkRP.createEntity("Methylamin", { ent = "zmlab_methylamin", model = "models/zerochain/zmlab/zmlab_methylamin.mdl", price = 1000, max = 6, cmd = "buymethylamin_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth",
})
DarkRP.createEntity("Aluminium", { ent = "zmlab_aluminium", model = "models/zerochain/zmlab/zmlab_aluminiumbox.mdl", price = 100, max = 6, cmd = "buyaluminium_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth",
})
 
chesiren

chesiren

Geek suprême
Messages
124
Score réaction
39
Points
160
sony65 à dit:
Toujours pareil avec la ligne que tu a changé 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("Combinateur", { ent = "zmlab_combiner", model = "models/zerochain/zmlab/zmlab_combiner.mdl", price = 6000, max = 1, cmd = "buycombiner_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth",
})
DarkRP.createEntity("Filtre a gaz", { ent = "zmlab_filter", model = "models/zerochain/zmlab/zmlab_filter.mdl", price = 1000, max = 1, cmd = "buyfilter_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth",
})
DarkRP.createEntity("Congelateur", { ent = "zmlab_frezzer", model = "models/zerochain/zmlab/zmlab_frezzer.mdl", price = 2000, max = 2, cmd = "buyfrezzer_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth",
})
DarkRP.createEntity("Caisse de transport", { ent = "zmlab_collectcrate", model = "models/zerochain/zmlab/zmlab_transportcrate.mdl", price = 250, max = 5, cmd = "buycollectcrate_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth",
})
DarkRP.createEntity("Methylamin", { ent = "zmlab_methylamin", model = "models/zerochain/zmlab/zmlab_methylamin.mdl", price = 1000, max = 6, cmd = "buymethylamin_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth",
})
DarkRP.createEntity("Aluminium", { ent = "zmlab_aluminium", model = "models/zerochain/zmlab/zmlab_aluminiumbox.mdl", price = 100, max = 6, cmd = "buyaluminium_zmlab", allowed = TEAM_FABRIQUANT, category = "Matos Meth",
})
Relis la ligne allowed =
 
  • Initiateur de la discussion
sony65

sony65

Geek
Messages
51
Score réaction
2
Points
95
Elle est bonne c'est bien TEAM_FABRIQUANT
 
chesiren

chesiren

Geek suprême
Messages
124
Score réaction
39
Points
160
allowed = {TEAM_FABRIQUANT},
Ta oublié les {}
allowed = TEAM_FABRIQUANT,
 
  • Initiateur de la discussion
sony65

sony65

Geek
Messages
51
Score réaction
2
Points
95
Bien vu, j'avais même pas fait gaffe.
Je test aprés voir si ça marche en ajoutant une autre entité car j'ai réussi à résoudre le problème en passant par l'autoadd de l'addon même qui crée directement une categorie et les entités.
Je test aprés pour confirmé si le pb est resolu :)
 
Discord d'entraide
Rejoignz-nous sur Discord