diff --git a/server-data/resources/[esx_addons]/esx_contract/client/main.lua b/server-data/resources/[esx_addons]/esx_contract/client/main.lua index 04ae2ecc..97ac0a8d 100644 --- a/server-data/resources/[esx_addons]/esx_contract/client/main.lua +++ b/server-data/resources/[esx_addons]/esx_contract/client/main.lua @@ -1,3 +1,4 @@ +---@diagnostic disable: undefined-global ESX = exports["es_extended"]:getSharedObject() RegisterNetEvent("esx_contract:getVehicle") diff --git a/server-data/resources/[esx_addons]/esx_contract/config.lua b/server-data/resources/[esx_addons]/esx_contract/config.lua index 28e2e71b..ee998572 100644 --- a/server-data/resources/[esx_addons]/esx_contract/config.lua +++ b/server-data/resources/[esx_addons]/esx_contract/config.lua @@ -1,3 +1,3 @@ Config = {} -Config.Locale = "en" +Config.Locale = "it" diff --git a/server-data/resources/[esx_addons]/esx_contract/locales/it.lua b/server-data/resources/[esx_addons]/esx_contract/locales/it.lua new file mode 100644 index 00000000..e09bbd58 --- /dev/null +++ b/server-data/resources/[esx_addons]/esx_contract/locales/it.lua @@ -0,0 +1,8 @@ +Locales["it"] = { + ["writingcontract"] = "Contratto per la seguente targa: %s", + ["soldvehicle"] = "Hai venduto il veicolo con il numero di targa ~r~%s~s~", + ["boughtvehicle"] = "Hai acquistato il veicolo con il numero di targa ~g~%s~s~", + ["notyourcar"] = "Questo veicolo non è tuo", + ["nonearby"] = "Nessun veicolo nelle vicinanze", + ["nonearbybuyer"] = "Nessun acquirente nelle vicinanze", +} diff --git a/server-data/resources/[esx_addons]/esx_contract/locales/tr.lua b/server-data/resources/[esx_addons]/esx_contract/locales/tr.lua index 1b355472..d1f37c6d 100644 --- a/server-data/resources/[esx_addons]/esx_contract/locales/tr.lua +++ b/server-data/resources/[esx_addons]/esx_contract/locales/tr.lua @@ -1,4 +1,4 @@ -Locales["en"] = { +Locales["tr"] = { ["writingcontract"] = "%s plakası için kontrat yazılıyor.", ["soldvehicle"] = "Aracı sicil numarasıyla sattınız. ~r~%s~s~", ["boughtvehicle"] = "Aracı sicil numarasıyla satın aldınız. ~g~%s~s~", diff --git a/server-data/resources/[esx_addons]/esx_contract/server/main.lua b/server-data/resources/[esx_addons]/esx_contract/server/main.lua index 4325a7a7..fe1b2354 100644 --- a/server-data/resources/[esx_addons]/esx_contract/server/main.lua +++ b/server-data/resources/[esx_addons]/esx_contract/server/main.lua @@ -1,3 +1,4 @@ +---@diagnostic disable: undefined-global ESX = exports["es_extended"]:getSharedObject() RegisterServerEvent("esx_clothes:sellVehicle") @@ -33,6 +34,6 @@ end) ESX.RegisterUsableItem("contract", function(source) local _source = source - local xPlayer = ESX.GetPlayerFromId(_source) + local _ = ESX.GetPlayerFromId(_source) TriggerClientEvent("esx_contract:getVehicle", _source) end)