Erreurs entité

  • Initiateur de la discussion MrGogo852
  • Date de début
  • Initiateur de la discussion
M

MrGogo852

Geek
Messages
27
Score réaction
2
Points
75
Bonjour j'ai une erreur dans mon fichier entities.lua quelq'un peut verifier si il y a problème ? si oui le-quelle.

[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/entities.lua:34: '}' expected (to close '{' at line 28) near 'allowed' 1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/entities.lua:0


DarkRP.createEntity("Kart Bucheron", {
ent = "swm_cart",
model = "models/props_wasteland/laundry_cart002.mdl",
price = 500,
max = 2,
cmd = "kartbucheron"
allowed = {TEAM_BUCHERON},
})

DarkRP.createEntity("Auto-CIG 2000", {
ent = "cf_cigarette_machine",
model = "models/props_junk/cardboard_box001a.mdl",
price = 2500,
max = 1,
cmd = "autocig",
allowed = {TEAM_CIGARETTE},
})

DarkRP.createEntity("Engine Upgrade", {
ent = "cf_engine_upgrade",
model = "models/props_junk/cardboard_box001a.mdl",
price = 1000,
max = 1,
cmd = "engineup",
allowed = {TEAM_CIGARETTE},
})

DarkRP.createEntity("Storage Upgrade", {
ent = "cf_storage_upgrade",
model = "models/props_junk/cardboard_box001a.mdl",
price = 1000,
max = 1,
cmd = "storageup",
allowed = {TEAM_CIGARETTE},
})

DarkRP.createEntity("Pack de cigarette vide ", {
ent = "cf_cigarette_pack",
model = "models/props_junk/cardboard_box001a.mdl",
price = 500,
max = 1,
cmd = "packcig",
allowed = {TEAM_CIGARETTE},
})

DarkRP.createEntity("Papier cigarette ", {
ent = "cf_roll_paper",
model = "models/props_junk/cardboard_box001a.mdl",
price = 500,
max = 1,
cmd = "papercig",
allowed = {TEAM_CIGARETTE},
})

DarkRP.createEntity("Tabac", {
ent = "cf_tobacco_pack",
model = "models/props_junk/cardboard_box001a.mdl",
price = 500,
max = 1,
cmd = "papercig",
allowed = {TEAM_CIGARETTE},
})
 
Arkov Le Chauve

Arkov Le Chauve

Geek suprême
Messages
99
Score réaction
45
Points
145
La ligne 28 c'est quoi exactement ?
 
  • Initiateur de la discussion
M

MrGogo852

Geek
Messages
27
Score réaction
2
Points
75
DarkRP.createEntity("Kart Bucheron", {
 
Arkov Le Chauve

Arkov Le Chauve

Geek suprême
Messages
99
Score réaction
45
Points
145
Ligne 33 juste à côté de cmd mets une virgule et dis si ça le fait encore
 
  • Initiateur de la discussion
M

MrGogo852

Geek
Messages
27
Score réaction
2
Points
75
Je reload et je te dis ça, mais ça me parait bon :)
 
  • Initiateur de la discussion
M

MrGogo852

Geek
Messages
27
Score réaction
2
Points
75
Merci beaucoup ça a marché
 
Discord d'entraide
Rejoignz-nous sur Discord