- Initiateur de la discussion
B
BlueGeek
Nouveau né
- Messages
- 7
- Score réaction
- 0
- Points
- 15
Bonjour j'ai un probleme apparament j'ai une erreur dans le code du shipment.lua voici l'erreur
[ERROR] Lua is unable to understand file "darkrp_customthings/shipments.lua" because its author made a mistake around line number 149.
The best help I can give you is this:
Right before the 'end of the file', Lua encountered something it could not make sense of.
Hints:
- Did you forget something here? (Perhaps a closing bracket)
- Is it a typo?
------- End of Simplerr error -------
et le code :
Merci d'avance pour votre aide
[ERROR] Lua is unable to understand file "darkrp_customthings/shipments.lua" because its author made a mistake around line number 149.
The best help I can give you is this:
Right before the 'end of the file', Lua encountered something it could not make sense of.
Hints:
- Did you forget something here? (Perhaps a closing bracket)
- Is it a typo?
------- End of Simplerr error -------
et le code :
Code:
--[[---------------------------------------------------------------------------
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("HK 416", { model = "models/weapons/w_hk_416.mdl", entity = "m9k_m416", price = 2300, // Price for a shipment amount = 10, // How many in a shipment separate = true, pricesep = 100, // Price of individual guns noship = false, allowed = {TEAM_GUN}, // Allowed teams })
DarkRP.createShipment("SCAR", { model = "models/weapons/w_fn_scar_h.mdl", entity = "m9k_scar", price = 2500, // Price for a shipment amount = 10, // How many in a shipment separate = true, pricesep = 100, // Price of individual guns noship = false, allowed = {TEAM_GUN}, // Allowed teams })
DarkRP.createShipment("M4A1 Iron", { model = "models/weapons/w_m4a1_iron.mdl", entity = "m9k_m4a1", price = 2000, // Price for a shipment amount = 10, // How many in a shipment separate = true, pricesep = 100, // Price of individual guns noship = false, allowed = {TEAM_GUN}, // Allowed teams })
DarkRP.createShipment("TAR-21", { model = "models/weapons/w_imi_tar21.mdl", entity = "m9k_tar21", price = 1900, // Price for a shipment amount = 10, // How many in a shipment separate = true, pricesep = 100, // Price of individual guns noship = false, allowed = {TEAM_GUN}, // Allowed teams })
DarkRP.createShipment("Colt 1911", { model = "models/weapons/s_dmgf_co1911.mdl", entity = "m9k_colt1911", price = 1200, // Price for a shipment amount = 10, // How many in a shipment separate = true, pricesep = 100, // Price of individual guns noship = false, allowed = {TEAM_GUN}, // Allowed teams })
DarkRP.createShipment("HK45C", { model = "models/weapons/w_hk45c.mdl", entity = "m9k_hk45", price = 1650, // Price for a shipment amount = 10, // How many in a shipment separate = true, pricesep = 100, // Price of individual guns noship = false, allowed = {TEAM_GUN}, // Allowed teams })
DarkRP.createShipment("Glock 18", { model = "models/weapons/w_dmg_glock.mdl", entity = "m9k_glock", price = 1100, // Price for a shipment amount = 10, // How many in a shipment separate = true, pricesep = 100, // Price of individual guns noship = false, allowed = {TEAM_GUN}, // Allowed teams })
DarkRP.createShipment("Desert Eagle", { model = "models/weapons/w_tcom_deagle.mdl", entity = "m9k_deagle", price = 2100, // Price for a shipment amount = 10, // How many in a shipment separate = true, pricesep = 100, // Price of individual guns noship = false, allowed = {TEAM_GUN}, // Allowed teams })
DarkRP.createShipment("Benelli M3", { model = "models/weapons/w_benelli_m3.mdl", entity = "m9k_m3", price = 3000, // Price for a shipment amount = 10, // How many in a shipment separate = true, pricesep = 100, // Price of individual guns noship = false, allowed = {TEAM_GUN}, // Allowed teams })
DarkRP.createShipment("Remington 870", { model = "models/weapons/w_remington_870_tact.mdl", entity = "m9k_remington870", price = 2400, // Price for a shipment amount = 10, // How many in a shipment separate = true, pricesep = 100, // Price of individual guns noship = false, allowed = {TEAM_GUN}, // Allowed teams })
DarkRP.createShipment("AI AW50", { model = "models/weapons/w_acc_int_aw50.mdl", entity = "m9k_aw50", price = 3850, // Price for a shipment amount = 10, // How many in a shipment separate = true, pricesep = 100, // Price of individual guns noship = false, allowed = {TEAM_GUN}, // Allowed teams })
DarkRP.createShipment("M249 LMG", { model = "models/weapons/w_m249_machine_gun.mdl", entity = "m9k_m249lmg", price = 3000, // Price for a shipment amount = 10, // How many in a shipment separate = true, pricesep = 100, // Price of individual guns noship = false, allowed = {TEAM_GUN}, // Allowed teams })
DarkRP.createShipment("MP5SD", { model = "models/weapons/w_hk_mp5sd.mdl", entity = "m9k_mp5sd", price = 3200, // Price for a shipment amount = 10, // How many in a shipment separate = true, pricesep = 100, // Price of individual guns noship = false, allowed = {TEAM_GUN}, // Allowed teams })