Résolu Besoin d'aide erreur lua (avec bitminers 2)

  • Initiateur de la discussion
SuperTata

SuperTata

Geek suprême
Messages
180
Score réaction
11
Points
125
Bonjour/Bonsoir, j'aimerais avoir de l'aide à propos d'un Error Lua sur mon serveur le voici:


[ERROR] A runtime error has occurred in "addons/bitminers2/lua/bitminers2_config.lua" on line 29.
The best help I can give you is this:

Corrupt entity: Bitminer S1!
This entity does not have a unique command.

Hints:
- There must be some other entity that has the same thing for 'cmd'.
- Fix this by changing the 'cmd' field of your entity to something else.

The responsibility for the error above lies with (the authors of) one (or more) of these files:
1. addons/bitminers2/lua/bitminers2_config.lua on line 29
2. addons/ulib/lua/ulib/shared/hook.lua on line 109
------- End of Simplerr error -------
 
  • Initiateur de la discussion
SuperTata

SuperTata

Geek suprême
Messages
180
Score réaction
11
Points
125
Pour mes entités:


hook.Add("PostGamemodeLoaded", "BM2.SetupEntities", function()
DarkRP.createCategory{
name = "Bitminers 2",
categorises = "entities",
startExpanded = true,
color = Color(120, 120, 255, 255),
sortOrder = 1,
}

DarkRP.createEntity("Bitminer S1", {
ent = "bm2_bitminer_1",
model = "models/bitminers2/bitminer_1.mdl",
price = 5000,
max = 2,
cmd = "buybitminers1",
category = "Bitminers 2"
})

DarkRP.createEntity("Bitminer S2", {
ent = "bm2_bitminer_2",
model = "models/bitminers2/bitminer_3.mdl",
price = 25000,
max = 2,
cmd = "buybitminers2",
category = "Bitminers 2"
})

DarkRP.createEntity("Bitminer Server", {
ent = "bm2_bitminer_server",
model = "models/bitminers2/bitminer_2.mdl",
price = 50000,
max = 16,
cmd = "buybitminerserver",
category = "Bitminers 2"
})

DarkRP.createEntity("Bitminer Rack", {
ent = "bm2_bitminer_rack",
model = "models/bitminers2/bitminer_rack.mdl",
price = 100000,
max = 2,
cmd = "buybitminerrack",
category = "Bitminers 2"
})

DarkRP.createEntity("Extension Lead", {
ent = "bm2_extention_lead",
model = "models/bitminers2/bitminer_plug_3.mdl",
price = 500,
max = 8,
cmd = "buybitminerextension",
category = "Bitminers 2"
})

DarkRP.createEntity("Power Lead", {
ent = "bm2_power_lead",
model = "models/bitminers2/bitminer_plug_2.mdl",
price = 500,
max = 10,
cmd = "buybitminerpowerlead",
category = "Bitminers 2"
})

DarkRP.createEntity("Generator", {
ent = "bm2_generator",
model = "models/bitminers2/generator.mdl",
price = 6000,
max = 3,
cmd = "buybitminergenerator",
category = "Bitminers 2"
})

DarkRP.createEntity("Fuel", {
ent = "bm2_fuel",
model = "models/props_junk/gascan001a.mdl",
price = 1000,
max = 4,
cmd = "buybitminerfuel",
category = "Bitminers 2"
})
end)
 
Dernière édition:
M

Maxime Nostra

Têtard
Messages
5
Score réaction
0
Points
5
LEAK LEAk LEAk Leak leak
 
  • Initiateur de la discussion
SuperTata

SuperTata

Geek suprême
Messages
180
Score réaction
11
Points
125
  • Initiateur de la discussion
SuperTata

SuperTata

Geek suprême
Messages
180
Score réaction
11
Points
125
J'ai réglé mon erreur c'est bon!
 
Discord d'entraide
Rejoignz-nous sur Discord