Discord + +Copyright (C) 2022-2024 bitpredator + +This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version. + +This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details. + +ATTENTION: +You are not authorized to change the name of the resource and the resources within it. + +If you want to contribute you can open a pull request. + +You are not authorized to sell this software (this is free project). + +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. \ No newline at end of file diff --git a/server-data/resources/[bpt_addons]/bpt_vehicletax/config.lua b/server-data/resources/[bpt_addons]/bpt_vehicletax/config.lua index 5c84a75a4..5290495dd 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 = 'it' +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 535f04fed..c5c8cdbfb 100644 --- a/server-data/resources/[bpt_addons]/bpt_vehicletax/fxmanifest.lua +++ b/server-data/resources/[bpt_addons]/bpt_vehicletax/fxmanifest.lua @@ -2,7 +2,7 @@ fx_version 'adamant' game 'gta5' description 'property tax' author 'bitpredator' -version '0.0.4' +version '1.0.0' shared_script '@es_extended/imports.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 new file mode 100644 index 000000000..7d2435fdc --- /dev/null +++ b/server-data/resources/[bpt_addons]/bpt_vehicletax/locales/en.lua @@ -0,0 +1,3 @@ +Locales['en'] = { + ['vehicle_tax'] = 'vehicle tax' +} \ No newline at end of file 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 fa1a8f603..2613800e3 100644 --- a/server-data/resources/[bpt_addons]/bpt_vehicletax/server/server.lua +++ b/server-data/resources/[bpt_addons]/bpt_vehicletax/server/server.lua @@ -1,9 +1,9 @@ local vehicleprices = {} local percentage = 1 ESX = exports["es_extended"]:getSharedObject() + MySQL.ready(function() 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})