Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bpt_vehicletax update to version 1.0.0 #604

Merged
merged 7 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading