Probléme Entity .. :/

  • Initiateur de la discussion
TristanSao

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 :D
Ducoup je comprend pas comment .
 
Feytone

Feytone

Chuck Norris
Messages
4 741
Score réaction
1 301
Points
600
J'ai absolument pas compris le problème perso.
 
  • Initiateur de la discussion
TristanSao

TristanSao

Geek
Messages
80
Score réaction
5
Points
95
Feytone

Feytone

Chuck Norris
Messages
4 741
Score réaction
1 301
Points
600
Prodix7 à dit:
j'ai édit ^^
Déjà c'est allowed = ta(tes) team(s)
et non allowedTeam. Et si t'as une erreur LUA, mieux vaut la donner ;)
 
  • Initiateur de la discussion
TristanSao

TristanSao

Geek
Messages
80
Score réaction
5
Points
95
Feytone à dit:
Déjà c'est allowed = ta(tes) team(s)
et non allowedTeam. Et si t'as une erreur LUA, mieux vaut la donner ;)
Haaa xD Bah pour temps j'ai pas d'error lua hum écoute je vais check le allowed et je te tiens en courant aprés :)
 
  • Initiateur de la discussion
TristanSao

TristanSao

Geek
Messages
80
Score réaction
5
Points
95
Marche pas :/
 
Feytone

Feytone

Chuck Norris
Messages
4 741
Score réaction
1 301
Points
600
Bizarre bizarre...
 
  • Initiateur de la discussion
TristanSao

TristanSao

Geek
Messages
80
Score réaction
5
Points
95
C'est bien ça ? :
DarkRP.createEntity("baril", {
ent = "the_opium_barrel",
model = "models/props_junk/terracotta01.mdl",
price = 3500,
max = 2,
cmd = "barrelbuy",
allowed = {TEAM_OPIUM}
})

DarkRP.createEntity("Bouteille Vide", {
ent = "the_opium_bottle",
model = "models/props_junk/water_bottle.mdl",
price = 100,
max = 5,
cmd = "videbuy",
allowed = {TEAM_OPIUM}
})

DarkRP.createEntity("codéine", {
ent = "the_opium_codeine",
model = "models/props_junk/cardboard_box003a.mdl",
price = 900,
max = 2,
cmd = "codéinebuy",
allowed = {TEAM_OPIUM}

})

DarkRP.createEntity("gaz", {
ent = "the_opium_gas",
model = "models/props_junk/propane_tank.mdl",
price = 700,
max = 3,
cmd = "gazbuy",
allowed = {TEAM_OPIUM}

})

DarkRP.createEntity("chauffe-eau", {
ent = "the_opium_heater",
model = "models/hunter/blocks/cube075x075x025.mdl",
price = 1500,
max = 3,
cmd = "chaufeaubuy",
allowed = {TEAM_OPIUM}

})

DarkRP.createEntity("papavérine", {
ent = "the_opium_papaverine",
model = "models/props_junk/cardboard_box003a.mdl",
price = 900,
max = 1,
cmd = "papavérinebuy",
allowed = {TEAM_OPIUM}


})

DarkRP.createEntity("sulfate", {
ent = "the_opium_sulfate",
model = "models/props_junk/cardboard_box003a.mdl",
price = 900,
max = 1,
cmd = "sulfatebuy",
allowed = {TEAM_OPIUM}

})

DarkRP.createEntity("Bouteille D'eau", {
ent = "the_opium_water",
model = "models/props_junk/cardboard_box003a.mdl",
price = 200,
max = 6,
cmd = "eaubuy",
allowed = {TEAM_OPIUM}

})
 
Feytone

Feytone

Chuck Norris
Messages
4 741
Score réaction
1 301
Points
600
Prodix7 à dit:
C'est bien ça ? :
DarkRP.createEntity("baril", {
ent = "the_opium_barrel",
model = "models/props_junk/terracotta01.mdl",
price = 3500,
max = 2,
cmd = "barrelbuy",
allowed = {TEAM_OPIUM}
})

DarkRP.createEntity("Bouteille Vide", {
ent = "the_opium_bottle",
model = "models/props_junk/water_bottle.mdl",
price = 100,
max = 5,
cmd = "videbuy",
allowed = {TEAM_OPIUM}
})

DarkRP.createEntity("codéine", {
ent = "the_opium_codeine",
model = "models/props_junk/cardboard_box003a.mdl",
price = 900,
max = 2,
cmd = "codéinebuy",
allowed = {TEAM_OPIUM}

})

DarkRP.createEntity("gaz", {
ent = "the_opium_gas",
model = "models/props_junk/propane_tank.mdl",
price = 700,
max = 3,
cmd = "gazbuy",
allowed = {TEAM_OPIUM}

})

DarkRP.createEntity("chauffe-eau", {
ent = "the_opium_heater",
model = "models/hunter/blocks/cube075x075x025.mdl",
price = 1500,
max = 3,
cmd = "chaufeaubuy",
allowed = {TEAM_OPIUM}

})

