Skip to content

Commit

Permalink
🎨 Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Feb 1, 2024
1 parent c48f619 commit 5b330a0
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Config = {}
Config.Locale = 'en'
Config.Locale = "en"
24 changes: 12 additions & 12 deletions server-data/resources/[bpt_addons]/bpt_vehicletax/fxmanifest.lua
Original file line number Diff line number Diff line change
@@ -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'
}
server_scripts({
"@es_extended/locale.lua",
"@oxmysql/lib/MySQL.lua",
"locales/*.lua",
"server/server.lua",
})
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Locales['en'] = {
['vehicle_tax'] = 'vehicle tax'
}
Locales["en"] = {
["vehicle_tax"] = "vehicle tax",
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Locales['it'] = {
['vehicle_tax'] = 'tassa sui veicoli'
}
Locales["it"] = {
["vehicle_tax"] = "tassa sui veicoli",
}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand All @@ -40,4 +40,4 @@ function Tax()
end

TriggerEvent("cron", 24, 0, Tax)
TriggerEvent("cron:runAt", 18, 6, Tax)
TriggerEvent("cron:runAt", 18, 6, Tax)

0 comments on commit 5b330a0

Please sign in to comment.