From 5b330a00d90065395bf282d8abf448dba0551b9c Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Thu, 1 Feb 2024 17:42:58 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Run=20formatter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../[bpt_addons]/bpt_vehicletax/config.lua | 2 +- .../bpt_vehicletax/fxmanifest.lua | 24 +++++++++---------- .../bpt_vehicletax/locales/en.lua | 6 ++--- .../bpt_vehicletax/locales/it.lua | 6 ++--- .../bpt_vehicletax/server/server.lua | 12 +++++----- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/server-data/resources/[bpt_addons]/bpt_vehicletax/config.lua b/server-data/resources/[bpt_addons]/bpt_vehicletax/config.lua index 5290495dd..adb7fc406 100644 --- a/server-data/resources/[bpt_addons]/bpt_vehicletax/config.lua +++ b/server-data/resources/[bpt_addons]/bpt_vehicletax/config.lua @@ -1,2 +1,2 @@ Config = {} -Config.Locale = 'en' +Config.Locale = "en" diff --git a/server-data/resources/[bpt_addons]/bpt_vehicletax/fxmanifest.lua b/server-data/resources/[bpt_addons]/bpt_vehicletax/fxmanifest.lua index c5c8cdbfb..ea57fa432 100644 --- a/server-data/resources/[bpt_addons]/bpt_vehicletax/fxmanifest.lua +++ b/server-data/resources/[bpt_addons]/bpt_vehicletax/fxmanifest.lua @@ -1,14 +1,14 @@ -fx_version 'adamant' -game 'gta5' -description 'property tax' -author 'bitpredator' -version '1.0.0' +fx_version("adamant") +game("gta5") +description("property tax") +author("bitpredator") +version("1.0.0") -shared_script '@es_extended/imports.lua' +shared_script("@es_extended/imports.lua") -server_scripts { - '@es_extended/locale.lua', - '@oxmysql/lib/MySQL.lua', - 'locales/*.lua', - 'server/server.lua' -} \ No newline at end of file +server_scripts({ + "@es_extended/locale.lua", + "@oxmysql/lib/MySQL.lua", + "locales/*.lua", + "server/server.lua", +}) diff --git a/server-data/resources/[bpt_addons]/bpt_vehicletax/locales/en.lua b/server-data/resources/[bpt_addons]/bpt_vehicletax/locales/en.lua index 7d2435fdc..aca9e3f14 100644 --- a/server-data/resources/[bpt_addons]/bpt_vehicletax/locales/en.lua +++ b/server-data/resources/[bpt_addons]/bpt_vehicletax/locales/en.lua @@ -1,3 +1,3 @@ -Locales['en'] = { - ['vehicle_tax'] = 'vehicle tax' -} \ No newline at end of file +Locales["en"] = { + ["vehicle_tax"] = "vehicle tax", +} diff --git a/server-data/resources/[bpt_addons]/bpt_vehicletax/locales/it.lua b/server-data/resources/[bpt_addons]/bpt_vehicletax/locales/it.lua index 97208dd4c..5c464f69f 100644 --- a/server-data/resources/[bpt_addons]/bpt_vehicletax/locales/it.lua +++ b/server-data/resources/[bpt_addons]/bpt_vehicletax/locales/it.lua @@ -1,3 +1,3 @@ -Locales['it'] = { - ['vehicle_tax'] = 'tassa sui veicoli' -} \ No newline at end of file +Locales["it"] = { + ["vehicle_tax"] = "tassa sui veicoli", +} diff --git a/server-data/resources/[bpt_addons]/bpt_vehicletax/server/server.lua b/server-data/resources/[bpt_addons]/bpt_vehicletax/server/server.lua index 2613800e3..743ecf692 100644 --- a/server-data/resources/[bpt_addons]/bpt_vehicletax/server/server.lua +++ b/server-data/resources/[bpt_addons]/bpt_vehicletax/server/server.lua @@ -3,10 +3,10 @@ local percentage = 1 ESX = exports["es_extended"]:getSharedObject() MySQL.ready(function() - local result = MySQL.Sync.fetchAll('SELECT * FROM vehicles') + local result = MySQL.Sync.fetchAll("SELECT * FROM vehicles") for i = 1, #result, 1 do if vehicleprices[(GetHashKey(result[i].model))] == nil then - table.insert(vehicleprices, {model = GetHashKey(result[i].model), price = result[i].price}) + table.insert(vehicleprices, { model = GetHashKey(result[i].model), price = result[i].price }) end end end) @@ -24,12 +24,12 @@ function Tax() local xPlayer = ESX.GetPlayerFromId(xPlayers[j]) if xPlayer.identifier == result[i].owner then - local model = (json.decode(result[i].vehicle).model) + local model = json.decode(result[i].vehicle).model for m = 1, #vehicleprices, 1 do if vehicleprices[m].model == model then - TriggerEvent('esx_billing:sendBill', xPlayer[j], 'society_cardealer', _U('vehicle_tax')..result[i].plate, ((vehicleprices[m].price * percentage) / 100),1) - break + TriggerEvent("esx_billing:sendBill", xPlayer[j], "society_cardealer", _U("vehicle_tax") .. result[i].plate, ((vehicleprices[m].price * percentage) / 100), 1) + break end end end @@ -40,4 +40,4 @@ function Tax() end TriggerEvent("cron", 24, 0, Tax) -TriggerEvent("cron:runAt", 18, 6, Tax) \ No newline at end of file +TriggerEvent("cron:runAt", 18, 6, Tax)