DarkRP.createEntity("papavérine", {
ent = "the_opium_papaverine",
model = "models/props_junk/cardboard_box003a.mdl",
price = 900,
max = 1,
cmd = "papavérinebuy",
allowed = {TEAM_OPIUM}


})

DarkRP.createEntity("sulfate", {
ent = "the_opium_sulfate",
model = "models/props_junk/cardboard_box003a.mdl",
price = 900,
max = 1,
cmd = "sulfatebuy",
allowed = {TEAM_OPIUM}

})

DarkRP.createEntity("Bouteille D'eau", {
ent = "the_opium_water",
model = "models/props_junk/cardboard_box003a.mdl",
price = 200,
max = 6,
cmd = "eaubuy",
allowed = {TEAM_OPIUM}

})
Ouais ouais normalement, ça doit ressembler à ça...
Alors ça veut dire que ton fichier est peut être mal à relier au gamemode. T'as déjà modifié ça quelque part dans le gamemode ?
Et si t'enlèves le TEAM_OPIUM, par hasard ça marche déjà comme ça ? Car sinon y'a bien un problème de fichier.
 
NovixGaming

NovixGaming

Geek
Messages
229
Score réaction
8
Points
85
Tien :
DarkRP.createEntity("Tonneau vide", {
ent = "the_opium_barrel",
model = "models/props_junk/plasticbucket001a.mdl",
price = 15000,
max = 2,
cmd = "buybarrel",
allowed = {TEAM_OPI}
})

DarkRP.createEntity("Sulfate", {
ent = "the_opium_sulfate",
model = "models/props_junk/cardboard_box001b.mdl",
price = 50,
max = 50,
cmd = "buysulfate",
allowed = {TEAM_OPI}
})

DarkRP.createEntity("Codeine", {
ent = "the_opium_codeine",
model = "models/props_junk/cardboard_box001b.mdl",
price = 150,
max = 50,
cmd = "buycodeine",
allowed = {TEAM_OPI}
})

DarkRP.createEntity("Papaverine", {
ent = "the_opium_papaverine",
model = "models/props_junk/cardboard_box001b.mdl",
price = 100,
max = 50,
cmd = "buypapaverine",
allowed = {TEAM_OPI}
})

DarkRP.createEntity("Water", {
ent = "the_opium_water",
model = "models/props_junk/garbage_plasticbottle003a.mdl",
price = 25,
max = 60,
cmd = "buywateropium",
allowed = {TEAM_OPI}
})

DarkRP.createEntity("Heater", {
ent = "the_opium_heater",
model = "models/props_c17/furnitureStove001a.mdl",
price = 500,
max = 2,
cmd = "buyheater",
allowed = {TEAM_OPI}
})

DarkRP.createEntity("Gaz", {
ent = "the_opium_gas",
model = "models/props_junk/propane_tank001a.mdl",
price = 250,
max = 2,
cmd = "buygazopium",
allowed = {TEAM_OPI}
})

DarkRP.createEntity("Packer", {
ent = "the_opium_packer",
model = "models/props_junk/cardboard_box003a.mdl",
price = 125,
max = 2,
cmd = "buypacker",
allowed = {TEAM_OPI}
})
 
Feytone

Feytone

Chuck Norris
Messages
4 741
Score réaction
1 301
Points
600
NovixGaming à dit:
Tien :
DarkRP.createEntity("Tonneau vide", {
ent = "the_opium_barrel",
model = "models/props_junk/plasticbucket001a.mdl",
price = 15000,
max = 2,
cmd = "buybarrel",
allowed = {TEAM_OPI}
})

DarkRP.createEntity("Sulfate", {
ent = "the_opium_sulfate",
model = "models/props_junk/cardboard_box001b.mdl",
price = 50,
max = 50,
cmd = "buysulfate",
allowed = {TEAM_OPI}
})

DarkRP.createEntity("Codeine", {
ent = "the_opium_codeine",
model = "models/props_junk/cardboard_box001b.mdl",
price = 150,
max = 50,
cmd = "buycodeine",
allowed = {TEAM_OPI}
})

DarkRP.createEntity("Papaverine", {
ent = "the_opium_papaverine",
model = "models/props_junk/cardboard_box001b.mdl",
price = 100,
max = 50,
cmd = "buypapaverine",
allowed = {TEAM_OPI}
})

DarkRP.createEntity("Water", {
ent = "the_opium_water",
model = "models/props_junk/garbage_plasticbottle003a.mdl",
price = 25,
max = 60,
cmd = "buywateropium",
allowed = {TEAM_OPI}
})

DarkRP.createEntity("Heater", {
ent = "the_opium_heater",
model = "models/props_c17/furnitureStove001a.mdl",
price = 500,
max = 2,
cmd = "buyheater",
allowed = {TEAM_OPI}
})

