- 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!
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!