- Initiateur de la discussion
Peter Pondic
Aeltuar
- Messages
- 143
- Score réaction
- 24
- Points
- 130
Bonjour , j'ai un problème avec le car dealer de @slownls , effectivement lorsque je ne l'avais point configuré avec seulement les 2 véhicules des bases (Les 2 véhicules Half-Life) , j'ai ajouter tous mes véhicules dans le fichier config , et une erreur apparaît lorsque j'utilise l'arme pour faire spawn le concessionaire :
17/03/2019 19:36:22: Lua Error:[ERROR] addons/car_dealer/lua/weapons/car_dealer_weapon/shared.lua:64: attempt to index global 'CarDealer' (a nil value)1. unknown - addons/car_dealer/lua/weapons/car_dealer_weapon/shared.lua:64[ERROR] addons/car_dealer/lua/weapons/car_dealer_weapon/shared.lua:64: attempt to index global 'CarDealer' (a nil value)1. unknown - addons/car_dealer/lua/weapons/car_dealer_weapon/shared.lua:64
Voici l'intégralité du fichier config :
J'espère que vous allez pouvoir m'aider
17/03/2019 19:36:22: Lua Error:[ERROR] addons/car_dealer/lua/weapons/car_dealer_weapon/shared.lua:64: attempt to index global 'CarDealer' (a nil value)1. unknown - addons/car_dealer/lua/weapons/car_dealer_weapon/shared.lua:64[ERROR] addons/car_dealer/lua/weapons/car_dealer_weapon/shared.lua:64: attempt to index global 'CarDealer' (a nil value)1. unknown - addons/car_dealer/lua/weapons/car_dealer_weapon/shared.lua:64
Voici l'intégralité du fichier config :
Code:
CarDealer = {}
CarDealer.Config = {}
CarDealer.Vehicles = {}
CarDealer.Languages = {}
CarDealer.Config.Language = "fr"
CarDealer.Config.AdminGroups = { ['superadmin'] = true,
}
--[[------------------------------------------------------------------------- Vehicles
---------------------------------------------------------------------------]]
CarDealer.Vehicles[ "dk_rtwizy" ] = { Price = 1000, NPC = 1,
}
CarDealer.Vehicles[ "dodge_charger_70_fnf_lw" ] = { Price = 4000, NPC = 3,
}
CarDealer.Vehicles[ "dk_bwmi3" ] = { Price = 4000, NPC = 3,
}
CarDealer.Vehicles[ "crsk_subaru_wrx_sti_2015" ] = { Price = 4000, NPC = 3,
}
CarDealer.Vehicles[ "crsk_lambo_centenario" ] = { Price = 6000, NPC = 3,
}
CarDealer.Vehicles[ "sky_r8_ico" ] = { Price = 5500, NPC = 3,
}
CarDealer.Vehicles[ "sky_bugattichiron_ico" ] = { Price = 25000, NPC = 3,
}
CarDealer.Vehicles[ "sw_gokart" ] = { Price = 560, NPC = 3,
}
CarDealer.Vehicles[ "crsk_peugeot_206rc_2003" ] = { Price = 1200 NPC = 3,
}
CarDealer.Vehicles[ "sky_m5f90_ico" ] = { Price = 4000 NPC = 3,
}
CarDealer.Vehicles[ "sky_boxster_ico" ] = { Price = 8000 NPC = 3,
}
CarDealer.Vehicles[ "crsk_ferrari_812superfast_2017" ] = { Price = 8000 NPC = 3,
}
CarDealer.Vehicles[ "crsk_mercedes_gl63_amg_2013" ] = { Price = 3000 NPC = 3,
}
CarDealer.Vehicles[ "crsk_mercedes_e63amg_w212_face" ] = { Price = 1200 NPC = 3,
}
CarDealer.Vehicles[ "crsk_cadillac_cts-v_2016" ] = { Price = 1200 NPC = 3,
}
CarDealer.Vehicles[ "crsk_mercedes_e63amg_w212_face" ] = { Price = 4000 NPC = 3,
}
CarDealer.Vehicles[ "azok30_citroen_berlingo_2017" ] = { Price = 5800 NPC = 1,
}
CarDealer.Vehicles[ "azok30_peugeot_508_gt_2019" ] = { Price = 12000 NPC = 1,
}
CarDealer.Vehicles[ "azok30_renault_megane_4_sedan" ] = { Price = 12000 NPC = 1,
}
CarDealer.Vehicles[ "crsk_alfa_giulia_quadrifoglio_2017" ] = { Price = 22000 NPC = 1,
}
CarDealer.Vehicles[ "crsk_audi_rs6_avant_2016" ] = { Price = 22000 NPC = 1,
}
CarDealer.Vehicles[ "crsk_bmw_i8" ] = { Price = 16500 NPC = 1,
}
CarDealer.Vehicles[ "crsk_dodge_challenger_hellcat_2015" ] = { Price = 26000 NPC = 1,
}
CarDealer.Vehicles[ "crsk_ford_focus_mk3_2012" ] = { Price = 19800 NPC = 1,
}
CarDealer.Vehicles[ "crsk_ferrari_812superfast_2017" ] = { Price = 88000 NPC = 1,
}
CarDealer.Vehicles[ "crsk_lambo_centenario" ] = { Price = 90000 NPC = 1,
}
CarDealer.Vehicles[ "crsk_maserati_alfieri_concept" ] = { Price = 45000 NPC = 1,
}
CarDealer.Vehicles[ "crsk_mercedes_560sel" ] = { Price = 28000 NPC = 1,
}
CarDealer.Vehicles[ "crsk_mercedes_c63s_coupe_2016" ] = { Price = 22000 NPC = 1,
}
CarDealer.Vehicles[ "crsk_mercedes_g500_2008" ] = { Price = 16000 NPC = 1,
}
CarDealer.Vehicles[ "crsk_mercedes_gl63_amg_2013" ] = { Price = 16000 NPC = 1,
}
CarDealer.Vehicles[ "crsk_nissan_370z_2016" ] = { Price = 22000 NPC = 1,
}
CarDealer.Vehicles[ "crsk_peugeot_206rc_2003" ] = { Price = 8500 NPC = 1,
}
CarDealer.Vehicles[ "crsk_seat_leon_cupra_r_2003" ] = { Price = 8750 NPC = 1,
}
CarDealer.Vehicles[ "crsk_volvo_xc90_t8_2015" ] = { Price = 15000 NPC = 1,
}
CarDealer.Vehicles[ "crsk_mercedes_vito_panel_2014" ] = { Price = 9200 NPC = 1,
}
CarDealer.Vehicles[ "cad_eldorado" ] = { Price = 36200 NPC = 1,
}
CarDealer.Vehicles[ "r4_458s" ] = { Price = 95000 NPC = 1,
}
CarDealer.Vehicles[ "mercedes_a45" ] = { Price = 26800 NPC = 1,
}
CarDealer.Vehicles[ "rv" ] = { Price = 8600 NPC = 1,
}
CarDealer.Vehicles[ "crsk_paz_3205" ] = { Price = 8650 NPC = 1,
}
CarDealer.Vehicles[ "sw_gokart" ] = { Price = 1600 NPC = 1,
}
CarDealer.Vehicles[ "sky_mini03_ico" ] = { Price = 8700 NPC = 1,
}
CarDealer.Vehicles[ "volc30_ico" ] = { Price = 6350 NPC = 1,
}
CarDealer.Vehicles[ "sky_r8_ico" ] = { Price = 8650 NPC = 1,
}
CarDealer.Vehicles[ "sky_bugattichiron_ico" ] = { Price = 92000, NPC = 1,
}
CarDealer.Vehicles[ "sky_m5f90_ico" ] = { Price = 78560 NPC = 1,
}
CarDealer.Vehicles[ "sky_boxster_ico" ] = { Price = 88000 NPC = 1,
}
CarDealer.Vehicles[ "crsk_cadillac_cts-v_2016" ] = { Price = 72000 NPC = 1,
}
CarDealer.Vehicles[ "crsk_ford_focus_mk3_2012_police" ] = { Price = 1 NPC = 2,
}
CarDealer.Vehicles[ "Honda CBR Gendarmerie" ] = { Price = 1 NPC = 2,
}
CarDealer.Vehicles[ "volvo_s60_pol" ] = { Price = 1 NPC = 2,
}
CarDealer.Vehicles[ "Toyota Prius Gendarmerie" ] = { Price = 1 NPC = 2,
}
CarDealer.Vehicles[ "perryn_fiat_ducato" ] = { Price 1 NPC = 2,
}
CarDealer.Vehicles[ "police3gtav" ] = { Price 1 NPC = 2,
}
CarDealer.Vehicles[ "bustdm" ] = { Price 16300 NPC = 1,
}
--[[------------------------------------------------------------------------- Languages
---------------------------------------------------------------------------]]
CarDealer.Languages[ 'fr' ] = { [ "EnterNPCID" ] = "Entrer l'ID de votre npc...", [ "SetSpawn" ] = "Définir le spawn", [ "EnterNPCName" ] = "Entrer le nom du npc...", [ "Save" ] = "Sauvegarder", [ "Delete" ] = "Supprimer", [ "Store" ] = "Magasin", [ "Garage" ] = "Garage", [ "Buy" ] = "Acheter", [ "Sell" ] = "Vendre", [ "NoMoney" ] = "Vous n'avez pas assez d'argent.", [ "AlreadyVehicle" ] = "Vous avez déjà ce véhicule.", [ "PurchasedVehicle" ] = "Vous avez acheter ce véhicule.", [ "NPCNotExist" ] = "Le NPC n'existe pas.", [ "NoSpawnSet" ] = "Aucun spawn à été définie."
}
CarDealer.Languages[ 'en' ] = { [ "EnterNPCID" ] = "Enter the ID of your npc...", [ "SetSpawn" ] = "Set Spawn", [ "EnterNPCName" ] = "Enter NPC name...", [ "Save" ] = "Save", [ "Delete" ] = "Delete", [ "Store" ] = "Store", [ "Garage" ] = "Garage", [ "Buy" ] = "Buy", [ "Sell" ] = "Sell", [ "NoMoney" ] = "You do not have enough money.", [ "AlreadyVehicle" ] = "You already have this vehicle.", [ "PurchasedVehicle" ] = "You bought this vehicle.", [ "NPCNotExist" ] = "The npc does not exist.", [ "NoSpawnSet" ] = "No spawn set.",
}