Skip to content

Commit

Permalink
Merge pull request #604 from bitpredator/dev
Browse files Browse the repository at this point in the history
chore: bpt_vehicletax update to version 1.0.0
  • Loading branch information
bitpredator authored Jan 12, 2024
2 parents 6e15d3f + 8d73cdf commit ed2ff76
Show file tree
Hide file tree
Showing 7 changed files with 701 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,5 @@ fix lint error: unused argument last; accessing undefined variable Invoke; unuse
65. [bpt_streetfight]: chore: supports map point through local translation @bitpredator
67. [bpt_teleport]: chore: set English as the default language @bitpredator
68. [bpt_teleport]: chore: update the license file and readme for the year 2024 @bitpredator
69. [bpt_unicornjob]: refactor: bpt_unicornjob inventory implementation @bitpredator
69. [bpt_unicornjob]: refactor: bpt_unicornjob inventory implementation @bitpredator
70. [bpt_vehicletax]: chore: bpt_vehicletax update to version 1.0.0 @bitpredator
674 changes: 674 additions & 0 deletions server-data/resources/[bpt_addons]/bpt_vehicletax/LICENSE

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions server-data/resources/[bpt_addons]/bpt_vehicletax/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<h1 align='center'>bpt_vehicletax</a></h1>
<p align='center'><a href='https://discord.gg/ksGfNvDEfq'>Discord</a>

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/.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Config = {}
Config.Locale = 'it'
Config.Locale = 'en'
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Locales['en'] = {
['vehicle_tax'] = 'vehicle tax'
}
Original file line number Diff line number Diff line change
@@ -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})
Expand Down

0 comments on commit ed2ff76

Please sign in to comment.