DarkRP.createEntity("Gaz", {
ent = "the_opium_gas",
model = "models/props_junk/propane_tank001a.mdl",
price = 250,
max = 2,
cmd = "buygazopium",
allowed = {TEAM_OPI}
})

DarkRP.createEntity("Packer", {
ent = "the_opium_packer",
model = "models/props_junk/cardboard_box003a.mdl",
price = 125,
max = 2,
cmd = "buypacker",
allowed = {TEAM_OPI}
})
Tu n'as fais que changer la TEAM... A moins qu'il ait mis un mauvais nom, normalement ça marchera pas mieux.
 
NovixGaming

NovixGaming

Geek
Messages
229
Score réaction
8
Points
85
Moj j'ai le meme addon et ca marche
 
NovixGaming

NovixGaming

Geek
Messages
229
Score réaction
8
Points
85
Et à chaque parrenthèse il a laissé un éspace
 
NovixGaming

NovixGaming

Geek
Messages
229
Score réaction
8
Points
85
lui :
allowed = {TEAM_OPIUM}

})

moi :
allowed = {TEAM_OPI}
})
 
Feytone

Feytone

Chuck Norris
Messages
4 741
Score réaction
1 301
Points
600
NovixGaming à dit:
lui :
allowed = {TEAM_OPIUM}

})

moi :
allowed = {TEAM_OPI}
})
Les espaces n'ont aucun rapport, ça n'entre pas en conflit. De même, tu peux écrire tout en ligne, sans un seul espace, ce sera pareil.
Le truc c'est la TEAM ça ça change. Si lui s'est juste gouré tout va bien mais ça m'étonnerait un poil quand même.
 
  • Initiateur de la discussion
TristanSao

TristanSao

Geek
Messages
80
Score réaction
5
Points
95
marche pas :/ C'est biens darkrp_customing -> entities.lua ?
 
NovixGaming

NovixGaming

Geek
Messages
229
Score réaction
8
Points
85
mais as tu une erreur lua?
 
  • Initiateur de la discussion
TristanSao

TristanSao

Geek
Messages
80
Score réaction
5
Points
95
  • Initiateur de la discussion
TristanSao

TristanSao

Geek
Messages
80
Score réaction
5
Points
95
DarkRP.createEntity("baril", {
ent = "the_opium_barrel",
model = "models/props_junk/terracotta01.mdl",
price = 3500,
max = 2,
cmd = "barrelbuy",
allowed = {TEAM_OPI}
})

DarkRP.createEntity("Bouteille Vide", {
ent = "the_opium_bottle",
model = "models/props_junk/water_bottle.mdl",
price = 100,
max = 5,
cmd = "videbuy",
allowed = {TEAM_OPI}
})

DarkRP.createEntity("codéine", {
ent = "the_opium_codeine",
model = "models/props_junk/cardboard_box003a.mdl",
price = 900,
max = 2,
cmd = "codéinebuy",
allowed = {TEAM_OPI}

})

DarkRP.createEntity("gaz", {
ent = "the_opium_gas",
model = "models/props_junk/propane_tank.mdl",
price = 700,
max = 3,
cmd = "gazbuy",
allowed = {TEAM_OPI}

})

DarkRP.createEntity("chauffe-eau", {
ent = "the_opium_heater",
model = "models/hunter/blocks/cube075x075x025.mdl",
price = 1500,
max = 3,
cmd = "chaufeaubuy",
allowed = {TEAM_OPI}

})

DarkRP.createEntity("papavérine", {
ent = "the_opium_papaverine",
model = "models/props_junk/cardboard_box003a.mdl",
price = 900,
max = 1,
cmd = "papavérinebuy",
allowed = {TEAM_OPI}


})

DarkRP.createEntity("sulfate", {
ent = "the_opium_sulfate",
model = "models/props_junk/cardboard_box003a.mdl",
price = 900,
max = 1,
cmd = "sulfatebuy",
allowed = {TEAM_OPI}

})

DarkRP.createEntity("Bouteille D'eau", {
ent = "the_opium_water",
model = "models/props_junk/cardboard_box003a.mdl",
price = 200,
max = 6,
cmd = "eaubuy",
allowed = {TEAM_OPI}

})
 
Feytone

Feytone

Chuck Norris
Messages
4 741
Score réaction
1 301
Points
600
C'est quoi la TEAM de ton job ?
 
  • Initiateur de la discussion
TristanSao

TristanSao

Geek
Messages
80
Score réaction
5
Points
95
  • Initiateur de la discussion
TristanSao

TristanSao

Geek
Messages
80
Score réaction
5
Points
95
je viens de le poster dans le addEntity du gamemode
 
  • Initiateur de la discussion
TristanSao

TristanSao

Geek
Messages
80
Score réaction
5
Points
95
et sa marche pas :/
 
Discord d'entraide
Rejoignz-nous sur Discord