- Initiateur de la discussion
Max | FantasiaCityRP
Geek
- Messages
- 43
- Score réaction
- 2
- Points
- 45
Bonsoir,
Je n'arrive pas à résoudre cette erreur:
Pouvez vous m'aidez à la résoudre s'il vous plait...
Mon fichier Shipments.lua (la ligne 15 est après PISTOLS):
Je n'arrive pas à résoudre cette erreur:
Code:
[ERROR] Lua is unable to understand file "darkrp_customthings/shipments.lua" because its author made a mistake around line number 15.
The best help I can give you is this: Right before the '=', Lua expected to read a ')', but it didn't.
Hints:
- Did you forget a keyword?
- Did you forget a comma?
------- End of Simplerr error -------
Mon fichier Shipments.lua (la ligne 15 est après PISTOLS):
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:
---------------------------------------------------------------------------]]
AddCustomShipment("Python", "models/weapons/w_colt_python.mdl", "m9k_coltpython", 2500, 10, false, 0, false, category = "Pistols", {TEAM_GUN})
AddCustomShipment("Python Single", "models/weapons/w_colt_python.mdl", "m9k_coltpython", 500, 1, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("Colt 1911", "models/weapons/s_dmgf_co1911.mdl", "m9k_colt1911", 1200, 10, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("Colt 1911 Single", "models/weapons/s_dmgf_co1911.mdl", "m9k_colt1911", 150, 1, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("HK 45C", "models/weapons/w_hk45c.mdl", "m9k_hk45", 1500, 10, false, 0, false, category = "Pistols" {TEAM_GUN})
AddCustomShipment("HK 45C Single", "models/weapons/w_hk45c.mdl", "m9k_hk45", 200, 1, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("German Luger", "models/weapons/w_luger_p08.mdl", "m9k_luger", 1200, 10, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("German Luger Single", "models/weapons/w_luger_p08.mdl", "m9k_luger", 100, 1, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("Raging Bull", "models/weapons/w_hk45c.mdl", "m9k_ragingbull", 3000, 10, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("Raging Bull Single", "models/weapons/w_hk45c.mdl", "m9k_ragingbull", 600, 1, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("S&W 500", "models/weapons/w_sw_model_500.mdl", "m9k_model500", 2750, 10, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("S&W 500 Single", "models/weapons/w_sw_model_500.mdl", "m9k_model500", 550, 10, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("M29 Satan", "models/weapons/w_m29_satan.mdl", "m9k_m29satan", 3000, 10, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("M29 Satan Single", "models/weapons/w_m29_satan.mdl", "m9k_m29satan", 750, 1, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("M9 Baretta", "models/weapons/w_beretta_m92.mdl", "m9k_m92baretta", 1400, 10, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("M9 Baretta Single", "models/weapons/w_beretta_m92.mdl", "m9k_m92baretta", 200, 1, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("S&W Model 3 Russian", "models/weapons/w_model_3_rus.mdl", "m9k_model3russian", 3000, 10, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("S&W Model 3 Russian Single", "models/weapons/w_model_3_rus.mdl", "m9k_model3russian", 400, 1, false, 0, false, category = "Pistols" ,{TEAM_GUN})
AddCustomShipment("S&W 627", "models/weapons/w_sw_model_627.mdl", "m9k_model627", 3000, 10, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("S&W 627 Single", "models/weapons/w_sw_model_627.mdl", "m9k_model627", 425, 1, false, 0, false, category = "Pistols" , {TEAM_GUN})
AddCustomShipment("ACR-9", "models/weapons/w_masada_acr.mdl", "m9k_acr", 4000, 10, false, 0, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("ACR-9 Single", "models/weapons/w_masada_acr.mdl", "m9k_acr", 500, 1, false, 0, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("AMD 65", "models/weapons/w_amd_65.mdl", "m9k_amd65", 5000, 10, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("AMD 65 Single", "models/weapons/w_amd_65.mdl", "m9k_amd65", 600, 1, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("FN FAL", "models/weapons/w_fn_fal.mdl", "m9k_fal", 4000, 10, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("FN FAL Single", "models/weapons/w_fn_fal.mdl", "m9k_fal", 550, 1, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("M14", "models/weapons/w_snip_m14sp.mdl", "m9k_m14sp", 5000, 10, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("M14 Single", "models/weapons/w_snip_m14sp.mdl", "m9k_m14sp", 525, 1, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("M16 Scoped", "models/weapons/w_dmg_m16ag.mdl", "m9k_m16a4_acog", 5250, 10, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("M16 Scoped Single", "models/weapons/w_dmg_m16ag.mdl", "m9k_m16a4_acog", 575, 1, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("HK-16", "models/weapons/w_hk_416.mdl", "m9k_m416", 5000, 10, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("HK-16 Single", "models/weapons/w_hk_416.mdl", "m9k_m416", 550, 1, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("SCAR-27", "models/weapons/w_fn_scar_h.mdl", "m9k_scar", 6000, 10, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("Scar-27", "models/weapons/w_fn_scar_h.mdl", "m9k_scar", 725, 1, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("TAR-21", "models/weapons/w_imi_tar21.mdl", "m9k_tar21", 5000, 10, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("TAR-21" Single", "models/weapons/w_imi_tar21.mdl", "m9k_tar21", 525, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("FN Fal", "models/weapons/w_dmg_vally.mdl", "m9k_val", 5575, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("FN Fal Single", "models/weapons/w_dmg_vally.mdl", "m9k_val", 550, 1, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("SR-3M Vikhr", "models/weapons/w_dmg_vikhr.mdl", "m9k_vikhr", 5000, 10, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("SR-3M Vikhr Single", "models/weapons/w_dmg_vikhr.mdl", "m9k_vikhr", 450, 1, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("Winchester 73", "models/weapons/w_winchester_1873.mdl", "m9k_winchester73", 3500, 10, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("Winchester 73 Single", "models/weapons/w_winchester_1873.mdl", "m9k_winchester73", 400, 1, false, 123, false, : category = "Rifles" , {TEAM_GUN})
AddCustomShipment("1887 Winchester", "models/weapons/w_winchester_1887.mdl", "m9k_1887winchester", 4000, 10, false, 123, false, category = "Shotguns" ,
{TEAM_GUN})
AddCustomShipment("1887 Winchester Single", "models/weapons/w_winchester_1887.mdl", "m9k_1887winchester", 500, 1, false, 123, false, category = "Shotguns" , {TEAM_GUN})
AddCustomShipment("Double Barrel", "models/weapons/w_double_barrel_shotgun.mdl", "m9k_dbarrel", 2000, 10, false, 123, false, category = "Shotguns" , {TEAM_GUN})
AddCustomShipment("Double Barrel Single", "models/weapons/w_double_barrel_shotgun.mdl", "m9k_dbarrel", 100, 1, false, 123, false, category = "Shotguns" , {TEAM_GUN})
AddCustomShipment("Jack Hammer", "models/weapons/w_pancor_jackhammer.mdl", "m9k_jackhammer", 8000, 10, false, 123, false, category = "Shotguns" , {TEAM_GUN})
AddCustomShipment("Jack-Hammer Single", "models/weapons/w_pancor_jackhammer.mdl", "m9k_jackhammer", 1000, 1, false, 123, false, category = "Shotguns" , {TEAM_GUN})
AddCustomShipment("Benelli M3", "models/weapons/w_benelli_m3.mdl", "m9k_m3", 4500, 10, false, 123, false, category = "Shotguns" , {TEAM_GUN})
AddCustomShipment("Benelli M3 Single", "models/weapons/w_benelli_m3.mdl", "m9k_m3", 500, 1, false, 123, false, category = "Shotguns" , {TEAM_GUN})
AddCustomShipment("Ithaca M37", "models/weapons/w_ithaca_m37.mdl", "m9k_ithacam37", 3000, 10, false, 123, false, category = "Shotguns" , {TEAM_GUN})
AddCustomShipment("Ithaca M37 Single", "models/weapons/w_ithaca_m37.mdl", "m9k_ithacam37", 400, 10, false, 123, false, category = "Shotguns" , {TEAM_GUN})
AddCustomShipment("Mossberg", "models/weapons/w_mossberg_590.mdl", "m9k_mossberg590", 3000, 10, false, 123, false, category = "Shotguns" , {TEAM_GUN})
AddCustomShipment("Mossberg Single", "models/weapons/w_mossberg_590.mdl", "m9k_mossberg590", 400, 1, false, 123, false, category = "Shotguns" , {TEAM_GUN})
AddCustomShipment("Remington 870", "models/weapons/w_remington_870_tact.mdl", "m9k_remington870", 2500, 10, false, 123, false, category = "Shotguns" , {TEAM_GUN})
AddCustomShipment("Remington 870 Single", "models/weapons/w_remington_870_tact.mdl", "m9k_remington870", 300, 1, false, 123, false, category = "Shotguns" , {TEAM_GUN})
AddCustomShipment("1897 Winchester", "models/weapons/w_winchester_1897_trench.mdl", "m9k_1897winchester", 4000, 10, false, 123, false, category = "Shotguns" , {TEAM_GUN})
AddCustomShipment("1897 Winchester Single", "models/weapons/w_winchester_1897_trench.mdl", "m9k_1897winchester", 425, 1, false, 123, false, category = "Shotguns" , {TEAM_GUN})
AddCustomShipment("Barret M82", "models/weapons/w_barret_m82.mdl", "m9k_barret_m82", 10000, 10, false, 123, false, {TEAM_BLACK})
AddCustomShipment("Barret M82 Single", "models/weapons/w_barret_m82.mdl", "m9k_barret_m82", 1250, 1, false, 123, false, {TEAM_BLACK})
AddCustomShipment("Barret M98B", "models/weapons/w_barrett_m98b.mdl", "m9k_m98b", 11000, 10, false, 0, false, {TEAM_BLACK})
AddCustomShipment("Barret M98B Single", "models/weapons/w_barrett_m98b.mdl", "m9k_m98b", 1200, 1, false, 0, false, {TEAM_BLACK})
AddCustomShipment("SVT 40", "models/weapons/w_svt_40.mdl", "m9k_svt40", 5000, 10, false, 0, false, {TEAM_BLACK})
AddCustomShipment("SVT 40 Single", "models/weapons/w_svt_40.mdl", "m9k_svt40", 600, 1, false, 0, false, {TEAM_BLACK})
AddCustomShipment("Dragunov SVU", "models/weapons/w_dragunov_svu.mdl", "m9k_svu", 8000, 10, false, 0, false, {TEAM_BLACK})
AddCustomShipment("Dragunov SVU Single", "models/weapons/w_dragunov_svu.mdl", "m9k_svu", 900, 1, false, 0, false, {TEAM_BLACK})
AddCustomShipment("SVD Dragunov", "models/weapons/w_svd_dragunov.mdl", "m9k_dragunov", 8500, 10, false, 123, false, {TEAM_BLACK})
AddCustomShipment("SVD Dragunov Single", "models/weapons/w_svd_dragunov.mdl", "m9k_dragunov", 950, 1, false, 123, false, {TEAM_BLACK})
AddCustomShipment("Intervention", "models/weapons/w_snp_int.mdl", "m9k_intervention", 12500, 10, false, 0, false, {TEAM_BLACK})
AddCustomShipment("Intervention Single", "models/weapons/w_snp_int.mdl", "m9k_intervention", 1500, 1, false, 0, false, {TEAM_BLACK})
AddCustomShipment("PSG-1", "models/weapons/w_hk_psg1.mdl", "m9k_psg1", 7000, 10, false, 0, false, {TEAM_BLACK})
AddCustomShipment("PSG-1 Single", "models/weapons/w_hk_psg1.mdl", "m9k_psg1", 800, 1, false, 0, false, {TEAM_BLACK})
AddCustomShipment("AW 50", "models/weapons/w_acc_int_aw50.mdl", "m9k_aw50", 10000, 10, false, 123, false, {TEAM_BLACK})
AddCustomShipment("AW 50 Single", "models/weapons/w_acc_int_aw50.mdl", "m9k_aw50", 1200, 1, false, 123, false, {TEAM_BLACK})
AddCustomShipment("l-M24-l", "models/weapons/w_snip_m24_6.mdl", "m9k_m24", 7000, 10, false, 123, false, {TEAM_BLACK})
AddCustomShipment("M24 Single", "models/weapons/w_snip_m24_6.mdl", "m9k_m24", 775, 1, false, 123, false, {TEAM_BLACK})
AddCustomShipment("Remington 7615P", "models/weapons/w_remington_7615p.mdl", "m9k_remington7615p", 8000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("Remington 7615P Single", "models/weapons/w_remington_7615p.mdl", "m9k_remington7615p", 900, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("Thompson Condender", "models/weapons/w_g2_contender.mdl", "m9k_contender", 5000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("Thompson Condender Single", "models/weapons/w_g2_contender.mdl", "m9k_contender", 600, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_BLACK})
AddCustomShipment("AWP Single", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 800, 1, false, 0, false, {TEAM_BLACK})
AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_BLACK})
AddCustomShipment("Scout Single", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 600, 1, false, 0, false, {TEAM_BLACK})
AddCustomShipment("FG42", "models/weapons/w_fg42.mdl", "m9k_fg42", 5000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("FG42 Single", "models/weapons/w_fg42.mdl", "m9k_fg42", 550, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("M60", "models/weapons/w_m60_machine_gun.mdl", "m9k_m60", 20000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("M60 Single", "models/weapons/w_m60_machine_gun.mdl", "m9k_m60", 5000, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
AddCustomShipment("M249 Single", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 800, 1, false, 0, false, {TEAM_GUN})