Armes M9K

  • Initiateur de la discussion leo2b
  • Date de début
  • Initiateur de la discussion
L

leo2b

Geek suprême
Messages
100
Score réaction
2
Points
110
Salut j'essaye de mettre des armes a vendre pour le vendeur d'armes sauf que sa met une erreur
le code :
V--[[---------------------------------------------------------------------------
DarkRP custom shipments and guns
---------------------------------------------------------------------------

This file contains your custom shipments and guns.
This file should also contain shipments and guns from DarkRP that you edited.

Note: If you want to edit a default DarkRP shipment, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the shipment to this file and edit it.

The default shipments and guns can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua

For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields


Add shipments and guns under the following line:
---------------------------------------------------------------------------]]
DarkRP.createShipment("AK47", {
model = "models/weapons/w_tct_ak47.mdl",
entity = "m9k_ak47",
price = 2500,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})

DarkRP.createShipment("AN94", {
model = "models/weapons/w_rif_an_94.mdl",
entity = "m9k_an94",
price = 2500,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})

DarkRP.createShipment("AK47", {
model = "models/weapons/w_tct_ak47.mdl",
entity = "m9k_ak47",
price = 2500,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})

DarkRP.createShipment("FAMAS", {
model = "models/weapons/w_tct_famas.mdl",
entity = "m9k_famas",
price = 2900,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})

DarkRP.createShipment("AMD65", {
model = "models/weapons/w_amd_65.mdl",
entity = "m9k_amd65",
price = 2600,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})

DarkRP.createShipment("M4A1", {
model = "models/weapons/w_m4a1_iron.mdl",
entity = "m9k_m4a1",
price = 2800,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})

DarkRP.createShipment("M16A4", {
model = "models/weapons/w_dmg_m16ag.mdl",
entity = "m9k_m16a4_acog",
price = 2900,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})

DarkRP.createShipment("SCAR", {
model = "models/weapons/w_fn_scar_h.mdl",
entity = "m9k_scar",
price = 2800,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})

DarkRP.createShipment("HK416", {
model = "models/weapons/w_hk_416.mdl",
entity = "m9k_m416",
price = 2600,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})

DarkRP.createShipment("MOSSBERG590", {
model = "models/weapons/w_mossberg_590.mdl",
entity = "m9k_mossberg590",
price = 3400,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})

DarkRP.createShipment("REMINGTON870", {
model = "models/weapons/w_remington_7615p.mdl",
entity = "m9k_remington870",
price = 3500,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})

DarkRP.createShipment("DEAGLE", {
model = "models/weapons/})w_tcom_deagle.mdl",
entity = "m9k_deagle",
price = 1000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})

l'erreur :
There is 1 Lua problem!
Please check your console for more information!
[ERROR] Lua is unable to understand file "darkrp_customthings/shipments.lua" because its author made a mistake around line number 20.
The best help I can give you is this:

Right before the 'DarkRP', Lua expected to read an '='-sign, but it didn't.

Hints:
- Did you simply forget the '='-sign?
- Did you forget a comma?
- Is this supposed to be a local variable?

------- End of Simplerr error -------

[DarkRP] There is 1 Lua problem!
Please check your console for more information!
 
K

Kii

Geek
Messages
7
Score réaction
0
Points
65
Bonjour , ton erreur se trouve ligne 20 d'après la console , télécharge ton fichier et ouvre le avec notepad++, regarde la ligne 20 . Si tu trouves pas envoi nous à quoi elle correspond, perso j'ai regardé sur notepad et je tombe sur - DarkRP.createShipment("AK47", { - et perso je vois pas où est l'erreur donc ça doit pas être la bonne ligne .
 
Boumi

Boumi

Bambi
Messages
21
Score réaction
0
Points
40
Mec si tu mets deux fois la Ak47 ...
 
Hiro Tustaku

Hiro Tustaku

Geek
Messages
76
Score réaction
6
Points
95
Tu a mis 2 fois AK 47
 
RayZz

RayZz

Geek suprême
Messages
565
Score réaction
77
Points
140
Hiro Tustaku à dit:
Tu a mis 2 fois AK 47

Bonsoir,

Tu as la capacité intellectuelle de regarder la date du poste ou c'est pas possible ?
 
Discord d'entraide
Rejoignz-nous sur Discord