From a8fe1ae98d9d14ea8d40b5e55600d02f94d8ec3d Mon Sep 17 00:00:00 2001
From: bitpredator <67551273+bitpredator@users.noreply.github.com>
Date: Sun, 7 Apr 2024 11:19:45 +0200
Subject: [PATCH 1/6] chore: (esx_vehicleshop) replace _U with TranslateCap
---
.../esx_vehicleshop/client/main.lua | 128 +++++++++---------
.../esx_vehicleshop/server/main.lua | 26 ++--
2 files changed, 77 insertions(+), 77 deletions(-)
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/client/main.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/client/main.lua
index ed7e2f188..0265cdaf3 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/client/main.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/client/main.lua
@@ -59,7 +59,7 @@ local function Init()
RegisterNetEvent('esx_phone:loaded')
AddEventHandler('esx_phone:loaded', function(phoneNumber, contacts)
local specialContact = {
- name = _U('dealership'),
+ name = TranslateCap('dealership'),
number = 'cardealer',
base64Icon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMAUExURQAAADMzMzszM0M0M0w0M1Q1M101M2U2M242M3Y3M383Moc4MpA4Mpg5MqE5Mqk6MrI6Mro7Mrw8Mr89M71DML5EO8I+NMU/NcBMLshANctBNs5CN8RULMddKsheKs9YLtBCONZEOdlFOtxGO99HPNhMNsplKM1nKM1uJtRhLddiLt5kMNJwJ9B2JNR/IeNIPeVJPehKPuRQOuhSO+lZOOlhNuloM+p3Lep/KupwMMFORsVYUcplXc1waNJ7delUSepgVexrYe12bdeHH9iIH9qQHd2YG+udH+OEJeuGJ+uOJeuVIuChGeSpF+aqGOykHOysGeeyFeuzFuyzFuq6E+27FO+Cee3CEdaGgdqTjvCNhfKYkvOkngAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJezdycAAAEAdFJOU////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wBT9wclAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAGHRFWHRTb2Z0d2FyZQBwYWludC5uZXQgNC4xLjb9TgnoAAAQGElEQVR4Xt2d+WMUtxXHbS6bEGMPMcQQ04aEUnqYo9xJWvC6kAKmQLM2rdn//9+g0uir2Tl0PElPszP7+cnH7Fj6rPTeG2lmvfKld2azk8lk/36L/cnkZDbDIT3Sp4DZ8QS9dTI57tNDTwJOOu+4j/0TvDQz+QXMSG+7mUn+sZBZQELnNROcKhMZBXx+gS4k8+IzTpmBXAJOnqPxTDzPFRKyCODuvSKPgwwC2EZ+lxf4E4xwCzhBU7PBPQx4BWR88+fw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UDDgTdCCgwCkiYBAMOBKYJYBOQMAmGGwjQtRYWASmTYKCBwDgBrAKSJsEgA4F5AtgFJE2CIQYCdKuDVUDi/2AcWiAwlEAKq4DU/70yrEDwMzrVxS4gMQwMKhDYAoDAISAxDAwpEKBDJlwCkv8V61ACgTUACFwC0qoByTACgaUCUDgFMPwTqgEEAnsAlLgFJAfCAQQCRwCUeAQkB8LFBwJ0xIZPAIOBxQYCdMOKV0DkRkGDBQaC9jZAB6+AqA3TNgsLBM2NUBN+ASwGbn6DFvWLv/8UASwG7n2LNvUJof8kAQzlgOA7tKo/nAWQhiSAx8CNngOBuwDS0ATwGOg3END6TxXAEgd6DQSU+S+hCuAx0F8goPafLoDJQE+BgNz/AAEsNWFPgcBb/80JEMBxXSDoIRCguSSCBDBcHUsyBwLP9W+LMAE86TBvICCmP02ggPRVspKMgYBU/tUIFZC+UlqSLRC41j+NBAsYdCAIm/4lEQKGGwgCp39JjACmacAeCIKHvyRKANM04A0EEcNfEimAKRswBoK/o2GhxApgGgRcgSDy7RfEC+AZBDyBIDT510gQwDMIGAJB/NsvSBLAkw5SA0FU8K9IE8AzD5ICQcLoL0kVEP2ERR3zZzRR6Dz/EEy6gC+z9FBwL24D9XLAwocNBgEsa0URj11xdJ9JAMeCYfBjV/RlPydMAkRCSJ0IQYGA592XsAlIjwX0QMDXfVYBgsSMQAsE6ZG/Dq+A1GBACARMU7+CW4AgZRh4AgHvm1+SQYAYBvHRwBEILnO/+SVZBAjiHZgDQZ7eC3IJEHyOnAvdQPBT2vWOk4wCJFHXSs1AkHq14yGzAMEsXEIVCH5hTPgW8gsoOQlcSr9W/Jxr0rfoSUDJ7Jg0GCbHM7ygD/oUAGazk8mkMyL2J5OTWZ89L/ny5f+yiDXCPYKoAQAAAABJRU5ErkJggg==',
}
@@ -78,7 +78,7 @@ local function Init()
SetBlipAsShortRange(blip, true)
BeginTextCommandSetBlipName('STRING')
- AddTextComponentSubstringPlayerName(_U('car_dealer'))
+ AddTextComponentSubstringPlayerName(TranslateCap('car_dealer'))
EndTextCommandSetBlipName(blip)
end)
end
@@ -144,7 +144,7 @@ local function ReturnVehicleProvider()
{
unselectable = true,
icon = "fas fa-car",
- title = _U('car_dealer'),
+ title = TranslateCap('car_dealer'),
},
}
@@ -153,7 +153,7 @@ local function ReturnVehicleProvider()
local vehicleLabel = getVehicleFromModel(v.vehicle).label
TableInsert(elements, {
- title = ('%s [%s]'):format(vehicleLabel, _U('generic_shopitem', ESX.Math.GroupDigits(returnPrice))),
+ title = ('%s [%s]'):format(vehicleLabel, TranslateCap('generic_shopitem', ESX.Math.GroupDigits(returnPrice))),
name = v.vehicle
})
end
@@ -184,7 +184,7 @@ local function WaitForVehicleToLoad(modelHash)
RequestModel(modelHash)
BeginTextCommandBusyspinnerOn('STRING')
- AddTextComponentSubstringPlayerName(_U('shop_awaiting_model'))
+ AddTextComponentSubstringPlayerName(TranslateCap('shop_awaiting_model'))
EndTextCommandBusyspinnerOn(4)
while not HasModelLoaded(modelHash) do
@@ -229,7 +229,7 @@ local function OpenShopMenu()
firstVehicleData = vehicle
end
- TableInsert(options, ('%s %s'):format(vehicle.name, _U('generic_shopitem', ESX.Math.GroupDigits(vehicle.price))))
+ TableInsert(options, ('%s %s'):format(vehicle.name, TranslateCap('generic_shopitem', ESX.Math.GroupDigits(vehicle.price))))
end
table.sort(options)
@@ -245,18 +245,18 @@ local function OpenShopMenu()
end
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'vehicle_shop', {
- title = _U('car_dealer'),
+ title = TranslateCap('car_dealer'),
align = 'top-left',
elements = elements
}, function(data, menu)
local vehicleData = vehiclesByCategory[data.current.name][data.current.value + 1]
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'shop_confirm', {
- title = _U('buy_vehicle_shop', vehicleData.name, ESX.Math.GroupDigits(vehicleData.price)),
+ title = TranslateCap('buy_vehicle_shop', vehicleData.name, ESX.Math.GroupDigits(vehicleData.price)),
align = 'top-left',
elements = {
- {label = _U('no'), value = 'no'},
- {label = _U('yes'), value = 'yes'}
+ {label = TranslateCap('no'), value = 'no'},
+ {label = TranslateCap('yes'), value = 'yes'}
}}, function(data2, menu2)
if data2.current.value == 'yes' then
if Config.EnablePlayerManagement then
@@ -266,7 +266,7 @@ local function OpenShopMenu()
DeleteDisplayVehicleInsideShop()
CurrentAction = 'shop_menu'
- CurrentActionMsg = _U('shop_menu')
+ CurrentActionMsg = TranslateCap('shop_menu')
CurrentActionData = {}
local playerPed = ESX.PlayerData.ped
@@ -276,9 +276,9 @@ local function OpenShopMenu()
menu2.close()
menu.close()
- ESX.ShowNotification(_U('vehicle_purchased'))
+ ESX.ShowNotification(TranslateCap('vehicle_purchased'))
else
- ESX.ShowNotification(_U('broke_company'))
+ ESX.ShowNotification(TranslateCap('broke_company'))
end
end, vehicleData.model)
else
@@ -293,7 +293,7 @@ local function OpenShopMenu()
FreezeEntityPosition(playerPed, false)
SetEntityVisible(playerPed, true)
else
- ESX.ShowNotification(_U('not_enough_money'))
+ ESX.ShowNotification(TranslateCap('not_enough_money'))
end
end, vehicleData.model, generatedPlate)
end
@@ -309,7 +309,7 @@ local function OpenShopMenu()
local playerPed = ESX.PlayerData.ped
CurrentAction = 'shop_menu'
- CurrentActionMsg = _U('shop_menu')
+ CurrentActionMsg = TranslateCap('shop_menu')
CurrentActionData = {}
FreezeEntityPosition(playerPed, false)
@@ -348,17 +348,17 @@ function OpenResellerMenu()
ESX.CloseContext()
local elements = {
- {unselectable = true, icon = 'fas fa-car', title = _U('car_dealer')},
- {title = _U('buy_vehicle'), name = 'buy_vehicle'},
- {title = _U('pop_vehicle'), name = 'pop_vehicle'},
- {title = _U('depop_vehicle'), name = 'depop_vehicle'},
- {title = _U('return_provider'), name = 'return_provider'},
- {title = _U('create_bill'), name = 'create_bill'},
- {title = _U('get_rented_vehicles'), name = 'get_rented_vehicles'},
- {title = _U('set_vehicle_owner_sell'), name = 'set_vehicle_owner_sell'},
- {title = _U('set_vehicle_owner_rent'), name = 'set_vehicle_owner_rent'},
- {title = _U('deposit_stock'), name = 'put_stock'},
- {title = _U('take_stock'), name = 'get_stock'},
+ {unselectable = true, icon = 'fas fa-car', title = TranslateCap('car_dealer')},
+ {title = TranslateCap('buy_vehicle'), name = 'buy_vehicle'},
+ {title = TranslateCap('pop_vehicle'), name = 'pop_vehicle'},
+ {title = TranslateCap('depop_vehicle'), name = 'depop_vehicle'},
+ {title = TranslateCap('return_provider'), name = 'return_provider'},
+ {title = TranslateCap('create_bill'), name = 'create_bill'},
+ {title = TranslateCap('get_rented_vehicles'), name = 'get_rented_vehicles'},
+ {title = TranslateCap('set_vehicle_owner_sell'), name = 'set_vehicle_owner_sell'},
+ {title = TranslateCap('set_vehicle_owner_rent'), name = 'set_vehicle_owner_rent'},
+ {title = TranslateCap('deposit_stock'), name = 'put_stock'},
+ {title = TranslateCap('take_stock'), name = 'get_stock'},
}
ESX.OpenContext('right', elements, function(menu, element)
@@ -378,7 +378,7 @@ function OpenResellerMenu()
if currentDisplayVehicle then
DeleteDisplayVehicleInsideShop()
else
- ESX.ShowNotification(_U('no_current_vehicle'))
+ ESX.ShowNotification(TranslateCap('no_current_vehicle'))
end
elseif action == 'return_provider' then
ReturnVehicleProvider()
@@ -386,22 +386,22 @@ function OpenResellerMenu()
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
if closestPlayer ~= -1 and closestDistance < 3 then
ESX.CloseContext()
- ESX.OpenContext('right', {{title = _U('invoice_amount'), input = true, inputType = 'number', inputValue = 0, inputMin = 0, name = 'invoice_amount'}}, function(menu2, element2)
+ ESX.OpenContext('right', {{title = TranslateCap('invoice_amount'), input = true, inputType = 'number', inputValue = 0, inputMin = 0, name = 'invoice_amount'}}, function(menu2, element2)
if element2.name == 'invoice_amount' then
local amount = tonumber(element2.inputValue)
if amount ~= nil then
ESX.CloseContext()
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
if closestPlayer == -1 or closestDistance > 3.0 then
- ESX.ShowNotification(_U('no_players'))
+ ESX.ShowNotification(TranslateCap('no_players'))
else
- TriggerServerEvent('esx_billing:sendBill', GetPlayerServerId(closestPlayer), 'society_cardealer', _U('car_dealer'), amount)
+ TriggerServerEvent('esx_billing:sendBill', GetPlayerServerId(closestPlayer), 'society_cardealer', TranslateCap('car_dealer'), amount)
end
end
end
end, function(menu) end)
else
- ESX.ShowNotification(_U('no_players'))
+ ESX.ShowNotification(TranslateCap('no_players'))
end
elseif action == 'get_rented_vehicles' then
OpenRentedVehiclesMenu()
@@ -417,10 +417,10 @@ function OpenResellerMenu()
TriggerServerEvent('esx_vehicleshop:setVehicleOwnedPlayerId', GetPlayerServerId(closestPlayer), vehicleProps, CurrentVehicleData.model, CurrentVehicleData.name)
currentDisplayVehicle = nil
else
- ESX.ShowNotification(_U('no_players'))
+ ESX.ShowNotification(TranslateCap('no_players'))
end
else
- ESX.ShowNotification(_U('no_current_vehicle'))
+ ESX.ShowNotification(TranslateCap('no_current_vehicle'))
end
elseif action == 'set_vehicle_owner_rent' then
if currentDisplayVehicle then
@@ -428,12 +428,12 @@ function OpenResellerMenu()
if closestPlayer ~= -1 and closestDistance < 3 then
ESX.UI.Menu.Open('dialog', GetCurrentResourceName(), 'set_vehicle_owner_rent_amount', {
- title = _U('rental_amount')
+ title = TranslateCap('rental_amount')
}, function(data2, menu2)
local amount = tonumber(data2.value)
if not amount then
- ESX.ShowNotification(_U('invalid_amount'))
+ ESX.ShowNotification(TranslateCap('invalid_amount'))
else
menu2.close()
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
@@ -445,22 +445,22 @@ function OpenResellerMenu()
TriggerServerEvent('esx_vehicleshop:rentVehicle', model, newPlate, amount, GetPlayerServerId(closestPlayer))
currentDisplayVehicle = nil
else
- ESX.ShowNotification(_U('no_players'))
+ ESX.ShowNotification(TranslateCap('no_players'))
end
end
end, function(data2, menu2)
menu2.close()
end)
else
- ESX.ShowNotification(_U('no_players'))
+ ESX.ShowNotification(TranslateCap('no_players'))
end
else
- ESX.ShowNotification(_U('no_current_vehicle'))
+ ESX.ShowNotification(TranslateCap('no_current_vehicle'))
end
end
end, function(menu)
CurrentAction = 'reseller_menu'
- CurrentActionMsg = _U('shop_menu')
+ CurrentActionMsg = TranslateCap('shop_menu')
CurrentActionData = {}
end)
end
@@ -472,13 +472,13 @@ function OpenPopVehicleMenu()
local vehicleLabel = getVehicleFromModel(v.vehicle).label
TableInsert(elements, {
- label = ('%s [%s]'):format(vehicleLabel, _U('generic_shopitem', ESX.Math.GroupDigits(v.price))),
+ label = ('%s [%s]'):format(vehicleLabel, TranslateCap('generic_shopitem', ESX.Math.GroupDigits(v.price))),
value = v.vehicle
})
end
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'commercial_vehicles', {
- title = _U('vehicle_dealer'),
+ title = TranslateCap('vehicle_dealer'),
align = 'top-left',
elements = elements
}, function(data, menu)
@@ -513,7 +513,7 @@ function OpenRentedVehiclesMenu()
end
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'rented_vehicles', {
- title = _U('rent_vehicle'),
+ title = TranslateCap('rent_vehicle'),
align = 'top-left',
elements = elements
}, nil, function(data, menu)
@@ -525,11 +525,11 @@ local function OpenBossActionsMenu()
ESX.UI.Menu.CloseAll()
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'reseller',{
- title = _U('dealer_boss'),
+ title = TranslateCap('dealer_boss'),
align = 'top-left',
elements = {
- {label = _U('boss_actions'), value = 'boss_actions'},
- {label = _U('boss_sold'), value = 'sold_vehicles'}
+ {label = TranslateCap('boss_actions'), value = 'boss_actions'},
+ {label = TranslateCap('boss_sold'), value = 'sold_vehicles'}
}}, function(data, menu)
if data.current.value == 'boss_actions' then
TriggerEvent('esx_society:openBossMenu', 'cardealer', function(data2, menu2)
@@ -538,7 +538,7 @@ local function OpenBossActionsMenu()
elseif data.current.value == 'sold_vehicles' then
local elements = {
- head = { _U('customer_client'), _U('customer_model'), _U('customer_plate'), _U('customer_soldby'), _U('customer_date') },
+ head = { TranslateCap('customer_client'), TranslateCap('customer_model'), TranslateCap('customer_plate'), TranslateCap('customer_soldby'), TranslateCap('customer_date') },
rows = {}
}
@@ -566,7 +566,7 @@ local function OpenBossActionsMenu()
menu.close()
CurrentAction = 'boss_actions_menu'
- CurrentActionMsg = _U('shop_menu')
+ CurrentActionMsg = TranslateCap('shop_menu')
CurrentActionData = {}
end)
end
@@ -585,19 +585,19 @@ function OpenGetStocksMenu()
end
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'stocks_menu', {
- title = _U('dealership_stock'),
+ title = TranslateCap('dealership_stock'),
align = 'top-left',
elements = elements
}, function(data, menu)
local itemName = data.current.value
ESX.UI.Menu.Open('dialog', GetCurrentResourceName(), 'stocks_menu_get_item_count', {
- title = _U('amount')
+ title = TranslateCap('amount')
}, function(data2, menu2)
local count = tonumber(data2.value)
if count == nil then
- ESX.ShowNotification(_U('quantity_invalid'))
+ ESX.ShowNotification(TranslateCap('quantity_invalid'))
else
TriggerServerEvent('esx_vehicleshop:getStockItem', itemName, count)
menu2.close()
@@ -630,19 +630,19 @@ function OpenPutStocksMenu()
end
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'stocks_menu', {
- title = _U('inventory'),
+ title = TranslateCap('inventory'),
align = 'top-left',
elements = elements
}, function(data, menu)
local itemName = data.current.value
ESX.UI.Menu.Open('dialog', GetCurrentResourceName(), 'stocks_menu_put_item_count', {
- title = _U('amount')
+ title = TranslateCap('amount')
}, function(data2, menu2)
local count = tonumber(data2.value)
if count == nil then
- ESX.ShowNotification(_U('quantity_invalid'))
+ ESX.ShowNotification(TranslateCap('quantity_invalid'))
else
TriggerServerEvent('esx_vehicleshop:putStockItems', itemName, count)
menu2.close()
@@ -662,12 +662,12 @@ local function hasEnteredMarker(zone)
if zone == 'ShopEntering' then
if not Config.EnablePlayerManagement then
CurrentAction = 'shop_menu'
- CurrentActionMsg = _U('shop_menu')
+ CurrentActionMsg = TranslateCap('shop_menu')
CurrentActionData = {}
end
if LocalPlayer.state.job ~= nil and LocalPlayer.state.job.name == 'cardealer' then
CurrentAction = 'reseller_menu'
- CurrentActionMsg = _U('shop_menu')
+ CurrentActionMsg = TranslateCap('shop_menu')
CurrentActionData = {}
end
elseif zone == 'GiveBackVehicle' and Config.EnablePlayerManagement then
@@ -677,7 +677,7 @@ local function hasEnteredMarker(zone)
local vehicle = GetVehiclePedIsIn(playerPed, false)
CurrentAction = 'give_back_vehicle'
- CurrentActionMsg = _U('vehicle_menu')
+ CurrentActionMsg = TranslateCap('vehicle_menu')
CurrentActionData = {vehicle = vehicle}
end
elseif zone == 'ResellVehicle' then
@@ -701,7 +701,7 @@ local function hasEnteredMarker(zone)
plate = ESX.Math.Trim(GetVehicleNumberPlateText(vehicle))
CurrentAction = 'resell_vehicle'
- CurrentActionMsg = _U('sell_menu', vehicleData.name, ESX.Math.GroupDigits(resellPrice))
+ CurrentActionMsg = TranslateCap('sell_menu', vehicleData.name, ESX.Math.GroupDigits(resellPrice))
CurrentActionData = {
vehicle = vehicle,
@@ -711,14 +711,14 @@ local function hasEnteredMarker(zone)
plate = plate
}
else
- ESX.ShowNotification(_U('invalid_vehicle'))
+ ESX.ShowNotification(TranslateCap('invalid_vehicle'))
end
end
end
elseif zone == 'BossActions' and Config.EnablePlayerManagement and LocalPlayer.state.job ~= nil and LocalPlayer.state.job.name == 'cardealer' and LocalPlayer.state.job.grade_name == 'boss' then
CurrentAction = 'boss_actions_menu'
- CurrentActionMsg = _U('shop_menu')
+ CurrentActionMsg = TranslateCap('shop_menu')
CurrentActionData = {}
end
end
@@ -804,7 +804,7 @@ CreateThread(function()
if hasDriversLicense then
OpenShopMenu()
else
- ESX.ShowNotification(_U('license_missing'))
+ ESX.ShowNotification(TranslateCap('license_missing'))
end
end, GetPlayerServerId(PlayerId()), 'drive')
else
@@ -816,18 +816,18 @@ CreateThread(function()
ESX.TriggerServerCallback('esx_vehicleshop:giveBackVehicle', function(isRentedVehicle)
if isRentedVehicle then
ESX.Game.DeleteVehicle(CurrentActionData.vehicle)
- ESX.ShowNotification(_U('delivered'))
+ ESX.ShowNotification(TranslateCap('delivered'))
else
- ESX.ShowNotification(_U('not_rental'))
+ ESX.ShowNotification(TranslateCap('not_rental'))
end
end, ESX.Math.Trim(GetVehicleNumberPlateText(CurrentActionData.vehicle)))
elseif CurrentAction == 'resell_vehicle' then
ESX.TriggerServerCallback('esx_vehicleshop:resellVehicle', function(vehicleSold)
if vehicleSold then
ESX.Game.DeleteVehicle(CurrentActionData.vehicle)
- ESX.ShowNotification(_U('vehicle_sold_for', CurrentActionData.label, ESX.Math.GroupDigits(CurrentActionData.price)))
+ ESX.ShowNotification(TranslateCap('vehicle_sold_for', CurrentActionData.label, ESX.Math.GroupDigits(CurrentActionData.price)))
else
- ESX.ShowNotification(_U('not_yours'))
+ ESX.ShowNotification(TranslateCap('not_yours'))
end
end, CurrentActionData.plate, CurrentActionData.model)
elseif CurrentAction == 'boss_actions_menu' then
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/server/main.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/server/main.lua
index 791fffae1..fbb960198 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/server/main.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/server/main.lua
@@ -62,7 +62,7 @@ local function getRentedVehicles()
end
CreateThread(function()
- TriggerEvent('esx_society:registerSociety', 'cardealer', _U('car_dealer'), 'society_cardealer', 'society_cardealer', 'society_cardealer', {type = 'private'})
+ TriggerEvent('esx_society:registerSociety', 'cardealer', TranslateCap('car_dealer'), 'society_cardealer', 'society_cardealer', 'society_cardealer', {type = 'private'})
getCategories()
getVehicles()
@@ -109,8 +109,8 @@ AddEventHandler('esx_vehicleshop:setVehicleOwnedPlayerId', function(playerId, ve
end
MySQL.insert('INSERT INTO owned_vehicles (owner, plate, vehicle) VALUES (?, ?, ?)', {xTarget.identifier, vehicleProps.plate, json.encode(vehicleProps)}, function()
- xPlayer.showNotification(_U('vehicle_set_owned', vehicleProps.plate, xTarget.getName()))
- xTarget.showNotification(_U('vehicle_belongs', vehicleProps.plate))
+ xPlayer.showNotification(TranslateCap('vehicle_set_owned', vehicleProps.plate, xTarget.getName()))
+ xTarget.showNotification(TranslateCap('vehicle_belongs', vehicleProps.plate))
end)
local sqlIns = MySQL.insert.await('INSERT INTO vehicle_sold (client, model, plate, soldby, date) VALUES (?, ?, ?, ?, ?)', {xTarget.getName(), label, vehicleProps.plate, xPlayer.getName(), os.date('%Y-%m-%d %H:%M')})
@@ -147,7 +147,7 @@ AddEventHandler('esx_vehicleshop:rentVehicle', function(vehicle, plate, rentPric
MySQL.insert('INSERT INTO rented_vehicles (vehicle, plate, player_name, base_price, rent_price, owner) VALUES (?, ?, ?, ?, ?, ?)', {vehicle, plate, xTarget.getName(), price, rentPrice, xTarget.identifier},
function()
- xPlayer.showNotification(_U('vehicle_set_rented', plate, xTarget.getName()))
+ xPlayer.showNotification(TranslateCap('vehicle_set_rented', plate, xTarget.getName()))
end)
end)
@@ -162,13 +162,13 @@ AddEventHandler('esx_vehicleshop:getStockItem', function(itemName, count)
if count > 0 and item.count >= count then
if not xPlayer.canCarryItem(itemName, count) then
- return xPlayer.showNotification(_U('player_cannot_hold'))
+ return xPlayer.showNotification(TranslateCap('player_cannot_hold'))
end
inventory.removeItem(itemName, count)
xPlayer.addInventoryItem(itemName, count)
- xPlayer.showNotification(_U('have_withdrawn', count, item.label))
+ xPlayer.showNotification(TranslateCap('have_withdrawn', count, item.label))
else
- xPlayer.showNotification(_U('not_enough_in_society'))
+ xPlayer.showNotification(TranslateCap('not_enough_in_society'))
end
end)
end)
@@ -182,13 +182,13 @@ AddEventHandler('esx_vehicleshop:putStockItems', function(itemName, count)
local item = inventory.getItem(itemName)
if item.count < 0 then
- xPlayer.showNotification(_U('invalid_amount'))
+ xPlayer.showNotification(TranslateCap('invalid_amount'))
return
end
xPlayer.removeInventoryItem(itemName, count)
inventory.addItem(itemName, count)
- xPlayer.showNotification(_U('have_deposited', count, item.label))
+ xPlayer.showNotification(TranslateCap('have_deposited', count, item.label))
end)
end)
@@ -210,7 +210,7 @@ ESX.RegisterServerCallback('esx_vehicleshop:buyVehicle', function(source, cb, mo
MySQL.insert('INSERT INTO owned_vehicles (owner, plate, vehicle) VALUES (?, ?, ?)', {xPlayer.identifier, plate, json.encode({model = joaat(model), plate = plate})
}, function(rowsChanged)
- xPlayer.showNotification(_U('vehicle_belongs', plate))
+ xPlayer.showNotification(TranslateCap('vehicle_belongs', plate))
ESX.OneSync.SpawnVehicle(joaat(model), Config.Zones.ShopOutside.Pos, Config.Zones.ShopOutside.Heading,{plate = plate}, function(vehicle)
Wait(100)
local vehicle = NetworkGetEntityFromNetworkId(vehicle)
@@ -281,7 +281,7 @@ AddEventHandler('esx_vehicleshop:returnProvider', function(vehicleModel)
local vehicleLabel = getVehicleFromModel(vehicleModel).label
account.addMoney(vehPrice)
- xPlayer.showNotification(_U('vehicle_sold_for', vehicleLabel, ESX.Math.GroupDigits(vehPrice)))
+ xPlayer.showNotification(TranslateCap('vehicle_sold_for', vehicleLabel, ESX.Math.GroupDigits(vehPrice)))
end)
end)
@@ -434,9 +434,9 @@ local function payRent()
if xPlayer.getAccount('bank').money >= rental.rent_price then
total = total + rental.rent_price
xPlayer.removeAccountMoney('bank', rental.rent_price, "Vehicle Rental")
- xPlayer.showNotification(_U('paid_rental', ESX.Math.GroupDigits(rental.rent_price), rental.plate))
+ xPlayer.showNotification(TranslateCap('paid_rental', ESX.Math.GroupDigits(rental.rent_price), rental.plate))
else
- xPlayer.showNotification(_U('paid_rental_evicted', ESX.Math.GroupDigits(rental.rent_price), rental.plate))
+ xPlayer.showNotification(TranslateCap('paid_rental_evicted', ESX.Math.GroupDigits(rental.rent_price), rental.plate))
unrentals[#unrentals + 1] = {rental.owner, rental.plate}
end
end
From c256cbf14f44e81da0f5df873fedf81536c6c110 Mon Sep 17 00:00:00 2001
From: bitpredator <67551273+bitpredator@users.noreply.github.com>
Date: Sun, 7 Apr 2024 11:22:33 +0200
Subject: [PATCH 2/6] =?UTF-8?q?chore:=20(esx=5Fvehicleshop\locales)=20?=
=?UTF-8?q?=F0=9F=8E=A8=20Run=20formatter?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../esx_vehicleshop/fxmanifest.lua | 2 +-
.../esx_vehicleshop/locales/cs.lua | 126 ++++++++---------
.../esx_vehicleshop/locales/da.lua | 126 ++++++++---------
.../esx_vehicleshop/locales/de.lua | 126 ++++++++---------
.../esx_vehicleshop/locales/en.lua | 126 ++++++++---------
.../esx_vehicleshop/locales/es.lua | 126 ++++++++---------
.../esx_vehicleshop/locales/fi.lua | 126 ++++++++---------
.../esx_vehicleshop/locales/fr.lua | 126 ++++++++---------
.../esx_vehicleshop/locales/hu.lua | 128 +++++++++---------
.../esx_vehicleshop/locales/it.lua | 126 ++++++++---------
.../esx_vehicleshop/locales/nl.lua | 126 ++++++++---------
.../esx_vehicleshop/locales/pl.lua | 126 ++++++++---------
.../esx_vehicleshop/locales/sr.lua | 127 +++++++++--------
.../esx_vehicleshop/locales/zh-cn.lua | 126 ++++++++---------
14 files changed, 821 insertions(+), 822 deletions(-)
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/fxmanifest.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/fxmanifest.lua
index 23cfcb761..dd79f471e 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/fxmanifest.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/fxmanifest.lua
@@ -2,7 +2,7 @@ fx_version 'cerulean'
game 'gta5'
lua54 'yes'
description 'ESX Vehicle Shop'
-version '1.0.0'
+version '1.0.1'
shared_script '@es_extended/imports.lua'
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/cs.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/cs.lua
index bc14c3dd5..c9ed4e510 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/cs.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/cs.lua
@@ -1,65 +1,65 @@
-Locales['cs'] = {
- -- global menus
- ['not_enough_in_society'] = 'neni zde dostatek ~r~tohoto predmetu ve spolecnosti!',
- ['player_cannot_hold'] = '~r~nemas dostatek volneho mista ve tvem inventari!',
- ['vehicle_belongs'] = 'vozidlo se značkou %s nyní patří tobě',
- ['broke_company'] = 'nemáš dostatek peněz na účtě společnosti',
- ['license_missing'] = 'nemáš ridicský prukaz!',
- ['buy_vehicle_shop'] = 'přeješ si zakoupit %s za $%s?',
- ['buy_vehicle'] = 'zakoupit vozidlo',
- ['car_dealer'] = 'autosalon',
- ['shop_awaiting_model'] = 'vozidlo se právě STAHUJE & NAČÍTÁ, čekej prosím',
- ['create_bill'] = 'vytvořit účtenku',
- ['dealer_boss'] = 'prodejce aut - Sef',
- ['delivered'] = 'vozidlo bylo doruceno dealerovi',
- ['depop_vehicle'] = 'vrátit vozidlo do garaze',
- ['return_provider'] = 'vratit vozidlo zprostredkovateli',
- ['get_rented_vehicles'] = 'vozidla na pujceni',
- ['no_current_vehicle'] = 'momentalne nemas zobrazene vozidlo',
- ['invalid_amount'] = 'neplatná částka',
- ['invoice_amount'] = 'castka na fakture',
- ['no'] = 'ne',
- ['yes'] = 'ano',
- ['no_players'] = 'žádní hráči poblíž tebe',
- ['not_enough_money'] = 'nemáš dostatek peněz',
- ['not_rental'] = 'tohle není ~r~půjčitelné vozidlo',
- ['not_yours'] = 'tohle auto ti nepatří',
- ['paid_rental'] = 'you have paid $%s for renting an vehicle with plate %s',
- ['paid_rental_evicted'] = 'you could not afford to pay $%s for your rented vehicle with plate %s, it has been returned to the dealership',
- ['pop_vehicle'] = 'vlozit vozidlo k prodeji',
- ['rent_vehicle'] = 'autosalon - Vozidla k pujceni',
- ['return_provider_menu'] = 'autosalon - Vratit vozidlo zprostredkovateli',
- ['rental_amount'] = 'cena pujceni',
- ['sell_menu'] = 'stiskni [E] pro prodani %s za $%s',
- ['set_vehicle_owner_rent'] = 'pujcit vozidlo',
- ['set_vehicle_owner_sell'] = 'prodat vozidlo',
- ['shop_menu'] = 'stiskni [E] pro přístup do menu',
- ['generic_shopitem'] = '$%s',
- ['vehicle_dealer'] = 'vozidlo - Prodejce aut',
- ['vehicle_menu'] = 'stiskni [E] pro vraceni vozidla zpet',
- ['vehicle_purchased'] = 'zakoupil jsi vozidlo',
- ['vehicle_set_owned'] = 'vozidlo %s bylo prirazeno %s',
- ['vehicle_set_rented'] = 'vozidlo %s bylo pujceno za %s',
- ['vehicle_sold_for'] = '%s bylo prodano za $%s',
- ['vehicle_sold_to'] = 'vozidlo se znackou %s bylo prodano za %s',
- ['deposit_stock'] = 'vlozit do skladu',
- ['take_stock'] = 'vybraz ze skladu',
- ['dealership_stock'] = 'sklad Autosalonu',
- ['amount'] = 'castka',
- ['quantity_invalid'] = 'to je neplatne mnozstvi',
- ['inventory'] = 'inventar',
- ['dealership'] = 'autodealer',
- ['dealer_customers'] = 'zakaznici dealera',
- ['have_withdrawn'] = 'vybral jsi x%s %s',
- ['have_deposited'] = 'vlozil jsi x%s %s',
- ['boss_actions'] = 'akce šéfa',
- ['invalid_vehicle'] = 'neplatné vozidlo',
+Locales["cs"] = {
+ -- global menus
+ ["not_enough_in_society"] = "neni zde dostatek ~r~tohoto predmetu ve spolecnosti!",
+ ["player_cannot_hold"] = "~r~nemas dostatek volneho mista ve tvem inventari!",
+ ["vehicle_belongs"] = "vozidlo se značkou %s nyní patří tobě",
+ ["broke_company"] = "nemáš dostatek peněz na účtě společnosti",
+ ["license_missing"] = "nemáš ridicský prukaz!",
+ ["buy_vehicle_shop"] = "přeješ si zakoupit %s za $%s?",
+ ["buy_vehicle"] = "zakoupit vozidlo",
+ ["car_dealer"] = "autosalon",
+ ["shop_awaiting_model"] = "vozidlo se právě STAHUJE & NAČÍTÁ, čekej prosím",
+ ["create_bill"] = "vytvořit účtenku",
+ ["dealer_boss"] = "prodejce aut - Sef",
+ ["delivered"] = "vozidlo bylo doruceno dealerovi",
+ ["depop_vehicle"] = "vrátit vozidlo do garaze",
+ ["return_provider"] = "vratit vozidlo zprostredkovateli",
+ ["get_rented_vehicles"] = "vozidla na pujceni",
+ ["no_current_vehicle"] = "momentalne nemas zobrazene vozidlo",
+ ["invalid_amount"] = "neplatná částka",
+ ["invoice_amount"] = "castka na fakture",
+ ["no"] = "ne",
+ ["yes"] = "ano",
+ ["no_players"] = "žádní hráči poblíž tebe",
+ ["not_enough_money"] = "nemáš dostatek peněz",
+ ["not_rental"] = "tohle není ~r~půjčitelné vozidlo",
+ ["not_yours"] = "tohle auto ti nepatří",
+ ["paid_rental"] = "you have paid $%s for renting an vehicle with plate %s",
+ ["paid_rental_evicted"] = "you could not afford to pay $%s for your rented vehicle with plate %s, it has been returned to the dealership",
+ ["pop_vehicle"] = "vlozit vozidlo k prodeji",
+ ["rent_vehicle"] = "autosalon - Vozidla k pujceni",
+ ["return_provider_menu"] = "autosalon - Vratit vozidlo zprostredkovateli",
+ ["rental_amount"] = "cena pujceni",
+ ["sell_menu"] = "stiskni [E] pro prodani %s za $%s",
+ ["set_vehicle_owner_rent"] = "pujcit vozidlo",
+ ["set_vehicle_owner_sell"] = "prodat vozidlo",
+ ["shop_menu"] = "stiskni [E] pro přístup do menu",
+ ["generic_shopitem"] = "$%s",
+ ["vehicle_dealer"] = "vozidlo - Prodejce aut",
+ ["vehicle_menu"] = "stiskni [E] pro vraceni vozidla zpet",
+ ["vehicle_purchased"] = "zakoupil jsi vozidlo",
+ ["vehicle_set_owned"] = "vozidlo %s bylo prirazeno %s",
+ ["vehicle_set_rented"] = "vozidlo %s bylo pujceno za %s",
+ ["vehicle_sold_for"] = "%s bylo prodano za $%s",
+ ["vehicle_sold_to"] = "vozidlo se znackou %s bylo prodano za %s",
+ ["deposit_stock"] = "vlozit do skladu",
+ ["take_stock"] = "vybraz ze skladu",
+ ["dealership_stock"] = "sklad Autosalonu",
+ ["amount"] = "castka",
+ ["quantity_invalid"] = "to je neplatne mnozstvi",
+ ["inventory"] = "inventar",
+ ["dealership"] = "autodealer",
+ ["dealer_customers"] = "zakaznici dealera",
+ ["have_withdrawn"] = "vybral jsi x%s %s",
+ ["have_deposited"] = "vlozil jsi x%s %s",
+ ["boss_actions"] = "akce šéfa",
+ ["invalid_vehicle"] = "neplatné vozidlo",
- -- sold vehicles
- ['boss_sold'] = 'seznam prodaných vozidel',
- ['customer_client'] = 'jméno zákazníka',
- ['customer_model'] = 'model auta',
- ['customer_plate'] = 'značka auta',
- ['customer_soldby'] = 'prodáno zaměstnancem',
- ['customer_date'] = 'datum',
+ -- sold vehicles
+ ["boss_sold"] = "seznam prodaných vozidel",
+ ["customer_client"] = "jméno zákazníka",
+ ["customer_model"] = "model auta",
+ ["customer_plate"] = "značka auta",
+ ["customer_soldby"] = "prodáno zaměstnancem",
+ ["customer_date"] = "datum",
}
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/da.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/da.lua
index 3963afc13..889ed2552 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/da.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/da.lua
@@ -1,65 +1,65 @@
-Locales['da'] = {
- -- global menus
- ['not_enough_in_society'] = 'der er ikke nok af ~r~dette item!',
- ['player_cannot_hold'] = 'du har ~r~ikke nok ledig plads i dit inventar!',
- ['vehicle_belongs'] = 'et køretøj med nummerpladen %s tilhører nu dig',
- ['broke_company'] = 'du ikke har penge nok på firmakontoen',
- ['license_missing'] = 'du har ikke et kørekort!',
- ['buy_vehicle_shop'] = 'vil du købe %s for DKK%s?',
- ['buy_vehicle'] = 'køb en bil',
- ['car_dealer'] = 'Bilforhandler',
- ['shop_awaiting_model'] = 'køretøjet læsser i øjeblikket, vent venligst',
- ['create_bill'] = 'opret faktura',
- ['dealer_boss'] = 'bilforhandler - Cheff',
- ['delivered'] = 'køretøjet er leveret til forhandleren',
- ['depop_vehicle'] = 'returner køretøjet til garagen',
- ['return_provider'] = 'returner køretøjet til udbyderen',
- ['get_rented_vehicles'] = 'køretøjer til leje',
- ['no_current_vehicle'] = 'du har i øjeblikket ikke et køretøj udstillet',
- ['invalid_amount'] = 'ugyldig mængde',
- ['invoice_amount'] = 'faktura mænge',
- ['no'] = 'nej',
- ['yes'] = 'ja',
- ['no_players'] = 'der er ingen spillere i nærheden af dig',
- ['not_enough_money'] = 'du har ikke nok penge',
- ['not_rental'] = 'dette er ikke et ~r~lejet køretøj',
- ['not_yours'] = 'dette køretøj tilhører ikke dig',
- ['paid_rental'] = 'du har betalt DKK%s for at leje et køretøj med nummerplade %s',
- ['paid_rental_evicted'] = 'du ikke havde råd til at betale DKK%s for dit lejede køretøj med nummerpladen %s, det er blevet returneret til forhandleren',
- ['pop_vehicle'] = 'sæt en bil til salg',
- ['rent_vehicle'] = 'bilforhandler - Biler til leje',
- ['return_provider_menu'] = 'bilforhandler - Returner køretøjet til udbyderen',
- ['rental_amount'] = 'leje mængde',
- ['sell_menu'] = 'tryk på [E] for at sælge din %s for DKK%s',
- ['set_vehicle_owner_rent'] = 'lej bil',
- ['set_vehicle_owner_sell'] = 'sælg bil',
- ['shop_menu'] = 'tryk [E] for at tilgå menuen',
- ['generic_shopitem'] = 'DKK%s',
- ['vehicle_dealer'] = 'bil - bilforhandler',
- ['vehicle_menu'] = 'tryk på [E] for at give det lejede køretøj tilbage',
- ['vehicle_purchased'] = 'du købte en bil',
- ['vehicle_set_owned'] = 'køretøj %s er blevet tildelt til %s',
- ['vehicle_set_rented'] = 'køretøj %s er blevet lejet til %s',
- ['vehicle_sold_for'] = '%s er blevet solgt for DKK%s',
- ['vehicle_sold_to'] = 'køretøjet med plade %s er blevet solgt til %s ',
- ['deposit_stock'] = 'indsæt antal',
- ['take_stock'] = 'høv antal',
- ['dealership_stock'] = 'bilforhandler Mængde',
- ['amount'] = 'mængde',
- ['quantity_invalid'] = 'det er en ugyldig mængde',
- ['inventory'] = 'inventar',
- ['dealership'] = 'bilforhandler',
- ['dealer_customers'] = 'kunder',
- ['have_withdrawn'] = 'du har trukket x%s %s tilbage',
- ['have_deposited'] = 'du har indsat x%s %s',
- ['boss_actions'] = 'chef menu',
- ['invalid_vehicle'] = 'Ugyldigt køretøj',
+Locales["da"] = {
+ -- global menus
+ ["not_enough_in_society"] = "der er ikke nok af ~r~dette item!",
+ ["player_cannot_hold"] = "du har ~r~ikke nok ledig plads i dit inventar!",
+ ["vehicle_belongs"] = "et køretøj med nummerpladen %s tilhører nu dig",
+ ["broke_company"] = "du ikke har penge nok på firmakontoen",
+ ["license_missing"] = "du har ikke et kørekort!",
+ ["buy_vehicle_shop"] = "vil du købe %s for DKK%s?",
+ ["buy_vehicle"] = "køb en bil",
+ ["car_dealer"] = "Bilforhandler",
+ ["shop_awaiting_model"] = "køretøjet læsser i øjeblikket, vent venligst",
+ ["create_bill"] = "opret faktura",
+ ["dealer_boss"] = "bilforhandler - Cheff",
+ ["delivered"] = "køretøjet er leveret til forhandleren",
+ ["depop_vehicle"] = "returner køretøjet til garagen",
+ ["return_provider"] = "returner køretøjet til udbyderen",
+ ["get_rented_vehicles"] = "køretøjer til leje",
+ ["no_current_vehicle"] = "du har i øjeblikket ikke et køretøj udstillet",
+ ["invalid_amount"] = "ugyldig mængde",
+ ["invoice_amount"] = "faktura mænge",
+ ["no"] = "nej",
+ ["yes"] = "ja",
+ ["no_players"] = "der er ingen spillere i nærheden af dig",
+ ["not_enough_money"] = "du har ikke nok penge",
+ ["not_rental"] = "dette er ikke et ~r~lejet køretøj",
+ ["not_yours"] = "dette køretøj tilhører ikke dig",
+ ["paid_rental"] = "du har betalt DKK%s for at leje et køretøj med nummerplade %s",
+ ["paid_rental_evicted"] = "du ikke havde råd til at betale DKK%s for dit lejede køretøj med nummerpladen %s, det er blevet returneret til forhandleren",
+ ["pop_vehicle"] = "sæt en bil til salg",
+ ["rent_vehicle"] = "bilforhandler - Biler til leje",
+ ["return_provider_menu"] = "bilforhandler - Returner køretøjet til udbyderen",
+ ["rental_amount"] = "leje mængde",
+ ["sell_menu"] = "tryk på [E] for at sælge din %s for DKK%s",
+ ["set_vehicle_owner_rent"] = "lej bil",
+ ["set_vehicle_owner_sell"] = "sælg bil",
+ ["shop_menu"] = "tryk [E] for at tilgå menuen",
+ ["generic_shopitem"] = "DKK%s",
+ ["vehicle_dealer"] = "bil - bilforhandler",
+ ["vehicle_menu"] = "tryk på [E] for at give det lejede køretøj tilbage",
+ ["vehicle_purchased"] = "du købte en bil",
+ ["vehicle_set_owned"] = "køretøj %s er blevet tildelt til %s",
+ ["vehicle_set_rented"] = "køretøj %s er blevet lejet til %s",
+ ["vehicle_sold_for"] = "%s er blevet solgt for DKK%s",
+ ["vehicle_sold_to"] = "køretøjet med plade %s er blevet solgt til %s ",
+ ["deposit_stock"] = "indsæt antal",
+ ["take_stock"] = "høv antal",
+ ["dealership_stock"] = "bilforhandler Mængde",
+ ["amount"] = "mængde",
+ ["quantity_invalid"] = "det er en ugyldig mængde",
+ ["inventory"] = "inventar",
+ ["dealership"] = "bilforhandler",
+ ["dealer_customers"] = "kunder",
+ ["have_withdrawn"] = "du har trukket x%s %s tilbage",
+ ["have_deposited"] = "du har indsat x%s %s",
+ ["boss_actions"] = "chef menu",
+ ["invalid_vehicle"] = "Ugyldigt køretøj",
- -- sold vehicles
- ['boss_sold'] = 'liste over solgte biler',
- ['customer_client'] = 'kunde navn',
- ['customer_model'] = 'bil model',
- ['customer_plate'] = 'bil nummerplads',
- ['customer_soldby'] = 'solgt af',
- ['customer_date'] = 'dato',
+ -- sold vehicles
+ ["boss_sold"] = "liste over solgte biler",
+ ["customer_client"] = "kunde navn",
+ ["customer_model"] = "bil model",
+ ["customer_plate"] = "bil nummerplads",
+ ["customer_soldby"] = "solgt af",
+ ["customer_date"] = "dato",
}
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/de.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/de.lua
index 76fa1460a..bd77210ed 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/de.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/de.lua
@@ -1,65 +1,65 @@
-Locales['de'] = {
- -- global menus
- ['not_enough_in_society'] = 'Es gibt nicht genug von dem Item in der Firma!',
- ['player_cannot_hold'] = 'Du hast ~r~nicht~r~ genügend freien Platz im Inventar!',
- ['vehicle_belongs'] = 'Ein Fahrzeug mit dem Kennzeichen %s gehört nun dir!',
- ['broke_company'] = 'Du hast nicht genug geld im Firmenkonto!',
- ['license_missing'] = 'Du hast keinen Führerschein!',
- ['buy_vehicle_shop'] = 'Willst du %s kaufen für %sEUR?',
- ['buy_vehicle'] = 'Fahrzeug kaufen',
- ['car_dealer'] = 'Autohändler',
- ['shop_awaiting_model'] = 'Das Fahrzeug lädt grade, warte bitte!',
- ['create_bill'] = 'Rechnung Erstellen',
- ['dealer_boss'] = 'Autohändler - Chef',
- ['delivered'] = 'Das Fahrzeug wurde zum Händler geliefert',
- ['depop_vehicle'] = 'Fahrzeug zum Händler bringen',
- ['return_provider'] = 'Fahrzeug zum besitzer bringen',
- ['get_rented_vehicles'] = 'Fahrzeuge zum Mieten',
- ['no_current_vehicle'] = 'Du hast derzeit kein Fahrzeug auf dem Display',
- ['invalid_amount'] = 'Ungültige Anzahl',
- ['invoice_amount'] = 'Ungültige Anzahl',
- ['no'] = 'Nein',
- ['yes'] = 'Ja',
- ['no_players'] = 'Es gibt keinen Spieler in deiner Nähe!',
- ['not_enough_money'] = 'Du hast nicht genug Geld!',
- ['not_rental'] = 'Das ist kein ~r~miet Fahrzeug',
- ['not_yours'] = 'Dieses Fahrzeug gehört dir nicht!',
- ['paid_rental'] = 'Du bezahlst %sEUR um ein Fahrzeug mit dem Kennzeichen %s zu mieten.',
- ['paid_rental_evicted'] = 'Du kannst dir es nicht leisten %sEUR für deinen Mietwagen zu zahlen. Das Fahrzeug %s, wurde zum Händler zurückgebracht.',
- ['pop_vehicle'] = 'Fahrzeuge zum verkauf rausfahren',
- ['rent_vehicle'] = 'Autohändler - Fahrzeuge zum Vermieten',
- ['return_provider_menu'] = 'Autohändler - Fahrzeug zum Händler bringen',
- ['rental_amount'] = 'Mietpreis',
- ['sell_menu'] = 'Drücke [E] um dein %s für %sEUR zu verkaufen!',
- ['set_vehicle_owner_rent'] = 'Fahrzeug Mieten',
- ['set_vehicle_owner_sell'] = 'Fahrzeug verkaufen',
- ['shop_menu'] = 'Drücke [E] um auf das Menü zuzugreifen.',
- ['generic_shopitem'] = '%sEUR',
- ['vehicle_dealer'] = 'Fahrzeug - Autohändler',
- ['vehicle_menu'] = 'Drücke [E] um ein Mietwagen zurückzugeben',
- ['vehicle_purchased'] = 'Fahrzeug wird gekauft',
- ['vehicle_set_owned'] = 'Fahrzeug %s wurde an %s gegeben.',
- ['vehicle_set_rented'] = 'Fahrzeug %s wurde an %s vermietet.',
- ['vehicle_sold_for'] = 'Das Fahrzeug %s wurde für %sEUR verkauft.',
- ['vehicle_sold_to'] = 'Das Fahrzeug mit dem Kennzeichen %s wurde verkauft an %s',
- ['deposit_stock'] = 'Item einlagern',
- ['take_stock'] = 'Item entnehmen',
- ['dealership_stock'] = 'Autohändler - Lager',
- ['amount'] = 'Anzahl',
- ['quantity_invalid'] = 'Das ist eine Ungültige Anzahl!',
- ['inventory'] = 'Inventar',
- ['dealership'] = 'Autohändler',
- ['dealer_customers'] = 'Autohändler - Kunden',
- ['have_withdrawn'] = 'Du entnimmst x%s %s',
- ['have_deposited'] = 'Du lagerst ein x%s %s',
- ['boss_actions'] = 'Boss Aktionen',
- ['invalid_vehicle'] = 'Ungültiges Fahrzeug',
+Locales["de"] = {
+ -- global menus
+ ["not_enough_in_society"] = "Es gibt nicht genug von dem Item in der Firma!",
+ ["player_cannot_hold"] = "Du hast ~r~nicht~r~ genügend freien Platz im Inventar!",
+ ["vehicle_belongs"] = "Ein Fahrzeug mit dem Kennzeichen %s gehört nun dir!",
+ ["broke_company"] = "Du hast nicht genug geld im Firmenkonto!",
+ ["license_missing"] = "Du hast keinen Führerschein!",
+ ["buy_vehicle_shop"] = "Willst du %s kaufen für %sEUR?",
+ ["buy_vehicle"] = "Fahrzeug kaufen",
+ ["car_dealer"] = "Autohändler",
+ ["shop_awaiting_model"] = "Das Fahrzeug lädt grade, warte bitte!",
+ ["create_bill"] = "Rechnung Erstellen",
+ ["dealer_boss"] = "Autohändler - Chef",
+ ["delivered"] = "Das Fahrzeug wurde zum Händler geliefert",
+ ["depop_vehicle"] = "Fahrzeug zum Händler bringen",
+ ["return_provider"] = "Fahrzeug zum besitzer bringen",
+ ["get_rented_vehicles"] = "Fahrzeuge zum Mieten",
+ ["no_current_vehicle"] = "Du hast derzeit kein Fahrzeug auf dem Display",
+ ["invalid_amount"] = "Ungültige Anzahl",
+ ["invoice_amount"] = "Ungültige Anzahl",
+ ["no"] = "Nein",
+ ["yes"] = "Ja",
+ ["no_players"] = "Es gibt keinen Spieler in deiner Nähe!",
+ ["not_enough_money"] = "Du hast nicht genug Geld!",
+ ["not_rental"] = "Das ist kein ~r~miet Fahrzeug",
+ ["not_yours"] = "Dieses Fahrzeug gehört dir nicht!",
+ ["paid_rental"] = "Du bezahlst %sEUR um ein Fahrzeug mit dem Kennzeichen %s zu mieten.",
+ ["paid_rental_evicted"] = "Du kannst dir es nicht leisten %sEUR für deinen Mietwagen zu zahlen. Das Fahrzeug %s, wurde zum Händler zurückgebracht.",
+ ["pop_vehicle"] = "Fahrzeuge zum verkauf rausfahren",
+ ["rent_vehicle"] = "Autohändler - Fahrzeuge zum Vermieten",
+ ["return_provider_menu"] = "Autohändler - Fahrzeug zum Händler bringen",
+ ["rental_amount"] = "Mietpreis",
+ ["sell_menu"] = "Drücke [E] um dein %s für %sEUR zu verkaufen!",
+ ["set_vehicle_owner_rent"] = "Fahrzeug Mieten",
+ ["set_vehicle_owner_sell"] = "Fahrzeug verkaufen",
+ ["shop_menu"] = "Drücke [E] um auf das Menü zuzugreifen.",
+ ["generic_shopitem"] = "%sEUR",
+ ["vehicle_dealer"] = "Fahrzeug - Autohändler",
+ ["vehicle_menu"] = "Drücke [E] um ein Mietwagen zurückzugeben",
+ ["vehicle_purchased"] = "Fahrzeug wird gekauft",
+ ["vehicle_set_owned"] = "Fahrzeug %s wurde an %s gegeben.",
+ ["vehicle_set_rented"] = "Fahrzeug %s wurde an %s vermietet.",
+ ["vehicle_sold_for"] = "Das Fahrzeug %s wurde für %sEUR verkauft.",
+ ["vehicle_sold_to"] = "Das Fahrzeug mit dem Kennzeichen %s wurde verkauft an %s",
+ ["deposit_stock"] = "Item einlagern",
+ ["take_stock"] = "Item entnehmen",
+ ["dealership_stock"] = "Autohändler - Lager",
+ ["amount"] = "Anzahl",
+ ["quantity_invalid"] = "Das ist eine Ungültige Anzahl!",
+ ["inventory"] = "Inventar",
+ ["dealership"] = "Autohändler",
+ ["dealer_customers"] = "Autohändler - Kunden",
+ ["have_withdrawn"] = "Du entnimmst x%s %s",
+ ["have_deposited"] = "Du lagerst ein x%s %s",
+ ["boss_actions"] = "Boss Aktionen",
+ ["invalid_vehicle"] = "Ungültiges Fahrzeug",
- -- sold vehicles
- ['boss_sold'] = 'Liste von Verkauften Fahrzeugen',
- ['customer_client'] = 'Kundenname',
- ['customer_model'] = 'Auto Modell',
- ['customer_plate'] = 'Auto Kennzeichen',
- ['customer_soldby'] = 'Verkauft von',
- ['customer_date'] = 'Datum',
+ -- sold vehicles
+ ["boss_sold"] = "Liste von Verkauften Fahrzeugen",
+ ["customer_client"] = "Kundenname",
+ ["customer_model"] = "Auto Modell",
+ ["customer_plate"] = "Auto Kennzeichen",
+ ["customer_soldby"] = "Verkauft von",
+ ["customer_date"] = "Datum",
}
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/en.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/en.lua
index 3511ec358..56819d1c8 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/en.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/en.lua
@@ -1,65 +1,65 @@
-Locales['en'] = {
- -- global menus
- ['not_enough_in_society'] = 'there\'s not enough of ~r~that item in the society!',
- ['player_cannot_hold'] = 'you do ~r~not have enough free space in your inventory!',
- ['vehicle_belongs'] = 'a vehicle with plate %s now belongs to you',
- ['broke_company'] = 'you do not have enough money in the company account',
- ['license_missing'] = 'you don\'t have a driver\'s license!',
- ['buy_vehicle_shop'] = 'do you want to purchase %s for $%s?',
- ['buy_vehicle'] = 'buy vehicle',
- ['car_dealer'] = 'car Dealership',
- ['shop_awaiting_model'] = 'the vehicle is currently loading, please wait',
- ['create_bill'] = 'create bill',
- ['dealer_boss'] = 'car Dealer - Boss',
- ['delivered'] = 'the vehicle has been delivered to the dealer',
- ['depop_vehicle'] = 'return vehicle to garage',
- ['return_provider'] = 'return vehicle to provider',
- ['get_rented_vehicles'] = 'vehicles for rent',
- ['no_current_vehicle'] = 'you do not currently have a vehicle on display',
- ['invalid_amount'] = 'invalid amount',
- ['invoice_amount'] = 'invoice amount',
- ['no'] = 'no',
- ['yes'] = 'yes',
- ['no_players'] = 'there is no players near you',
- ['not_enough_money'] = 'you do not have enough money',
- ['not_rental'] = 'this is not a ~r~rental vehicle',
- ['not_yours'] = 'this vehicle does not belong to you',
- ['paid_rental'] = 'you have paid $%s for renting a vehicle with plate %s',
- ['paid_rental_evicted'] = 'you could not afford to pay $%s for your rented vehicle with plate %s, it has been returned to the dealership',
- ['pop_vehicle'] = 'put out vehicle for sale',
- ['rent_vehicle'] = 'car Dealer - Vehicles for rent',
- ['return_provider_menu'] = 'car Dealer - Return vehicle to provider',
- ['rental_amount'] = 'rental amount',
- ['sell_menu'] = 'press [E] to sell your %s for $%s',
- ['set_vehicle_owner_rent'] = 'rent vehicle',
- ['set_vehicle_owner_sell'] = 'sell vehicle',
- ['shop_menu'] = 'press [E] to access the menu',
- ['generic_shopitem'] = '$%s',
- ['vehicle_dealer'] = 'vehicle - Car Dealer',
- ['vehicle_menu'] = 'press [E] to give back the rented vehicle',
- ['vehicle_purchased'] = 'you bought a vehicle',
- ['vehicle_set_owned'] = 'vehicle %s has been assigned to %s',
- ['vehicle_set_rented'] = 'vehicle %s has been rented to %s',
- ['vehicle_sold_for'] = 'the %s has been sold for $%s',
- ['vehicle_sold_to'] = 'the vehicle with plate %s has been sold to %s',
- ['deposit_stock'] = 'deposit stock',
- ['take_stock'] = 'withdraw stock',
- ['dealership_stock'] = 'dealership Stock',
- ['amount'] = 'amount',
- ['quantity_invalid'] = 'that\'s an invalid quantity',
- ['inventory'] = 'inventory',
- ['dealership'] = 'car Dealer',
- ['dealer_customers'] = 'dealer customers',
- ['have_withdrawn'] = 'you have withdrawn x%s %s',
- ['have_deposited'] = 'you have deposited x%s %s',
- ['boss_actions'] = 'boss actions',
- ['invalid_vehicle'] = 'Invalid vehicle',
+Locales["en"] = {
+ -- global menus
+ ["not_enough_in_society"] = "there's not enough of ~r~that item in the society!",
+ ["player_cannot_hold"] = "you do ~r~not have enough free space in your inventory!",
+ ["vehicle_belongs"] = "a vehicle with plate %s now belongs to you",
+ ["broke_company"] = "you do not have enough money in the company account",
+ ["license_missing"] = "you don't have a driver's license!",
+ ["buy_vehicle_shop"] = "do you want to purchase %s for $%s?",
+ ["buy_vehicle"] = "buy vehicle",
+ ["car_dealer"] = "car Dealership",
+ ["shop_awaiting_model"] = "the vehicle is currently loading, please wait",
+ ["create_bill"] = "create bill",
+ ["dealer_boss"] = "car Dealer - Boss",
+ ["delivered"] = "the vehicle has been delivered to the dealer",
+ ["depop_vehicle"] = "return vehicle to garage",
+ ["return_provider"] = "return vehicle to provider",
+ ["get_rented_vehicles"] = "vehicles for rent",
+ ["no_current_vehicle"] = "you do not currently have a vehicle on display",
+ ["invalid_amount"] = "invalid amount",
+ ["invoice_amount"] = "invoice amount",
+ ["no"] = "no",
+ ["yes"] = "yes",
+ ["no_players"] = "there is no players near you",
+ ["not_enough_money"] = "you do not have enough money",
+ ["not_rental"] = "this is not a ~r~rental vehicle",
+ ["not_yours"] = "this vehicle does not belong to you",
+ ["paid_rental"] = "you have paid $%s for renting a vehicle with plate %s",
+ ["paid_rental_evicted"] = "you could not afford to pay $%s for your rented vehicle with plate %s, it has been returned to the dealership",
+ ["pop_vehicle"] = "put out vehicle for sale",
+ ["rent_vehicle"] = "car Dealer - Vehicles for rent",
+ ["return_provider_menu"] = "car Dealer - Return vehicle to provider",
+ ["rental_amount"] = "rental amount",
+ ["sell_menu"] = "press [E] to sell your %s for $%s",
+ ["set_vehicle_owner_rent"] = "rent vehicle",
+ ["set_vehicle_owner_sell"] = "sell vehicle",
+ ["shop_menu"] = "press [E] to access the menu",
+ ["generic_shopitem"] = "$%s",
+ ["vehicle_dealer"] = "vehicle - Car Dealer",
+ ["vehicle_menu"] = "press [E] to give back the rented vehicle",
+ ["vehicle_purchased"] = "you bought a vehicle",
+ ["vehicle_set_owned"] = "vehicle %s has been assigned to %s",
+ ["vehicle_set_rented"] = "vehicle %s has been rented to %s",
+ ["vehicle_sold_for"] = "the %s has been sold for $%s",
+ ["vehicle_sold_to"] = "the vehicle with plate %s has been sold to %s",
+ ["deposit_stock"] = "deposit stock",
+ ["take_stock"] = "withdraw stock",
+ ["dealership_stock"] = "dealership Stock",
+ ["amount"] = "amount",
+ ["quantity_invalid"] = "that's an invalid quantity",
+ ["inventory"] = "inventory",
+ ["dealership"] = "car Dealer",
+ ["dealer_customers"] = "dealer customers",
+ ["have_withdrawn"] = "you have withdrawn x%s %s",
+ ["have_deposited"] = "you have deposited x%s %s",
+ ["boss_actions"] = "boss actions",
+ ["invalid_vehicle"] = "Invalid vehicle",
- -- sold vehicles
- ['boss_sold'] = 'list of sold vehicles',
- ['customer_client'] = 'customer name',
- ['customer_model'] = 'car model',
- ['customer_plate'] = 'car plate',
- ['customer_soldby'] = 'sold by',
- ['customer_date'] = 'date',
+ -- sold vehicles
+ ["boss_sold"] = "list of sold vehicles",
+ ["customer_client"] = "customer name",
+ ["customer_model"] = "car model",
+ ["customer_plate"] = "car plate",
+ ["customer_soldby"] = "sold by",
+ ["customer_date"] = "date",
}
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/es.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/es.lua
index 294118342..70022dde5 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/es.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/es.lua
@@ -1,65 +1,65 @@
-Locales['es'] = {
- -- global menus
- ['not_enough_in_society'] = 'No hay mas de ese item en la sociedad!',
- ['player_cannot_hold'] = '~r~no tienes suficiente espacio en tu inventario!',
- ['vehicle_belongs'] = 'un vehiculo con matricula %s ahora es tuyo',
- ['broke_company'] = 'No hay dinero en la compañía',
- ['license_missing'] = 'no tenes licencia de conducir!',
- ['buy_vehicle_shop'] = 'queres comprar %s por $%s?',
- ['buy_vehicle'] = 'comprar vehiculo',
- ['car_dealer'] = 'Concesionario',
- ['shop_awaiting_model'] = 'El vehiculo esta cargando, por favor espera',
- ['create_bill'] = 'crear factura',
- ['dealer_boss'] = 'Vendedor de autos - Boss',
- ['delivered'] = 'el vehiculo fue entregado al vendedor',
- ['depop_vehicle'] = 'Devolver el vehiculo al garage',
- ['return_provider'] = 'Devolver el vehiculo al vendedor',
- ['get_rented_vehicles'] = 'Vehiculos para rentar',
- ['no_current_vehicle'] = 'No hay ningun vehiculo disponible',
- ['invalid_amount'] = 'Cantidad invalida',
- ['invoice_amount'] = 'Precio de factura',
- ['no'] = 'no',
- ['yes'] = 'si',
- ['no_players'] = 'No hay jugadores cerca',
- ['not_enough_money'] = 'no tenes suficiente dinero',
- ['not_rental'] = 'este no es un ~r~vehiculo rentado',
- ['not_yours'] = 'este vehiculo no te pertenece',
- ['paid_rental'] = 'pagaste $%s para rentar el vehiculo con matricula %s',
- ['paid_rental_evicted'] = 'no pudiste pagar $%s de la renta del vehiculo con matricula %s, Este fue devuelto al vendedor',
- ['pop_vehicle'] = 'Poner vehiculo a la venta',
- ['rent_vehicle'] = 'Vendedor de autos - Vehiculos para rentar',
- ['return_provider_menu'] = 'Vendedor de autos - Devolver a proveedor',
- ['rental_amount'] = 'Cantidad de renta',
- ['sell_menu'] = 'Presiona [E] para vender tu %s por $%s',
- ['set_vehicle_owner_rent'] = 'Alquilar vehiculo',
- ['set_vehicle_owner_sell'] = 'Vender vehiculo',
- ['shop_menu'] = 'Presiona [E] para entrar al menu',
- ['generic_shopitem'] = '$%s',
- ['vehicle_dealer'] = 'Vehiculo - Vendedor de autos',
- ['vehicle_menu'] = 'Presiona [E] to give back the rented vehicle',
- ['vehicle_purchased'] = 'has comprado un vehiculo',
- ['vehicle_set_owned'] = 'el vehiculo %s fue asignado a %s',
- ['vehicle_set_rented'] = 'el vehiculo %s fue rentado a %s',
- ['vehicle_sold_for'] = 'el %s fue vendido por $%s',
- ['vehicle_sold_to'] = 'el vehiculo con matricula %s fue vendido por %s',
- ['deposit_stock'] = 'Depositar stock',
- ['take_stock'] = 'Retirar stock',
- ['dealership_stock'] = 'Stock de vendedor',
- ['amount'] = 'Cantidad',
- ['quantity_invalid'] = 'Cantidad invalida',
- ['inventory'] = 'Inventario',
- ['dealership'] = 'Vendedor de autos',
- ['dealer_customers'] = 'Clientes del vendedor',
- ['have_withdrawn'] = 'Has retirado x%s %s',
- ['have_deposited'] = 'Has depositado x%s %s',
- ['boss_actions'] = 'Acciones de jefe',
- ['invalid_vehicle'] = 'Vehiculo invalido',
+Locales["es"] = {
+ -- global menus
+ ["not_enough_in_society"] = "No hay mas de ese item en la sociedad!",
+ ["player_cannot_hold"] = "~r~no tienes suficiente espacio en tu inventario!",
+ ["vehicle_belongs"] = "un vehiculo con matricula %s ahora es tuyo",
+ ["broke_company"] = "No hay dinero en la compañía",
+ ["license_missing"] = "no tenes licencia de conducir!",
+ ["buy_vehicle_shop"] = "queres comprar %s por $%s?",
+ ["buy_vehicle"] = "comprar vehiculo",
+ ["car_dealer"] = "Concesionario",
+ ["shop_awaiting_model"] = "El vehiculo esta cargando, por favor espera",
+ ["create_bill"] = "crear factura",
+ ["dealer_boss"] = "Vendedor de autos - Boss",
+ ["delivered"] = "el vehiculo fue entregado al vendedor",
+ ["depop_vehicle"] = "Devolver el vehiculo al garage",
+ ["return_provider"] = "Devolver el vehiculo al vendedor",
+ ["get_rented_vehicles"] = "Vehiculos para rentar",
+ ["no_current_vehicle"] = "No hay ningun vehiculo disponible",
+ ["invalid_amount"] = "Cantidad invalida",
+ ["invoice_amount"] = "Precio de factura",
+ ["no"] = "no",
+ ["yes"] = "si",
+ ["no_players"] = "No hay jugadores cerca",
+ ["not_enough_money"] = "no tenes suficiente dinero",
+ ["not_rental"] = "este no es un ~r~vehiculo rentado",
+ ["not_yours"] = "este vehiculo no te pertenece",
+ ["paid_rental"] = "pagaste $%s para rentar el vehiculo con matricula %s",
+ ["paid_rental_evicted"] = "no pudiste pagar $%s de la renta del vehiculo con matricula %s, Este fue devuelto al vendedor",
+ ["pop_vehicle"] = "Poner vehiculo a la venta",
+ ["rent_vehicle"] = "Vendedor de autos - Vehiculos para rentar",
+ ["return_provider_menu"] = "Vendedor de autos - Devolver a proveedor",
+ ["rental_amount"] = "Cantidad de renta",
+ ["sell_menu"] = "Presiona [E] para vender tu %s por $%s",
+ ["set_vehicle_owner_rent"] = "Alquilar vehiculo",
+ ["set_vehicle_owner_sell"] = "Vender vehiculo",
+ ["shop_menu"] = "Presiona [E] para entrar al menu",
+ ["generic_shopitem"] = "$%s",
+ ["vehicle_dealer"] = "Vehiculo - Vendedor de autos",
+ ["vehicle_menu"] = "Presiona [E] to give back the rented vehicle",
+ ["vehicle_purchased"] = "has comprado un vehiculo",
+ ["vehicle_set_owned"] = "el vehiculo %s fue asignado a %s",
+ ["vehicle_set_rented"] = "el vehiculo %s fue rentado a %s",
+ ["vehicle_sold_for"] = "el %s fue vendido por $%s",
+ ["vehicle_sold_to"] = "el vehiculo con matricula %s fue vendido por %s",
+ ["deposit_stock"] = "Depositar stock",
+ ["take_stock"] = "Retirar stock",
+ ["dealership_stock"] = "Stock de vendedor",
+ ["amount"] = "Cantidad",
+ ["quantity_invalid"] = "Cantidad invalida",
+ ["inventory"] = "Inventario",
+ ["dealership"] = "Vendedor de autos",
+ ["dealer_customers"] = "Clientes del vendedor",
+ ["have_withdrawn"] = "Has retirado x%s %s",
+ ["have_deposited"] = "Has depositado x%s %s",
+ ["boss_actions"] = "Acciones de jefe",
+ ["invalid_vehicle"] = "Vehiculo invalido",
- -- sold vehicles
- ['boss_sold'] = 'Lista de vehiculos vendidos',
- ['customer_client'] = 'Comprador',
- ['customer_model'] = 'Modelo',
- ['customer_plate'] = 'Matricula',
- ['customer_soldby'] = 'Vendido por',
- ['customer_date'] = 'Fecha',
+ -- sold vehicles
+ ["boss_sold"] = "Lista de vehiculos vendidos",
+ ["customer_client"] = "Comprador",
+ ["customer_model"] = "Modelo",
+ ["customer_plate"] = "Matricula",
+ ["customer_soldby"] = "Vendido por",
+ ["customer_date"] = "Fecha",
}
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/fi.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/fi.lua
index 2c0774465..0dd920c9b 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/fi.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/fi.lua
@@ -1,65 +1,65 @@
-Locales['fi'] = {
- -- global menus
- ['not_enough_in_society'] = 'Firmalla ei ole enempää tätä esinettä varastossa!',
- ['player_cannot_hold'] = 'Sinulla ei ole tarpeeksi vapaata tilaa repussasi!',
- ['vehicle_belongs'] = 'Ajoneuvo kilvellä %s on nyt sinun omistuksessasi',
- ['broke_company'] = 'Firman tilillä ei ole tarpeeksi rahaa',
- ['license_missing'] = 'Sinulla ei ole ajokorttia!',
- ['buy_vehicle_shop'] = 'Haluatko ostaa ajoneuvon %s hintaan $%s?',
- ['buy_vehicle'] = 'Osta ajoneuvo',
- ['car_dealer'] = 'Ajoneuvoliike',
- ['shop_awaiting_model'] = 'Ajoneuvo ladataan, odota hetki',
- ['create_bill'] = 'Kirjoita lasku',
- ['dealer_boss'] = 'Ajoneuvoliike - Pomo',
- ['delivered'] = 'Ajoneuvo on kuljetettu myyjälle',
- ['depop_vehicle'] = 'Palauta ajoneuvo',
- ['return_provider'] = 'Palauta ajoneuvo palveluntarjoajalle',
- ['get_rented_vehicles'] = 'Vuokrattavat ajoneuvot',
- ['no_current_vehicle'] = 'Sinulla ei ole tällä hetkellä mitään ajoneuvoa näytöllä',
- ['invalid_amount'] = 'Virheellinen summa',
- ['invoice_amount'] = 'Laskun summa',
- ['no'] = 'Ei',
- ['yes'] = 'Kyllä',
- ['no_players'] = 'Ei pelaajia lähettyvillä',
- ['not_enough_money'] = 'Sinulla ei ole tarpeeksi rahaa',
- ['not_rental'] = 'Tämä ei ole vuokra ajoneuvo',
- ['not_yours'] = 'Tämä ajoneuvo ei kuulu sinulle',
- ['paid_rental'] = 'Olet maksanut $%s vuokrasta ajoneuvolle, jonka kilpi on %s',
- ['paid_rental_evicted'] = 'Et voinut maksaa $%s vuokraa ajoneuvosta, jonka kilpi on %s. Se on palautettu ajoneuvoliikeeseen',
- ['pop_vehicle'] = 'Ota ajoneuvo ulos näkyville',
- ['rent_vehicle'] = 'Ajoneuvoliike - Vuokrattavat ajoneuvot',
- ['return_provider_menu'] = 'Ajoneuvoliike - Palauta ajoneuvo palveluntarjoajalle',
- ['rental_amount'] = 'Vuokran summa',
- ['sell_menu'] = 'Paina [E] myydäksesi %s hintaan: $%s',
- ['set_vehicle_owner_rent'] = 'Määritä ajoneuvon vuokra',
- ['set_vehicle_owner_sell'] = 'Myy ajoneuvo',
- ['shop_menu'] = 'Paina [E] avataksesi valikko',
- ['generic_shopitem'] = '$%s',
- ['vehicle_dealer'] = 'Ajoneuvo - Ajoneuvoliike',
- ['vehicle_menu'] = 'Paina [E] tehdäksesi tästä sinun ajoneuvo',
- ['vehicle_purchased'] = 'Sinä ostit ajoneuvon',
- ['vehicle_set_owned'] = 'Ajoneuvo %s on nyt määritetty henkilölle %s',
- ['vehicle_set_rented'] = 'Ajoneuvo %s on nyt vuokrattu henkilölle %s',
- ['vehicle_sold_for'] = '%s on myyty hintaan $%s',
- ['vehicle_sold_to'] = 'Ajoneuvo %s myyty henkilölle %s',
- ['deposit_stock'] = 'Laita varastoon',
- ['take_stock'] = 'Ota varastosta',
- ['dealership_stock'] = 'Ajoneuvoliikeen varasto',
- ['amount'] = 'Määrä',
- ['quantity_invalid'] = 'Virheellinen määrä',
- ['inventory'] = 'Reppu',
- ['dealership'] = 'Ajoneuvoliike',
- ['dealer_customers'] = 'Ajoneuvoliikeen asiakas',
- ['have_withdrawn'] = 'Sinä nostit x%s %s',
- ['have_deposited'] = 'Sinä talletit x%s %s',
- ['boss_actions'] = 'Pomo toiminnot',
- ['invalid_vehicle'] = 'Virheellinen ajoneuvo',
+Locales["fi"] = {
+ -- global menus
+ ["not_enough_in_society"] = "Firmalla ei ole enempää tätä esinettä varastossa!",
+ ["player_cannot_hold"] = "Sinulla ei ole tarpeeksi vapaata tilaa repussasi!",
+ ["vehicle_belongs"] = "Ajoneuvo kilvellä %s on nyt sinun omistuksessasi",
+ ["broke_company"] = "Firman tilillä ei ole tarpeeksi rahaa",
+ ["license_missing"] = "Sinulla ei ole ajokorttia!",
+ ["buy_vehicle_shop"] = "Haluatko ostaa ajoneuvon %s hintaan $%s?",
+ ["buy_vehicle"] = "Osta ajoneuvo",
+ ["car_dealer"] = "Ajoneuvoliike",
+ ["shop_awaiting_model"] = "Ajoneuvo ladataan, odota hetki",
+ ["create_bill"] = "Kirjoita lasku",
+ ["dealer_boss"] = "Ajoneuvoliike - Pomo",
+ ["delivered"] = "Ajoneuvo on kuljetettu myyjälle",
+ ["depop_vehicle"] = "Palauta ajoneuvo",
+ ["return_provider"] = "Palauta ajoneuvo palveluntarjoajalle",
+ ["get_rented_vehicles"] = "Vuokrattavat ajoneuvot",
+ ["no_current_vehicle"] = "Sinulla ei ole tällä hetkellä mitään ajoneuvoa näytöllä",
+ ["invalid_amount"] = "Virheellinen summa",
+ ["invoice_amount"] = "Laskun summa",
+ ["no"] = "Ei",
+ ["yes"] = "Kyllä",
+ ["no_players"] = "Ei pelaajia lähettyvillä",
+ ["not_enough_money"] = "Sinulla ei ole tarpeeksi rahaa",
+ ["not_rental"] = "Tämä ei ole vuokra ajoneuvo",
+ ["not_yours"] = "Tämä ajoneuvo ei kuulu sinulle",
+ ["paid_rental"] = "Olet maksanut $%s vuokrasta ajoneuvolle, jonka kilpi on %s",
+ ["paid_rental_evicted"] = "Et voinut maksaa $%s vuokraa ajoneuvosta, jonka kilpi on %s. Se on palautettu ajoneuvoliikeeseen",
+ ["pop_vehicle"] = "Ota ajoneuvo ulos näkyville",
+ ["rent_vehicle"] = "Ajoneuvoliike - Vuokrattavat ajoneuvot",
+ ["return_provider_menu"] = "Ajoneuvoliike - Palauta ajoneuvo palveluntarjoajalle",
+ ["rental_amount"] = "Vuokran summa",
+ ["sell_menu"] = "Paina [E] myydäksesi %s hintaan: $%s",
+ ["set_vehicle_owner_rent"] = "Määritä ajoneuvon vuokra",
+ ["set_vehicle_owner_sell"] = "Myy ajoneuvo",
+ ["shop_menu"] = "Paina [E] avataksesi valikko",
+ ["generic_shopitem"] = "$%s",
+ ["vehicle_dealer"] = "Ajoneuvo - Ajoneuvoliike",
+ ["vehicle_menu"] = "Paina [E] tehdäksesi tästä sinun ajoneuvo",
+ ["vehicle_purchased"] = "Sinä ostit ajoneuvon",
+ ["vehicle_set_owned"] = "Ajoneuvo %s on nyt määritetty henkilölle %s",
+ ["vehicle_set_rented"] = "Ajoneuvo %s on nyt vuokrattu henkilölle %s",
+ ["vehicle_sold_for"] = "%s on myyty hintaan $%s",
+ ["vehicle_sold_to"] = "Ajoneuvo %s myyty henkilölle %s",
+ ["deposit_stock"] = "Laita varastoon",
+ ["take_stock"] = "Ota varastosta",
+ ["dealership_stock"] = "Ajoneuvoliikeen varasto",
+ ["amount"] = "Määrä",
+ ["quantity_invalid"] = "Virheellinen määrä",
+ ["inventory"] = "Reppu",
+ ["dealership"] = "Ajoneuvoliike",
+ ["dealer_customers"] = "Ajoneuvoliikeen asiakas",
+ ["have_withdrawn"] = "Sinä nostit x%s %s",
+ ["have_deposited"] = "Sinä talletit x%s %s",
+ ["boss_actions"] = "Pomo toiminnot",
+ ["invalid_vehicle"] = "Virheellinen ajoneuvo",
- -- sold vehicles
- ['boss_sold'] = 'Lista myydyistä ajoneuvoista',
- ['customer_client'] = 'Asiakaan nimi',
- ['customer_model'] = 'Ajoneuvon malli',
- ['customer_plate'] = 'Ajoneuvon kilpi',
- ['customer_soldby'] = 'Myynyt',
- ['customer_date'] = 'Päiväys',
+ -- sold vehicles
+ ["boss_sold"] = "Lista myydyistä ajoneuvoista",
+ ["customer_client"] = "Asiakaan nimi",
+ ["customer_model"] = "Ajoneuvon malli",
+ ["customer_plate"] = "Ajoneuvon kilpi",
+ ["customer_soldby"] = "Myynyt",
+ ["customer_date"] = "Päiväys",
}
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/fr.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/fr.lua
index 3837c4de1..1fe60c060 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/fr.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/fr.lua
@@ -1,65 +1,65 @@
-Locales['fr'] = {
- -- global menus
- ['not_enough_in_society'] = 'il n\'y à plus assez ~r~de cet objet dans la societé!',
- ['player_cannot_hold'] = 'vous n\'avez ~r~pas assez d\'espace dans votre inventaire!',
- ['vehicle_belongs'] = 'le véhicule avec la plaque %s est désormais à vous',
- ['broke_company'] = 'vous n\avez pas assez d\'argent sur le compte de la societé',
- ['license_missing'] = 'vous n\'avez pas de permis de conduire !',
- ['buy_vehicle_shop'] = 'acheter %s pour $%s?',
- ['buy_vehicle'] = 'acheter véhicule',
- ['car_dealer'] = 'concessionnaire',
- ['shop_awaiting_model'] = 'le véhicule est en train de charger, veuillez patienter...',
- ['create_bill'] = 'créer facture',
- ['dealer_boss'] = 'concessionnaire - Patron',
- ['delivered'] = 'véhicule rendu au concessionnaire',
- ['depop_vehicle'] = 'rentrer véhicule',
- ['return_provider'] = 'rendre le véhicule',
- ['get_rented_vehicles'] = 'véhicules en location',
- ['no_current_vehicle'] = 'vous n\'avez aucun véhicule d\'affiché pour le moment',
- ['invalid_amount'] = 'montant invalide',
- ['invoice_amount'] = 'montant de la facture',
- ['no'] = 'non',
- ['yes'] = 'oui',
- ['no_players'] = 'aucun joueur à proximité',
- ['not_enough_money'] = 'vous n\'avez pas assez d\'argent',
- ['not_rental'] = 'ce n\'est pas un ~r~véhicule de location',
- ['not_yours'] = 'ce véhicule ne vous appartient pas',
- ['paid_rental'] = 'vous avez payé $%s pour louer une voiture avec la plaque %s',
- ['paid_rental_evicted'] = 'vous ne pouviez pas vous permettre de payer $%s pour votre véhicule loué avec la plaque %s, il a été retourné au concessionnaire',
- ['pop_vehicle'] = 'sortir véhicule',
- ['rent_vehicle'] = 'concessionnaire - Véhicules en location',
- ['return_provider_menu'] = 'concessionnaire - Retour de véhicule',
- ['rental_amount'] = 'montant de la location',
- ['sell_menu'] = 'appuyez sur [E] pour vendre %s au prix de $%s',
- ['set_vehicle_owner_rent'] = 'attribuer véhicule [Location]',
- ['set_vehicle_owner_sell'] = 'attribuer véhicule [Vente]',
- ['shop_menu'] = 'appuyez sur [E] pour accéder au menu',
- ['generic_shopitem'] = '$%s',
- ['vehicle_dealer'] = 'concessionnaire - Véhicules',
- ['vehicle_menu'] = 'appuez sur [E] pour rendre votre véhicule',
- ['vehicle_purchased'] = 'vous avez acheté un véhicule',
- ['vehicle_set_owned'] = 'le véhicule %s a été attribué à %s',
- ['vehicle_set_rented'] = 'le véhicule %s a été loué à %s',
- ['vehicle_sold_for'] = 'le %s a été vendu pour $%s',
- ['vehicle_sold_to'] = 'véhicule %s vendu à %s',
- ['deposit_stock'] = 'déposer Stock',
- ['take_stock'] = 'prendre Stock',
- ['dealership_stock'] = 'concession Stock',
- ['amount'] = 'quantité',
- ['quantity_invalid'] = 'quantité invalide',
- ['inventory'] = 'inventaire',
- ['dealership'] = 'concession',
- ['dealer_customers'] = 'client concession',
- ['have_withdrawn'] = 'vous avez retiré x%s %s',
- ['have_deposited'] = 'vous avez deposé x%s %s',
- ['boss_actions'] = 'actions du chef',
- ['invalid_vehicle'] = 'Véhicule invalide',
+Locales["fr"] = {
+ -- global menus
+ ["not_enough_in_society"] = "il n'y à plus assez ~r~de cet objet dans la societé!",
+ ["player_cannot_hold"] = "vous n'avez ~r~pas assez d'espace dans votre inventaire!",
+ ["vehicle_belongs"] = "le véhicule avec la plaque %s est désormais à vous",
+ ["broke_company"] = "vous n\avez pas assez d'argent sur le compte de la societé",
+ ["license_missing"] = "vous n'avez pas de permis de conduire !",
+ ["buy_vehicle_shop"] = "acheter %s pour $%s?",
+ ["buy_vehicle"] = "acheter véhicule",
+ ["car_dealer"] = "concessionnaire",
+ ["shop_awaiting_model"] = "le véhicule est en train de charger, veuillez patienter...",
+ ["create_bill"] = "créer facture",
+ ["dealer_boss"] = "concessionnaire - Patron",
+ ["delivered"] = "véhicule rendu au concessionnaire",
+ ["depop_vehicle"] = "rentrer véhicule",
+ ["return_provider"] = "rendre le véhicule",
+ ["get_rented_vehicles"] = "véhicules en location",
+ ["no_current_vehicle"] = "vous n'avez aucun véhicule d'affiché pour le moment",
+ ["invalid_amount"] = "montant invalide",
+ ["invoice_amount"] = "montant de la facture",
+ ["no"] = "non",
+ ["yes"] = "oui",
+ ["no_players"] = "aucun joueur à proximité",
+ ["not_enough_money"] = "vous n'avez pas assez d'argent",
+ ["not_rental"] = "ce n'est pas un ~r~véhicule de location",
+ ["not_yours"] = "ce véhicule ne vous appartient pas",
+ ["paid_rental"] = "vous avez payé $%s pour louer une voiture avec la plaque %s",
+ ["paid_rental_evicted"] = "vous ne pouviez pas vous permettre de payer $%s pour votre véhicule loué avec la plaque %s, il a été retourné au concessionnaire",
+ ["pop_vehicle"] = "sortir véhicule",
+ ["rent_vehicle"] = "concessionnaire - Véhicules en location",
+ ["return_provider_menu"] = "concessionnaire - Retour de véhicule",
+ ["rental_amount"] = "montant de la location",
+ ["sell_menu"] = "appuyez sur [E] pour vendre %s au prix de $%s",
+ ["set_vehicle_owner_rent"] = "attribuer véhicule [Location]",
+ ["set_vehicle_owner_sell"] = "attribuer véhicule [Vente]",
+ ["shop_menu"] = "appuyez sur [E] pour accéder au menu",
+ ["generic_shopitem"] = "$%s",
+ ["vehicle_dealer"] = "concessionnaire - Véhicules",
+ ["vehicle_menu"] = "appuez sur [E] pour rendre votre véhicule",
+ ["vehicle_purchased"] = "vous avez acheté un véhicule",
+ ["vehicle_set_owned"] = "le véhicule %s a été attribué à %s",
+ ["vehicle_set_rented"] = "le véhicule %s a été loué à %s",
+ ["vehicle_sold_for"] = "le %s a été vendu pour $%s",
+ ["vehicle_sold_to"] = "véhicule %s vendu à %s",
+ ["deposit_stock"] = "déposer Stock",
+ ["take_stock"] = "prendre Stock",
+ ["dealership_stock"] = "concession Stock",
+ ["amount"] = "quantité",
+ ["quantity_invalid"] = "quantité invalide",
+ ["inventory"] = "inventaire",
+ ["dealership"] = "concession",
+ ["dealer_customers"] = "client concession",
+ ["have_withdrawn"] = "vous avez retiré x%s %s",
+ ["have_deposited"] = "vous avez deposé x%s %s",
+ ["boss_actions"] = "actions du chef",
+ ["invalid_vehicle"] = "Véhicule invalide",
- -- sold vehicles
- ['boss_sold'] = 'liste des véhicule vendu',
- ['customer_client'] = 'nom du client',
- ['customer_model'] = 'modèle de voiture',
- ['customer_plate'] = 'plaque d\'immatriculation',
- ['customer_soldby'] = 'vendu par',
- ['customer_date'] = 'date',
+ -- sold vehicles
+ ["boss_sold"] = "liste des véhicule vendu",
+ ["customer_client"] = "nom du client",
+ ["customer_model"] = "modèle de voiture",
+ ["customer_plate"] = "plaque d'immatriculation",
+ ["customer_soldby"] = "vendu par",
+ ["customer_date"] = "date",
}
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/hu.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/hu.lua
index bd681b3aa..854086a76 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/hu.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/hu.lua
@@ -1,66 +1,66 @@
-Locales['hu'] = {
- -- global menus
- ['not_enough_in_society'] = 'nincs elég ~r~tárgyad a vállalkozásban!',
- ['player_cannot_hold'] = '~r~nincs elég helyed a leltárban!',
- ['vehicle_belongs'] = '%s rendszámú jármű már a tulajdonodban van.',
- ['broke_company'] = 'nincs elég pénz a vállalati számlán',
- ['license_missing'] = 'nincs jogosítványod tedd le!',
- ['purchase_type'] = 'a vásárlás típusa',
- ['society_type'] = 'vállalkozás',
- ['staff_type'] = 'személyes használat',
- ['buy_vehicle_shop'] = 'meg szeretnéd vásárolni %s ennyiért: %s $-ért?',
- ['buy_vehicle'] = 'vásárlás',
- ['car_dealer'] = 'Autókereskedés',
- ['shop_awaiting_model'] = 'az autó töltése folyamantban kérlek várj',
- ['create_bill'] = 'számla létrehozása',
- ['dealer_boss'] = 'Autó kereskedö - Fönök',
- ['delivered'] = 'az autó leszállítva a kereskedőnek',
- ['depop_vehicle'] = 'jármü visszaküldés',
- ['return_provider'] = 'jármü visszaküldése a szollgáltatónak',
- ['get_rented_vehicles'] = 'jármüvek bérlése',
- ['invalid_amount'] = 'érvénytelen összeg',
- ['invoice_amount'] = 'számla összeg',
- ['no'] = 'Nem',
- ['yes'] = 'Igen',
- ['no_players'] = 'nincs játékos a közeledben',
- ['not_enough_money'] = 'nincs elég pénzed',
- ['not_rental'] = 'ez nem ~r~bérelhetö autó',
- ['not_yours'] = 'ez az autó nem tartozik hozzád',
- ['paid_rental'] = 'fizettél a kölcsönzönek: %s $',
- ['pop_vehicle'] = 'tedd a jármüvet eladásra',
- ['rent_vehicle'] = 'Autókereskedö - Jármüvek bérlése',
- ['return_provider_menu'] = 'Autókereskedö - Jámrü vissza adás a szollgáltatónak',
- ['rental_amount'] = 'bérlési költség',
- ['sell_menu'] = 'nyomj [E] gombot hogy eladd a %s ennyiért %s $',
- ['set_vehicle_owner_rent'] = 'jármü kijelölése [Location]',
- ['set_vehicle_owner_sell'] = 'jármü eladása',
- ['set_vehicle_owner_sell_society'] = 'jármü kijelölése [Sale] [Society]',
- ['shop_menu'] = 'nyomj [E] gombot a vásárláshoz',
- ['generic_shopitem'] = '%s $',
- ['vehicle_dealer'] = 'jármü - Autókereskedö',
- ['vehicle_menu'] = 'nyomj [E] gombot hogy vissza add a bérelt jármüvet',
- ['vehicle_purchased'] = 'vásároltál egy jármüvet',
- ['vehicle_set_owned'] = 'jármü %s megvéve ennyiért: %s',
- ['vehicle_set_rented'] = 'jármü %s kibérelve ennyiért: %s',
- ['vehicle_sold_for'] = 'A %s jármü eladva ennyiért %s $',
- ['vehicle_sold_to'] = 'a jármü rendszámmal %s eladva neki: %s',
- ['deposit_stock'] = 'beteszek a készletbe',
- ['take_stock'] = 'kiveszek a készletböl',
- ['dealership_stock'] = 'kereskedés készlet',
- ['amount'] = 'összeg',
- ['quantity_invalid'] = 'ez érvénytelen mennyiség',
- ['inventory'] = 'leltár',
- ['dealership'] = 'Autókereskedő',
- ['dealer_customers'] = 'kereskedő ügyfelek',
- ['have_withdrawn'] = 'kivettél x%s %s',
- ['have_deposited'] = 'betettél x%s %s',
- ['boss_actions'] = 'fönök müveletek',
+Locales["hu"] = {
+ -- global menus
+ ["not_enough_in_society"] = "nincs elég ~r~tárgyad a vállalkozásban!",
+ ["player_cannot_hold"] = "~r~nincs elég helyed a leltárban!",
+ ["vehicle_belongs"] = "%s rendszámú jármű már a tulajdonodban van.",
+ ["broke_company"] = "nincs elég pénz a vállalati számlán",
+ ["license_missing"] = "nincs jogosítványod tedd le!",
+ ["purchase_type"] = "a vásárlás típusa",
+ ["society_type"] = "vállalkozás",
+ ["staff_type"] = "személyes használat",
+ ["buy_vehicle_shop"] = "meg szeretnéd vásárolni %s ennyiért: %s $-ért?",
+ ["buy_vehicle"] = "vásárlás",
+ ["car_dealer"] = "Autókereskedés",
+ ["shop_awaiting_model"] = "az autó töltése folyamantban kérlek várj",
+ ["create_bill"] = "számla létrehozása",
+ ["dealer_boss"] = "Autó kereskedö - Fönök",
+ ["delivered"] = "az autó leszállítva a kereskedőnek",
+ ["depop_vehicle"] = "jármü visszaküldés",
+ ["return_provider"] = "jármü visszaküldése a szollgáltatónak",
+ ["get_rented_vehicles"] = "jármüvek bérlése",
+ ["invalid_amount"] = "érvénytelen összeg",
+ ["invoice_amount"] = "számla összeg",
+ ["no"] = "Nem",
+ ["yes"] = "Igen",
+ ["no_players"] = "nincs játékos a közeledben",
+ ["not_enough_money"] = "nincs elég pénzed",
+ ["not_rental"] = "ez nem ~r~bérelhetö autó",
+ ["not_yours"] = "ez az autó nem tartozik hozzád",
+ ["paid_rental"] = "fizettél a kölcsönzönek: %s $",
+ ["pop_vehicle"] = "tedd a jármüvet eladásra",
+ ["rent_vehicle"] = "Autókereskedö - Jármüvek bérlése",
+ ["return_provider_menu"] = "Autókereskedö - Jámrü vissza adás a szollgáltatónak",
+ ["rental_amount"] = "bérlési költség",
+ ["sell_menu"] = "nyomj [E] gombot hogy eladd a %s ennyiért %s $",
+ ["set_vehicle_owner_rent"] = "jármü kijelölése [Location]",
+ ["set_vehicle_owner_sell"] = "jármü eladása",
+ ["set_vehicle_owner_sell_society"] = "jármü kijelölése [Sale] [Society]",
+ ["shop_menu"] = "nyomj [E] gombot a vásárláshoz",
+ ["generic_shopitem"] = "%s $",
+ ["vehicle_dealer"] = "jármü - Autókereskedö",
+ ["vehicle_menu"] = "nyomj [E] gombot hogy vissza add a bérelt jármüvet",
+ ["vehicle_purchased"] = "vásároltál egy jármüvet",
+ ["vehicle_set_owned"] = "jármü %s megvéve ennyiért: %s",
+ ["vehicle_set_rented"] = "jármü %s kibérelve ennyiért: %s",
+ ["vehicle_sold_for"] = "A %s jármü eladva ennyiért %s $",
+ ["vehicle_sold_to"] = "a jármü rendszámmal %s eladva neki: %s",
+ ["deposit_stock"] = "beteszek a készletbe",
+ ["take_stock"] = "kiveszek a készletböl",
+ ["dealership_stock"] = "kereskedés készlet",
+ ["amount"] = "összeg",
+ ["quantity_invalid"] = "ez érvénytelen mennyiség",
+ ["inventory"] = "leltár",
+ ["dealership"] = "Autókereskedő",
+ ["dealer_customers"] = "kereskedő ügyfelek",
+ ["have_withdrawn"] = "kivettél x%s %s",
+ ["have_deposited"] = "betettél x%s %s",
+ ["boss_actions"] = "fönök müveletek",
- -- sold vehicles
- ['boss_sold'] = 'Az eladott járművek listája',
- ['customer_client'] = 'Ügyfél neve',
- ['customer_model'] = 'Autómodell',
- ['customer_plate'] = 'Rendszám',
- ['customer_soldby'] = 'Álltal értékesített',
- ['customer_date'] = 'Dátum',
+ -- sold vehicles
+ ["boss_sold"] = "Az eladott járművek listája",
+ ["customer_client"] = "Ügyfél neve",
+ ["customer_model"] = "Autómodell",
+ ["customer_plate"] = "Rendszám",
+ ["customer_soldby"] = "Álltal értékesített",
+ ["customer_date"] = "Dátum",
}
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/it.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/it.lua
index 5a449da99..1e03fc6ce 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/it.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/it.lua
@@ -1,65 +1,65 @@
-Locales['it'] = {
- -- global menus
- ['not_enough_in_society'] = 'la società non n\'è ha abbastanza!',
- ['player_cannot_hold'] = '~r~non hai abbastanza spazio nel tuo inventario!',
- ['vehicle_belongs'] = 'un veicolo targato %s ora è tuo',
- ['broke_company'] = 'Non ci sono soldi in azienda',
- ['license_missing'] = 'Non hai la licenza!',
- ['buy_vehicle_shop'] = 'vuoi comprare %s per $%s?',
- ['buy_vehicle'] = 'acquistare veicolo',
- ['car_dealer'] = 'Concessionario',
- ['shop_awaiting_model'] = 'Il veicolo è in carica, attendere',
- ['create_bill'] = 'crea fattura',
- ['dealer_boss'] = 'Venditore di auto - Capo',
- ['delivered'] = 'il veicolo è stato consegnato al venditore',
- ['depop_vehicle'] = 'Riporta il veicolo in garage',
- ['return_provider'] = 'Restituire il veicolo al venditore',
- ['get_rented_vehicles'] = 'Veicoli a noleggio',
- ['no_current_vehicle'] = 'Non cè nessun veicolo disponibile',
- ['invalid_amount'] = 'importo non valido',
- ['invoice_amount'] = 'Prezzo fattura',
- ['no'] = 'no',
- ['yes'] = 'sí',
- ['no_players'] = 'Non ci sono giocatori nelle vicinanze',
- ['not_enough_money'] = 'non hai abbastanza soldi',
- ['not_rental'] = 'questo non è un veicolo ~noleggiato',
- ['not_yours'] = 'questo veicolo non ti appartiene',
- ['paid_rental'] = 'hai pagato $%s per noleggiare il veicolo con targa %s',
- ['paid_rental_evicted'] = 'non hai potuto pagare $%s dell affitto del veicolo con targa %s, è stato restituito al venditore',
- ['pop_vehicle'] = 'Mettere in vendita il veicolo',
- ['rent_vehicle'] = 'Concessionaria auto - Veicoli a noleggio',
- ['return_provider_menu'] = 'Concessionaria auto - Restituzione al venditore',
- ['rental_amount'] = 'Importo dell affitto',
- ['sell_menu'] = 'Premi [E] per vendere le tue %s a $%s',
- ['set_vehicle_owner_rent'] = 'Noleggia un veicolo',
- ['set_vehicle_owner_sell'] = 'vendere veicolo',
- ['shop_menu'] = 'Premere [E] per accedere al menu',
- ['generic_shopitem'] = '$%s',
- ['vehicle_dealer'] = 'Veicolo - Concessionario auto',
- ['vehicle_menu'] = 'Premi [E] per restituire il veicolo noleggiato',
- ['vehicle_purchased'] = 'hai acquistato un veicolo',
- ['vehicle_set_owned'] = 'il veicolo %s è stato assegnato a %s',
- ['vehicle_set_rented'] = 'il veicolo %s è stato noleggiato a %s',
- ['vehicle_sold_for'] = 'il %s è stato venduto per $%s',
- ['vehicle_sold_to'] = 'il veicolo targato %s è stato venduto da %s',
- ['deposit_stock'] = 'deposito aziendale',
- ['take_stock'] = 'ritiro deposito aziendale',
- ['dealership_stock'] = 'Azione del venditore',
- ['amount'] = 'Quantità',
- ['quantity_invalid'] = 'Importo non valido',
- ['inventory'] = 'Inventario',
- ['dealership'] = 'Venditore di auto',
- ['dealer_customers'] = 'Clienti del venditore',
- ['have_withdrawn'] = 'Hai ritirato x%s %s',
- ['have_deposited'] = 'Hai depositato x%s %s',
- ['boss_actions'] = 'Azioni del capo',
- ['invalid_vehicle'] = 'Veicolo non valido',
+Locales["it"] = {
+ -- global menus
+ ["not_enough_in_society"] = "la società non n'è ha abbastanza!",
+ ["player_cannot_hold"] = "~r~non hai abbastanza spazio nel tuo inventario!",
+ ["vehicle_belongs"] = "un veicolo targato %s ora è tuo",
+ ["broke_company"] = "Non ci sono soldi in azienda",
+ ["license_missing"] = "Non hai la licenza!",
+ ["buy_vehicle_shop"] = "vuoi comprare %s per $%s?",
+ ["buy_vehicle"] = "acquistare veicolo",
+ ["car_dealer"] = "Concessionario",
+ ["shop_awaiting_model"] = "Il veicolo è in carica, attendere",
+ ["create_bill"] = "crea fattura",
+ ["dealer_boss"] = "Venditore di auto - Capo",
+ ["delivered"] = "il veicolo è stato consegnato al venditore",
+ ["depop_vehicle"] = "Riporta il veicolo in garage",
+ ["return_provider"] = "Restituire il veicolo al venditore",
+ ["get_rented_vehicles"] = "Veicoli a noleggio",
+ ["no_current_vehicle"] = "Non cè nessun veicolo disponibile",
+ ["invalid_amount"] = "importo non valido",
+ ["invoice_amount"] = "Prezzo fattura",
+ ["no"] = "no",
+ ["yes"] = "sí",
+ ["no_players"] = "Non ci sono giocatori nelle vicinanze",
+ ["not_enough_money"] = "non hai abbastanza soldi",
+ ["not_rental"] = "questo non è un veicolo ~noleggiato",
+ ["not_yours"] = "questo veicolo non ti appartiene",
+ ["paid_rental"] = "hai pagato $%s per noleggiare il veicolo con targa %s",
+ ["paid_rental_evicted"] = "non hai potuto pagare $%s dell affitto del veicolo con targa %s, è stato restituito al venditore",
+ ["pop_vehicle"] = "Mettere in vendita il veicolo",
+ ["rent_vehicle"] = "Concessionaria auto - Veicoli a noleggio",
+ ["return_provider_menu"] = "Concessionaria auto - Restituzione al venditore",
+ ["rental_amount"] = "Importo dell affitto",
+ ["sell_menu"] = "Premi [E] per vendere le tue %s a $%s",
+ ["set_vehicle_owner_rent"] = "Noleggia un veicolo",
+ ["set_vehicle_owner_sell"] = "vendere veicolo",
+ ["shop_menu"] = "Premere [E] per accedere al menu",
+ ["generic_shopitem"] = "$%s",
+ ["vehicle_dealer"] = "Veicolo - Concessionario auto",
+ ["vehicle_menu"] = "Premi [E] per restituire il veicolo noleggiato",
+ ["vehicle_purchased"] = "hai acquistato un veicolo",
+ ["vehicle_set_owned"] = "il veicolo %s è stato assegnato a %s",
+ ["vehicle_set_rented"] = "il veicolo %s è stato noleggiato a %s",
+ ["vehicle_sold_for"] = "il %s è stato venduto per $%s",
+ ["vehicle_sold_to"] = "il veicolo targato %s è stato venduto da %s",
+ ["deposit_stock"] = "deposito aziendale",
+ ["take_stock"] = "ritiro deposito aziendale",
+ ["dealership_stock"] = "Azione del venditore",
+ ["amount"] = "Quantità",
+ ["quantity_invalid"] = "Importo non valido",
+ ["inventory"] = "Inventario",
+ ["dealership"] = "Venditore di auto",
+ ["dealer_customers"] = "Clienti del venditore",
+ ["have_withdrawn"] = "Hai ritirato x%s %s",
+ ["have_deposited"] = "Hai depositato x%s %s",
+ ["boss_actions"] = "Azioni del capo",
+ ["invalid_vehicle"] = "Veicolo non valido",
- -- sold vehicles
- ['boss_sold'] = 'Elenco dei veicoli venduti',
- ['customer_client'] = 'Acquirente',
- ['customer_model'] = 'Modello',
- ['customer_plate'] = 'targa',
- ['customer_soldby'] = 'Venduto da',
- ['customer_date'] = 'Data',
+ -- sold vehicles
+ ["boss_sold"] = "Elenco dei veicoli venduti",
+ ["customer_client"] = "Acquirente",
+ ["customer_model"] = "Modello",
+ ["customer_plate"] = "targa",
+ ["customer_soldby"] = "Venduto da",
+ ["customer_date"] = "Data",
}
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/nl.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/nl.lua
index 5bae0c679..88e4705f4 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/nl.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/nl.lua
@@ -1,65 +1,65 @@
-Locales['nl'] = {
- -- global menus
- ['not_enough_in_society'] = 'dit zit niet in de inventory van de cardealer !',
- ['player_cannot_hold'] = 'je hebt ~r~niet~s~ genoeg plaats in je inventaris!',
- ['vehicle_belongs'] = 'een voertuig met kenteken %s is nu van jou',
- ['broke_company'] = 'je bedrijf heeft niet genoeg geld in de bank',
- ['license_missing'] = 'je hebt geen rijbewijs!',
- ['buy_vehicle_shop'] = 'Wil je %s kopen voor €%s?',
- ['buy_vehicle'] = 'koop voertuig',
- ['car_dealer'] = 'Voertuig verkoop',
- ['shop_awaiting_model'] = 'het voertuig is aan het laden, even geduld',
- ['create_bill'] = 'creeër rekening',
- ['dealer_boss'] = 'Voertuig verkoop - Baas',
- ['delivered'] = 'het voertuig is afgeleverd',
- ['depop_vehicle'] = 'wil je het voertuig parkeren in de garage?',
- ['return_provider'] = 'wil je het voertuig terugsturen naar de eigenaar ?',
- ['get_rented_vehicles'] = 'voertuigen te huur',
- ['no_current_vehicle'] = 'je hebt momenteel geen voertuig uitstaan',
- ['invalid_amount'] = 'ongeldig bedrag',
- ['invoice_amount'] = 'factuur bedrag',
- ['no'] = 'nee',
- ['yes'] = 'ja',
- ['no_players'] = 'er zijn geen spelers in de buurt',
- ['not_enough_money'] = 'je hebt niet genoeg geld',
- ['not_rental'] = 'dit is geen ~r~huur voertuig',
- ['not_yours'] = 'dit voertuig is niet van jou',
- ['paid_rental'] = 'je hebt €%s betaald voor het huren van een voertuig met kenteken %s',
- ['paid_rental_evicted'] = 'je hebt niet genoeg om €%s te betalen voor je gehuurde voertuig met kenteken %s, hij is teruggebracht.',
- ['pop_vehicle'] = 'zet voertuig uit voor verkoop',
- ['rent_vehicle'] = 'Auto verkoop - Voertuigen te huur',
- ['return_provider_menu'] = 'Auto verkoop - Breng voertuig terug',
- ['rental_amount'] = 'huur bedrag',
- ['sell_menu'] = 'klik op [E] om %s te verkopen voor €%s',
- ['set_vehicle_owner_rent'] = 'verhuur voertuig',
- ['set_vehicle_owner_sell'] = 'verkoop vuurtuig',
- ['shop_menu'] = 'klik op [E] om het menu te gebruiken',
- ['generic_shopitem'] = '€%s',
- ['vehicle_dealer'] = 'voertuig - Auto verkoop',
- ['vehicle_menu'] = 'klik op [E] om je gehuurde voertuig terug te brengen',
- ['vehicle_purchased'] = 'je hebt een voertuig gekocht',
- ['vehicle_set_owned'] = 'voertuig %s is toegewezen aan %s',
- ['vehicle_set_rented'] = 'voertuig %s is gehuurd door %s',
- ['vehicle_sold_for'] = 'de %s is verkocht voor €%s',
- ['vehicle_sold_to'] = 'het voertuig met kenteken %s is verkocht aan %s',
- ['deposit_stock'] = 'sla voorraad op',
- ['take_stock'] = 'pak voorraad',
- ['dealership_stock'] = 'verkoop voorraad',
- ['amount'] = 'bedrag',
- ['quantity_invalid'] = 'ongeldig bedrag',
- ['inventory'] = 'inventaris',
- ['dealership'] = 'Auto verkoop',
- ['dealer_customers'] = 'Klanten',
- ['have_withdrawn'] = 'je hebt x%s %s gepakt',
- ['have_deposited'] = 'je hebt x%s %s opgeslagen',
- ['boss_actions'] = 'baas acties',
- ['invalid_vehicle'] = 'Onjuist voertuig',
+Locales["nl"] = {
+ -- global menus
+ ["not_enough_in_society"] = "dit zit niet in de inventory van de cardealer !",
+ ["player_cannot_hold"] = "je hebt ~r~niet~s~ genoeg plaats in je inventaris!",
+ ["vehicle_belongs"] = "een voertuig met kenteken %s is nu van jou",
+ ["broke_company"] = "je bedrijf heeft niet genoeg geld in de bank",
+ ["license_missing"] = "je hebt geen rijbewijs!",
+ ["buy_vehicle_shop"] = "Wil je %s kopen voor €%s?",
+ ["buy_vehicle"] = "koop voertuig",
+ ["car_dealer"] = "Voertuig verkoop",
+ ["shop_awaiting_model"] = "het voertuig is aan het laden, even geduld",
+ ["create_bill"] = "creeër rekening",
+ ["dealer_boss"] = "Voertuig verkoop - Baas",
+ ["delivered"] = "het voertuig is afgeleverd",
+ ["depop_vehicle"] = "wil je het voertuig parkeren in de garage?",
+ ["return_provider"] = "wil je het voertuig terugsturen naar de eigenaar ?",
+ ["get_rented_vehicles"] = "voertuigen te huur",
+ ["no_current_vehicle"] = "je hebt momenteel geen voertuig uitstaan",
+ ["invalid_amount"] = "ongeldig bedrag",
+ ["invoice_amount"] = "factuur bedrag",
+ ["no"] = "nee",
+ ["yes"] = "ja",
+ ["no_players"] = "er zijn geen spelers in de buurt",
+ ["not_enough_money"] = "je hebt niet genoeg geld",
+ ["not_rental"] = "dit is geen ~r~huur voertuig",
+ ["not_yours"] = "dit voertuig is niet van jou",
+ ["paid_rental"] = "je hebt €%s betaald voor het huren van een voertuig met kenteken %s",
+ ["paid_rental_evicted"] = "je hebt niet genoeg om €%s te betalen voor je gehuurde voertuig met kenteken %s, hij is teruggebracht.",
+ ["pop_vehicle"] = "zet voertuig uit voor verkoop",
+ ["rent_vehicle"] = "Auto verkoop - Voertuigen te huur",
+ ["return_provider_menu"] = "Auto verkoop - Breng voertuig terug",
+ ["rental_amount"] = "huur bedrag",
+ ["sell_menu"] = "klik op [E] om %s te verkopen voor €%s",
+ ["set_vehicle_owner_rent"] = "verhuur voertuig",
+ ["set_vehicle_owner_sell"] = "verkoop vuurtuig",
+ ["shop_menu"] = "klik op [E] om het menu te gebruiken",
+ ["generic_shopitem"] = "€%s",
+ ["vehicle_dealer"] = "voertuig - Auto verkoop",
+ ["vehicle_menu"] = "klik op [E] om je gehuurde voertuig terug te brengen",
+ ["vehicle_purchased"] = "je hebt een voertuig gekocht",
+ ["vehicle_set_owned"] = "voertuig %s is toegewezen aan %s",
+ ["vehicle_set_rented"] = "voertuig %s is gehuurd door %s",
+ ["vehicle_sold_for"] = "de %s is verkocht voor €%s",
+ ["vehicle_sold_to"] = "het voertuig met kenteken %s is verkocht aan %s",
+ ["deposit_stock"] = "sla voorraad op",
+ ["take_stock"] = "pak voorraad",
+ ["dealership_stock"] = "verkoop voorraad",
+ ["amount"] = "bedrag",
+ ["quantity_invalid"] = "ongeldig bedrag",
+ ["inventory"] = "inventaris",
+ ["dealership"] = "Auto verkoop",
+ ["dealer_customers"] = "Klanten",
+ ["have_withdrawn"] = "je hebt x%s %s gepakt",
+ ["have_deposited"] = "je hebt x%s %s opgeslagen",
+ ["boss_actions"] = "baas acties",
+ ["invalid_vehicle"] = "Onjuist voertuig",
- -- sold vehicles
- ['boss_sold'] = 'lijst van verkochte voertuigen',
- ['customer_client'] = 'klant naam',
- ['customer_model'] = 'voertuig model',
- ['customer_plate'] = 'kenteken voertuig',
- ['customer_soldby'] = 'verkocht door',
- ['customer_date'] = 'datum',
+ -- sold vehicles
+ ["boss_sold"] = "lijst van verkochte voertuigen",
+ ["customer_client"] = "klant naam",
+ ["customer_model"] = "voertuig model",
+ ["customer_plate"] = "kenteken voertuig",
+ ["customer_soldby"] = "verkocht door",
+ ["customer_date"] = "datum",
}
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/pl.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/pl.lua
index f6144bdf8..aedf56542 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/pl.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/pl.lua
@@ -1,65 +1,65 @@
-Locales['pl'] = {
- -- global menus
- ['not_enough_in_society'] = 'brak tego ~r~przedmiotu w firmie!',
- ['player_cannot_hold'] = '~r~Nie masz wystarczająco wolnego miejsca w ekwipunku!',
- ['vehicle_belongs'] = 'pojazd z rejestracją %s teraz należy do ciebie',
- ['broke_company'] = 'twoja firma nie ma wystarczająco pieniedzy',
- ['license_missing'] = 'you don\'t have a driver\'s license!',
- ['buy_vehicle_shop'] = 'czy chcesz kupić %s za $%s?',
- ['buy_vehicle'] = 'kup pojazd',
- ['car_dealer'] = 'sprzedawca Aut',
- ['shop_awaiting_model'] = 'the vehicle is currently loading, please wait',
- ['create_bill'] = 'stwórz fakture',
- ['dealer_boss'] = 'salon samochodowy - Szef',
- ['delivered'] = 'pojazd został dostarczony do salonu',
- ['depop_vehicle'] = 'oddaj pojazd',
- ['return_provider'] = 'return vehicle to provider',
- ['get_rented_vehicles'] = 'pojazdy do wynajęcia',
- ['no_current_vehicle'] = 'you do not currently have an vehicle displayed',
- ['invalid_amount'] = 'nieprawidłowa ilość',
- ['invoice_amount'] = 'suma faktury',
- ['no'] = 'nie',
- ['yes'] = 'tak',
- ['no_players'] = 'brak graczy w pobliżu',
- ['not_enough_money'] = 'nie masz wystarczająco pieniędzy',
- ['not_rental'] = 'to nie jest ~r~wypożyczone auto',
- ['not_yours'] = 'ten pojazd nie należy do ciebie',
- ['paid_rental'] = 'you have paid $%s for renting an vehicle with plate %s',
- ['paid_rental_evicted'] = 'you could not afford to pay $%s for your rented vehicle with plate %s, it has been returned to the dealership',
- ['pop_vehicle'] = 'wyciągnij auto do sprzedaży',
- ['rent_vehicle'] = 'salon samochodowy - Pojazdy do wynajęcia',
- ['return_provider_menu'] = 'car Dealer - Return vehicle to provider',
- ['rental_amount'] = 'suma wynajęcia',
- ['sell_menu'] = 'wcisnij [E] aby sprzedać %s za $%s',
- ['set_vehicle_owner_rent'] = 'zarejestruj pojazd [Wynajem]',
- ['set_vehicle_owner_sell'] = 'zarejestruj pojazd [Kupno]',
- ['shop_menu'] = 'wcisnij [E] aby wejść do menu',
- ['generic_shopitem'] = '$%s',
- ['vehicle_dealer'] = 'pojazdy - Sprzedawca aut',
- ['vehicle_menu'] = 'wcisnij [E] aby wyjąć pojazd',
- ['vehicle_purchased'] = 'kupujesz pojazd',
- ['vehicle_set_owned'] = 'pojazd %s został zarejestrowany na %s',
- ['vehicle_set_rented'] = 'pojazd %s został wynajęty przez %s',
- ['vehicle_sold_for'] = 'the %s has been sold for $%s',
- ['vehicle_sold_to'] = 'pojazd %s został sprzedany do %s',
- ['deposit_stock'] = 'deponuj przedmioty',
- ['take_stock'] = 'wyciągnij przedmioty',
- ['dealership_stock'] = 'zaopatrzenie salonu',
- ['amount'] = 'suma',
- ['quantity_invalid'] = 'nieprawidłowa ilość',
- ['inventory'] = 'ekwipunek',
- ['dealership'] = 'sprzedawca Aut',
- ['dealer_customers'] = 'klienci salonu',
- ['have_withdrawn'] = 'wyciągasz x%s %s',
- ['have_deposited'] = 'deponujesz x%s %s',
- ['boss_actions'] = 'akcje szefa',
- ['invalid_vehicle'] = 'nieprawidłowy pojazd',
+Locales["pl"] = {
+ -- global menus
+ ["not_enough_in_society"] = "brak tego ~r~przedmiotu w firmie!",
+ ["player_cannot_hold"] = "~r~Nie masz wystarczająco wolnego miejsca w ekwipunku!",
+ ["vehicle_belongs"] = "pojazd z rejestracją %s teraz należy do ciebie",
+ ["broke_company"] = "twoja firma nie ma wystarczająco pieniedzy",
+ ["license_missing"] = "you don't have a driver's license!",
+ ["buy_vehicle_shop"] = "czy chcesz kupić %s za $%s?",
+ ["buy_vehicle"] = "kup pojazd",
+ ["car_dealer"] = "sprzedawca Aut",
+ ["shop_awaiting_model"] = "the vehicle is currently loading, please wait",
+ ["create_bill"] = "stwórz fakture",
+ ["dealer_boss"] = "salon samochodowy - Szef",
+ ["delivered"] = "pojazd został dostarczony do salonu",
+ ["depop_vehicle"] = "oddaj pojazd",
+ ["return_provider"] = "return vehicle to provider",
+ ["get_rented_vehicles"] = "pojazdy do wynajęcia",
+ ["no_current_vehicle"] = "you do not currently have an vehicle displayed",
+ ["invalid_amount"] = "nieprawidłowa ilość",
+ ["invoice_amount"] = "suma faktury",
+ ["no"] = "nie",
+ ["yes"] = "tak",
+ ["no_players"] = "brak graczy w pobliżu",
+ ["not_enough_money"] = "nie masz wystarczająco pieniędzy",
+ ["not_rental"] = "to nie jest ~r~wypożyczone auto",
+ ["not_yours"] = "ten pojazd nie należy do ciebie",
+ ["paid_rental"] = "you have paid $%s for renting an vehicle with plate %s",
+ ["paid_rental_evicted"] = "you could not afford to pay $%s for your rented vehicle with plate %s, it has been returned to the dealership",
+ ["pop_vehicle"] = "wyciągnij auto do sprzedaży",
+ ["rent_vehicle"] = "salon samochodowy - Pojazdy do wynajęcia",
+ ["return_provider_menu"] = "car Dealer - Return vehicle to provider",
+ ["rental_amount"] = "suma wynajęcia",
+ ["sell_menu"] = "wcisnij [E] aby sprzedać %s za $%s",
+ ["set_vehicle_owner_rent"] = "zarejestruj pojazd [Wynajem]",
+ ["set_vehicle_owner_sell"] = "zarejestruj pojazd [Kupno]",
+ ["shop_menu"] = "wcisnij [E] aby wejść do menu",
+ ["generic_shopitem"] = "$%s",
+ ["vehicle_dealer"] = "pojazdy - Sprzedawca aut",
+ ["vehicle_menu"] = "wcisnij [E] aby wyjąć pojazd",
+ ["vehicle_purchased"] = "kupujesz pojazd",
+ ["vehicle_set_owned"] = "pojazd %s został zarejestrowany na %s",
+ ["vehicle_set_rented"] = "pojazd %s został wynajęty przez %s",
+ ["vehicle_sold_for"] = "the %s has been sold for $%s",
+ ["vehicle_sold_to"] = "pojazd %s został sprzedany do %s",
+ ["deposit_stock"] = "deponuj przedmioty",
+ ["take_stock"] = "wyciągnij przedmioty",
+ ["dealership_stock"] = "zaopatrzenie salonu",
+ ["amount"] = "suma",
+ ["quantity_invalid"] = "nieprawidłowa ilość",
+ ["inventory"] = "ekwipunek",
+ ["dealership"] = "sprzedawca Aut",
+ ["dealer_customers"] = "klienci salonu",
+ ["have_withdrawn"] = "wyciągasz x%s %s",
+ ["have_deposited"] = "deponujesz x%s %s",
+ ["boss_actions"] = "akcje szefa",
+ ["invalid_vehicle"] = "nieprawidłowy pojazd",
- -- sold vehicles
- ['boss_sold'] = 'list of sold vehicles',
- ['customer_client'] = 'customer name',
- ['customer_model'] = 'car model',
- ['customer_plate'] = 'car plate',
- ['customer_soldby'] = 'sold by',
- ['customer_date'] = 'date',
+ -- sold vehicles
+ ["boss_sold"] = "list of sold vehicles",
+ ["customer_client"] = "customer name",
+ ["customer_model"] = "car model",
+ ["customer_plate"] = "car plate",
+ ["customer_soldby"] = "sold by",
+ ["customer_date"] = "date",
}
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/sr.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/sr.lua
index 75289b03b..6d09e2701 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/sr.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/sr.lua
@@ -1,66 +1,65 @@
+Locales["sr"] = {
+ -- global menus
+ ["not_enough_in_society"] = "Nema dovoljno u kompaniji!",
+ ["player_cannot_hold"] = "Nemate dovoljno prostora u inventaru!",
+ ["vehicle_belongs"] = "Vozilo sa tablicama %s je sada vaše",
+ ["broke_company"] = "Nemate dovoljno novca na računu kompanije!",
+ ["license_missing"] = "Vi nemate vozačku dozvolu!",
+ ["buy_vehicle_shop"] = "Da li želite da kupite %s za $%s?",
+ ["buy_vehicle"] = "Kupi Vozilo",
+ ["car_dealer"] = "AutoSalon",
+ ["shop_awaiting_model"] = "Model vozila se učitava, molimo sačekajte.",
+ ["create_bill"] = "Napravi Račun",
+ ["dealer_boss"] = "AutoSalon - Boss",
+ ["delivered"] = "Vozilo je dostavljeno dileru",
+ ["depop_vehicle"] = "Vrati vozilo u garažu",
+ ["return_provider"] = "Vrati vozilo prodavcu",
+ ["get_rented_vehicles"] = "Vozila za iznajmljivanje",
+ ["no_current_vehicle"] = "Trenutno nema izloženih vozila!",
+ ["invalid_amount"] = "Nevažeći iznos",
+ ["invoice_amount"] = "Iznos Računa",
+ ["no"] = "Ne",
+ ["yes"] = "Da",
+ ["no_players"] = "Nema osobe u blizini",
+ ["not_enough_money"] = "Nemaš dovoljno novca",
+ ["not_rental"] = "Ovo nije ~r~iznajmljeno vozilo",
+ ["not_yours"] = "Ovo vozilo nije tvoje!",
+ ["paid_rental"] = "Platili ste $%s za iznajmljivanje vozila sa tablicama %s",
+ ["paid_rental_evicted"] = "Nemaš dovoljno novca da platiš $%s za iznajmljeno vozilo sa tablicama %s, vozilo ti je oduzeto i vraćeno autosalonu",
+ ["pop_vehicle"] = "Izbaci vozilo na prodaju",
+ ["rent_vehicle"] = "AutoSalon - Vozilo za iznajmljivanje",
+ ["return_provider_menu"] = "AutoSalon - Vrati vozilo",
+ ["rental_amount"] = "Iznos Rente",
+ ["sell_menu"] = "Pritisni [E] da prodaš tvoj %s za $%s",
+ ["set_vehicle_owner_rent"] = "Iznajmi vozilo",
+ ["set_vehicle_owner_sell"] = "Prodaj vozilo",
+ ["shop_menu"] = "Pritisni [E] da pristupiš meniju",
+ ["generic_shopitem"] = "$%s",
+ ["vehicle_dealer"] = "Vozilo - AutoSalon",
+ ["vehicle_menu"] = "Pritisni [E] da vratiš iznajmljeno vozilo",
+ ["vehicle_purchased"] = "Kupili ste vozilo",
+ ["vehicle_set_owned"] = "Vozilo %s je prepisano osobi %s",
+ ["vehicle_set_rented"] = "Vozilo %s je iznajmljeno za %s",
+ ["vehicle_sold_for"] = "%s je prodat za $%s",
+ ["vehicle_sold_to"] = "Vozilo sa tablicama %s prodato je osobi %s",
+ ["deposit_stock"] = "Ostavi",
+ ["take_stock"] = "Uzmi",
+ ["dealership_stock"] = "Autosalon Ostava",
+ ["amount"] = "Količina",
+ ["quantity_invalid"] = "Nevažeća količina!",
+ ["inventory"] = "Inventar",
+ ["dealership"] = "Diler Vozila",
+ ["dealer_customers"] = "Kupci",
+ ["have_withdrawn"] = "Podigli ste x%s %s",
+ ["have_deposited"] = "Ostavili ste x%s %s",
+ ["boss_actions"] = "Boss Akcije",
+ ["invalid_vehicle"] = "Pogrešno Vozilo",
-Locales['sr'] = {
- -- global menus
- ['not_enough_in_society'] = 'Nema dovoljno u kompaniji!',
- ['player_cannot_hold'] = 'Nemate dovoljno prostora u inventaru!',
- ['vehicle_belongs'] = 'Vozilo sa tablicama %s je sada vaše',
- ['broke_company'] = 'Nemate dovoljno novca na računu kompanije!',
- ['license_missing'] = 'Vi nemate vozačku dozvolu!',
- ['buy_vehicle_shop'] = 'Da li želite da kupite %s za $%s?',
- ['buy_vehicle'] = 'Kupi Vozilo',
- ['car_dealer'] = 'AutoSalon',
- ['shop_awaiting_model'] = 'Model vozila se učitava, molimo sačekajte.',
- ['create_bill'] = 'Napravi Račun',
- ['dealer_boss'] = 'AutoSalon - Boss',
- ['delivered'] = 'Vozilo je dostavljeno dileru',
- ['depop_vehicle'] = 'Vrati vozilo u garažu',
- ['return_provider'] = 'Vrati vozilo prodavcu',
- ['get_rented_vehicles'] = 'Vozila za iznajmljivanje',
- ['no_current_vehicle'] = 'Trenutno nema izloženih vozila!',
- ['invalid_amount'] = 'Nevažeći iznos',
- ['invoice_amount'] = 'Iznos Računa',
- ['no'] = 'Ne',
- ['yes'] = 'Da',
- ['no_players'] = 'Nema osobe u blizini',
- ['not_enough_money'] = 'Nemaš dovoljno novca',
- ['not_rental'] = 'Ovo nije ~r~iznajmljeno vozilo',
- ['not_yours'] = 'Ovo vozilo nije tvoje!',
- ['paid_rental'] = 'Platili ste $%s za iznajmljivanje vozila sa tablicama %s',
- ['paid_rental_evicted'] = 'Nemaš dovoljno novca da platiš $%s za iznajmljeno vozilo sa tablicama %s, vozilo ti je oduzeto i vraćeno autosalonu',
- ['pop_vehicle'] = 'Izbaci vozilo na prodaju',
- ['rent_vehicle'] = 'AutoSalon - Vozilo za iznajmljivanje',
- ['return_provider_menu'] = 'AutoSalon - Vrati vozilo',
- ['rental_amount'] = 'Iznos Rente',
- ['sell_menu'] = 'Pritisni [E] da prodaš tvoj %s za $%s',
- ['set_vehicle_owner_rent'] = 'Iznajmi vozilo',
- ['set_vehicle_owner_sell'] = 'Prodaj vozilo',
- ['shop_menu'] = 'Pritisni [E] da pristupiš meniju',
- ['generic_shopitem'] = '$%s',
- ['vehicle_dealer'] = 'Vozilo - AutoSalon',
- ['vehicle_menu'] = 'Pritisni [E] da vratiš iznajmljeno vozilo',
- ['vehicle_purchased'] = 'Kupili ste vozilo',
- ['vehicle_set_owned'] = 'Vozilo %s je prepisano osobi %s',
- ['vehicle_set_rented'] = 'Vozilo %s je iznajmljeno za %s',
- ['vehicle_sold_for'] = '%s je prodat za $%s',
- ['vehicle_sold_to'] = 'Vozilo sa tablicama %s prodato je osobi %s',
- ['deposit_stock'] = 'Ostavi',
- ['take_stock'] = 'Uzmi',
- ['dealership_stock'] = 'Autosalon Ostava',
- ['amount'] = 'Količina',
- ['quantity_invalid'] = 'Nevažeća količina!',
- ['inventory'] = 'Inventar',
- ['dealership'] = 'Diler Vozila',
- ['dealer_customers'] = 'Kupci',
- ['have_withdrawn'] = 'Podigli ste x%s %s',
- ['have_deposited'] = 'Ostavili ste x%s %s',
- ['boss_actions'] = 'Boss Akcije',
- ['invalid_vehicle'] = 'Pogrešno Vozilo',
-
- -- sold vehicles
- ['boss_sold'] = 'Lista prodatih vozila',
- ['customer_client'] = 'Ime Kupca',
- ['customer_model'] = 'Model',
- ['customer_plate'] = 'Tablice',
- ['customer_soldby'] = 'Prodato od strane',
- ['customer_date'] = 'Datum',
+ -- sold vehicles
+ ["boss_sold"] = "Lista prodatih vozila",
+ ["customer_client"] = "Ime Kupca",
+ ["customer_model"] = "Model",
+ ["customer_plate"] = "Tablice",
+ ["customer_soldby"] = "Prodato od strane",
+ ["customer_date"] = "Datum",
}
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/zh-cn.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/zh-cn.lua
index c615ac235..5209e0f40 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/locales/zh-cn.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/locales/zh-cn.lua
@@ -1,65 +1,65 @@
-Locales['zh-cn'] = {
- -- global menus
- ['not_enough_in_society'] = '很抱歉!暂无足够的~r~物品~s~项目!',
- ['player_cannot_hold'] = '很抱歉!您的背包~r~尚无足够~s~空间!',
- ['vehicle_belongs'] = '车牌号为%s的载具现已注册您的名下',
- ['broke_company'] = '当前公司对外账户暂无足够的资金!',
- ['license_missing'] = '由于您尚未获取到驾驶执照,无法于此处购买车辆!',
- ['buy_vehicle_shop'] = '确认购买车辆%s -支付$%s?',
- ['buy_vehicle'] = '购买车辆',
- ['car_dealer'] = '车辆商店',
- ['shop_awaiting_model'] = '当前车辆数据正在加载, 请耐心等待',
- ['create_bill'] = '创建账单',
- ['dealer_boss'] = '汽车经销商 - 老板',
- ['delivered'] = '该车辆已交付给经销商',
- ['depop_vehicle'] = '将车辆返回车库',
- ['return_provider'] = '将车辆归还给供应商',
- ['get_rented_vehicles'] = '出租载具',
- ['no_current_vehicle'] = '您目前没有展示车辆',
- ['invalid_amount'] = '无效金额',
- ['invoice_amount'] = '账单金额',
- ['no'] = '否',
- ['yes'] = '是',
- ['no_players'] = '附近暂无其他市民!',
- ['not_enough_money'] = '当前账户暂无足够资金!',
- ['not_rental'] = '此载具目前不对外~r~出租~s~!',
- ['not_yours'] = '此载具并未注册于您的名下',
- ['paid_rental'] = '已支付$%s用于租用载具:%s',
- ['paid_rental_evicted'] = '无法支付:$%s-检测到您名下号牌为:%s租用车辆您已无法继续租用, 它已退还给经销商',
- ['pop_vehicle'] = '出售车辆',
- ['rent_vehicle'] = '汽车经销商 - 出租车辆',
- ['return_provider_menu'] = '汽车经销商 - 将车辆返回给供应商',
- ['rental_amount'] = '租金金额',
- ['sell_menu'] = '键下 [E] 出售载具 %s - $%s',
- ['set_vehicle_owner_rent'] = '设为租用',
- ['set_vehicle_owner_sell'] = '设为出售',
- ['shop_menu'] = '键下 [E] 访问选单',
- ['generic_shopitem'] = '$%s',
- ['vehicle_dealer'] = '载具 - 汽车经销商',
- ['vehicle_menu'] = '键下 [E] 归还载具',
- ['vehicle_purchased'] = '成功购买一辆载具',
- ['vehicle_set_owned'] = '载具: %s 已注册至%s名下',
- ['vehicle_set_rented'] = '载具: %s 已租用给 %s',
- ['vehicle_sold_for'] = '载具: %s 以 $%s 的价格出售!',
- ['vehicle_sold_to'] = '号牌为:%s 的载具已被出售给%s',
- ['deposit_stock'] = '存入物品',
- ['take_stock'] = '取出物品',
- ['dealership_stock'] = '经销商仓库',
- ['amount'] = '具体数量',
- ['quantity_invalid'] = '错误的数量输入!',
- ['inventory'] = '库存',
- ['dealership'] = '汽车经销商',
- ['dealer_customers'] = '客户',
- ['have_withdrawn'] = '已提取 %sx%s',
- ['have_deposited'] = '已存放 %sx%s',
- ['boss_actions'] = '人事管理',
- ['invalid_vehicle'] = '无效的车辆数据',
+Locales["zh-cn"] = {
+ -- global menus
+ ["not_enough_in_society"] = "很抱歉!暂无足够的~r~物品~s~项目!",
+ ["player_cannot_hold"] = "很抱歉!您的背包~r~尚无足够~s~空间!",
+ ["vehicle_belongs"] = "车牌号为%s的载具现已注册您的名下",
+ ["broke_company"] = "当前公司对外账户暂无足够的资金!",
+ ["license_missing"] = "由于您尚未获取到驾驶执照,无法于此处购买车辆!",
+ ["buy_vehicle_shop"] = "确认购买车辆%s -支付$%s?",
+ ["buy_vehicle"] = "购买车辆",
+ ["car_dealer"] = "车辆商店",
+ ["shop_awaiting_model"] = "当前车辆数据正在加载, 请耐心等待",
+ ["create_bill"] = "创建账单",
+ ["dealer_boss"] = "汽车经销商 - 老板",
+ ["delivered"] = "该车辆已交付给经销商",
+ ["depop_vehicle"] = "将车辆返回车库",
+ ["return_provider"] = "将车辆归还给供应商",
+ ["get_rented_vehicles"] = "出租载具",
+ ["no_current_vehicle"] = "您目前没有展示车辆",
+ ["invalid_amount"] = "无效金额",
+ ["invoice_amount"] = "账单金额",
+ ["no"] = "否",
+ ["yes"] = "是",
+ ["no_players"] = "附近暂无其他市民!",
+ ["not_enough_money"] = "当前账户暂无足够资金!",
+ ["not_rental"] = "此载具目前不对外~r~出租~s~!",
+ ["not_yours"] = "此载具并未注册于您的名下",
+ ["paid_rental"] = "已支付$%s用于租用载具:%s",
+ ["paid_rental_evicted"] = "无法支付:$%s-检测到您名下号牌为:%s租用车辆您已无法继续租用, 它已退还给经销商",
+ ["pop_vehicle"] = "出售车辆",
+ ["rent_vehicle"] = "汽车经销商 - 出租车辆",
+ ["return_provider_menu"] = "汽车经销商 - 将车辆返回给供应商",
+ ["rental_amount"] = "租金金额",
+ ["sell_menu"] = "键下 [E] 出售载具 %s - $%s",
+ ["set_vehicle_owner_rent"] = "设为租用",
+ ["set_vehicle_owner_sell"] = "设为出售",
+ ["shop_menu"] = "键下 [E] 访问选单",
+ ["generic_shopitem"] = "$%s",
+ ["vehicle_dealer"] = "载具 - 汽车经销商",
+ ["vehicle_menu"] = "键下 [E] 归还载具",
+ ["vehicle_purchased"] = "成功购买一辆载具",
+ ["vehicle_set_owned"] = "载具: %s 已注册至%s名下",
+ ["vehicle_set_rented"] = "载具: %s 已租用给 %s",
+ ["vehicle_sold_for"] = "载具: %s 以 $%s 的价格出售!",
+ ["vehicle_sold_to"] = "号牌为:%s 的载具已被出售给%s",
+ ["deposit_stock"] = "存入物品",
+ ["take_stock"] = "取出物品",
+ ["dealership_stock"] = "经销商仓库",
+ ["amount"] = "具体数量",
+ ["quantity_invalid"] = "错误的数量输入!",
+ ["inventory"] = "库存",
+ ["dealership"] = "汽车经销商",
+ ["dealer_customers"] = "客户",
+ ["have_withdrawn"] = "已提取 %sx%s",
+ ["have_deposited"] = "已存放 %sx%s",
+ ["boss_actions"] = "人事管理",
+ ["invalid_vehicle"] = "无效的车辆数据",
- -- sold vehicles
- ['boss_sold'] = '已售车辆',
- ['customer_client'] = '客户',
- ['customer_model'] = '车辆模型',
- ['customer_plate'] = '车牌',
- ['customer_soldby'] = '销售者',
- ['customer_date'] = '日期',
+ -- sold vehicles
+ ["boss_sold"] = "已售车辆",
+ ["customer_client"] = "客户",
+ ["customer_model"] = "车辆模型",
+ ["customer_plate"] = "车牌",
+ ["customer_soldby"] = "销售者",
+ ["customer_date"] = "日期",
}
From 6e1298ebea83353b025777d696573b89a40fc2aa Mon Sep 17 00:00:00 2001
From: bitpredator <67551273+bitpredator@users.noreply.github.com>
Date: Sun, 7 Apr 2024 11:23:53 +0200
Subject: [PATCH 3/6] =?UTF-8?q?chore:=20(esx=5Fvehicleshop\fxmanifest.lua)?=
=?UTF-8?q?=20=F0=9F=8E=A8=20Run=20formatter?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../esx_vehicleshop/fxmanifest.lua | 42 +++++++++----------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/fxmanifest.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/fxmanifest.lua
index dd79f471e..85d46759c 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/fxmanifest.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/fxmanifest.lua
@@ -1,26 +1,26 @@
-fx_version 'cerulean'
-game 'gta5'
-lua54 'yes'
-description 'ESX Vehicle Shop'
-version '1.0.1'
+fx_version("cerulean")
+game("gta5")
+lua54("yes")
+description("ESX Vehicle Shop")
+version("1.0.1")
-shared_script '@es_extended/imports.lua'
+shared_script("@es_extended/imports.lua")
-server_scripts {
- '@oxmysql/lib/MySQL.lua',
- '@es_extended/locale.lua',
- 'locales/*.lua',
- 'config.lua',
- 'server/*.lua'
-}
+server_scripts({
+ "@oxmysql/lib/MySQL.lua",
+ "@es_extended/locale.lua",
+ "locales/*.lua",
+ "config.lua",
+ "server/*.lua",
+})
-client_scripts {
- '@es_extended/locale.lua',
- 'locales/*.lua',
- 'config.lua',
- 'client/*.lua'
-}
+client_scripts({
+ "@es_extended/locale.lua",
+ "locales/*.lua",
+ "config.lua",
+ "client/*.lua",
+})
-dependency 'es_extended'
+dependency("es_extended")
-export 'GeneratePlate'
\ No newline at end of file
+export("GeneratePlate")
From 8821d58cbe8aa087d298a8a04251faa0d108af90 Mon Sep 17 00:00:00 2001
From: bitpredator <67551273+bitpredator@users.noreply.github.com>
Date: Sun, 7 Apr 2024 11:24:50 +0200
Subject: [PATCH 4/6] =?UTF-8?q?chore:=20(esx=5Fvehicleshop\config.lua)=20?=
=?UTF-8?q?=F0=9F=8E=A8=20Run=20formatter?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../[esx_addons]/esx_vehicleshop/config.lua | 57 +++++++++----------
1 file changed, 28 insertions(+), 29 deletions(-)
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/config.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/config.lua
index 412135f7c..1998885b9 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/config.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/config.lua
@@ -1,17 +1,17 @@
-Config = {}
-Config.DrawDistance = 10
-Config.MarkerColor = {r = 120, g = 120, b = 240}
-Config.EnablePlayerManagement = true -- enables the actual car dealer job. You'll need esx_addonaccount, esx_billing and esx_society
-Config.ResellPercentage = 50
+Config = {}
+Config.DrawDistance = 10
+Config.MarkerColor = { r = 120, g = 120, b = 240 }
+Config.EnablePlayerManagement = true -- enables the actual car dealer job. You'll need esx_addonaccount, esx_billing and esx_society
+Config.ResellPercentage = 50
-Config.Locale = 'en'
+Config.Locale = "en"
Config.LicenseEnable = false -- require people to own drivers license when buying vehicles? Only applies if EnablePlayerManagement is disabled. Requires esx_license
-- looks like this: 'LLL NNN'
-- The maximum plate length is 8 chars (including spaces & symbols), don't go past it!
-Config.PlateLetters = 3
-Config.PlateNumbers = 3
+Config.PlateLetters = 3
+Config.PlateNumbers = 3
Config.PlateUseSpace = true
Config.OxInventory = ESX.GetConfig().OxInventory
@@ -20,47 +20,46 @@ Config.Blip = {
show = true,
Sprite = 326,
Display = 4,
- Scale = 0.8
+ Scale = 0.8,
}
Config.Zones = {
ShopEntering = {
- Pos = vector3(-33.7, -1102.0, 25.4),
- Size = {x = 1.5, y = 1.5, z = 1.0},
- Type = 1
+ Pos = vector3(-33.7, -1102.0, 25.4),
+ Size = { x = 1.5, y = 1.5, z = 1.0 },
+ Type = 1,
},
ShopInside = {
- Pos = vector3(-47.5, -1097.2, 25.4),
- Size = {x = 1.5, y = 1.5, z = 1.0},
+ Pos = vector3(-47.5, -1097.2, 25.4),
+ Size = { x = 1.5, y = 1.5, z = 1.0 },
Heading = -20.0,
- Type = -1
+ Type = -1,
},
ShopOutside = {
- Pos = vector3(-28.6, -1085.6, 25.5),
- Size = {x = 1.5, y = 1.5, z = 1.0},
+ Pos = vector3(-28.6, -1085.6, 25.5),
+ Size = { x = 1.5, y = 1.5, z = 1.0 },
Heading = 330.0,
- Type = -1
+ Type = -1,
},
BossActions = {
- Pos = vector3(-32.0, -1114.2, 25.4),
- Size = {x = 1.5, y = 1.5, z = 1.0},
- Type = -1
+ Pos = vector3(-32.0, -1114.2, 25.4),
+ Size = { x = 1.5, y = 1.5, z = 1.0 },
+ Type = -1,
},
GiveBackVehicle = {
- Pos = vector3(-18.2, -1078.5, 25.6),
- Size = {x = 3.0, y = 3.0, z = 1.0},
- Type = (Config.EnablePlayerManagement and 1 or -1)
+ Pos = vector3(-18.2, -1078.5, 25.6),
+ Size = { x = 3.0, y = 3.0, z = 1.0 },
+ Type = (Config.EnablePlayerManagement and 1 or -1),
},
ResellVehicle = {
- Pos = vector3(-44.6, -1080.7, 25.6),
- Size = {x = 3.0, y = 3.0, z = 1.0},
- Type = 1
- }
-
+ Pos = vector3(-44.6, -1080.7, 25.6),
+ Size = { x = 3.0, y = 3.0, z = 1.0 },
+ Type = 1,
+ },
}
From 3d90e34fcd28c69efc6c6781ded8f82ffd80a813 Mon Sep 17 00:00:00 2001
From: bitpredator <67551273+bitpredator@users.noreply.github.com>
Date: Sun, 7 Apr 2024 11:28:32 +0200
Subject: [PATCH 5/6] =?UTF-8?q?chore:=20(esx=5Fvehicleshop\server\main.lua?=
=?UTF-8?q?)=20=F0=9F=8E=A8=20Run=20formatter?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../esx_vehicleshop/server/main.lua | 510 ++++++++++--------
1 file changed, 299 insertions(+), 211 deletions(-)
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/server/main.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/server/main.lua
index fbb960198..1825251d4 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/server/main.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/server/main.lua
@@ -1,51 +1,53 @@
local Config = Config
local vehicleShop = {
- categories = {},
- vehicles = {},
- vehiclesByModel = {},
- soldVehicles = {},
- cardealerVehicles = {},
- rentedVehicles = {}
+ categories = {},
+ vehicles = {},
+ vehiclesByModel = {},
+ soldVehicles = {},
+ cardealerVehicles = {},
+ rentedVehicles = {},
}
CreateThread(function()
- while true do
- Wait(60000)
- collectgarbage("collect")
- end
+ while true do
+ Wait(60000)
+ collectgarbage("collect")
+ end
end)
local function getCategories()
- vehicleShop.categories = MySQL.query.await('SELECT * FROM vehicle_categories')
+ vehicleShop.categories = MySQL.query.await("SELECT * FROM vehicle_categories")
GlobalState.vehicleShop = vehicleShop
return true
end
local function getVehicles()
- vehicleShop.vehicles = MySQL.query.await('SELECT vehicles.*, vehicle_categories.label AS categoryLabel FROM vehicles JOIN vehicle_categories ON vehicles.category = vehicle_categories.name')
+ vehicleShop.vehicles = MySQL.query.await(
+ "SELECT vehicles.*, vehicle_categories.label AS categoryLabel FROM vehicles JOIN vehicle_categories ON vehicles.category = vehicle_categories.name"
+ )
for _, vehicle in pairs(vehicleShop.vehicles) do
vehicleShop.vehiclesByModel[vehicle.model] = vehicle
end
- GlobalState.vehicleShop = vehicleShop
+ GlobalState.vehicleShop = vehicleShop
return true
end
local function getSoldVehicles()
- vehicleShop.soldVehicles = MySQL.query.await('SELECT * FROM vehicle_sold ORDER BY DATE DESC')
+ vehicleShop.soldVehicles = MySQL.query.await("SELECT * FROM vehicle_sold ORDER BY DATE DESC")
GlobalState.vehicleShop = vehicleShop
return true
end
local function getCardealerVehicles()
- vehicleShop.cardealerVehicles = MySQL.query.await('SELECT * FROM cardealer_vehicles ORDER BY vehicle ASC')
+ vehicleShop.cardealerVehicles = MySQL.query.await("SELECT * FROM cardealer_vehicles ORDER BY vehicle ASC")
GlobalState.vehicleShop = vehicleShop
return true
end
local function getRentedVehicles()
- MySQL.query('SELECT * FROM rented_vehicles ORDER BY player_name ASC', function(result)
+ MySQL.query("SELECT * FROM rented_vehicles ORDER BY player_name ASC", function(result)
vehicleShop.rentedVehicles = {}
for i = 1, #result do
@@ -53,7 +55,7 @@ local function getRentedVehicles()
vehicleShop.rentedVehicles[#vehicleShop.rentedVehicles + 1] = {
name = vehicle.vehicle,
plate = vehicle.plate,
- playerName = vehicle.player_name
+ playerName = vehicle.player_name,
}
end
GlobalState.vehicleShop = vehicleShop
@@ -62,7 +64,11 @@ local function getRentedVehicles()
end
CreateThread(function()
- TriggerEvent('esx_society:registerSociety', 'cardealer', TranslateCap('car_dealer'), 'society_cardealer', 'society_cardealer', 'society_cardealer', {type = 'private'})
+ TriggerEvent("esx_society:registerSociety", "cardealer", TranslateCap("car_dealer"), "society_cardealer", "society_cardealer", "society_cardealer",
+ {
+ type = "private"
+ }
+ )
getCategories()
getVehicles()
@@ -72,62 +78,80 @@ CreateThread(function()
local char = Config.PlateLetters
char = char + Config.PlateNumbers
- if Config.PlateUseSpace then char = char + 1 end
+ if Config.PlateUseSpace then
+ char = char + 1
+ end
if char > 8 then
- print(('[^3WARNING^7] Character Limit Exceeded, ^5%s/8^7!'):format(char))
+ print(("[^3WARNING^7] Character Limit Exceeded, ^5%s/8^7!"):format(char))
end
end)
local function removeOwnedVehicle(plate)
- MySQL.update('DELETE FROM owned_vehicles WHERE plate = ?', {plate})
+ MySQL.update("DELETE FROM owned_vehicles WHERE plate = ?", { plate })
end
local function getVehicleFromModel(model)
return vehicleShop.vehiclesByModel[model]
end
-RegisterNetEvent('esx_vehicleshop:setVehicleOwnedPlayerId')
-AddEventHandler('esx_vehicleshop:setVehicleOwnedPlayerId', function(playerId, vehicleProps, model, label)
+RegisterNetEvent("esx_vehicleshop:setVehicleOwnedPlayerId")
+AddEventHandler("esx_vehicleshop:setVehicleOwnedPlayerId", function(playerId, vehicleProps, model, label)
local xPlayer, xTarget = ESX.GetPlayerFromId(source), ESX.GetPlayerFromId(playerId)
- if Player(source).state.job ~= 'cardealer' or not xTarget then
+ if Player(source).state.job ~= "cardealer" or not xTarget then
return
end
- if not model then return end
+ if not model then
+ return
+ end
for i = 1, #vehicleShop.cardealerVehicles, 1 do
local v = vehicleShop.cardealerVehicles[i]
if v.vehicle == model then
- local sqlDel = MySQL.update.await('DELETE FROM cardealer_vehicles WHERE id = ?', {v.id})
- if not sqlDel then return end
+ local sqlDel = MySQL.update.await("DELETE FROM cardealer_vehicles WHERE id = ?", { v.id })
+ if not sqlDel then
+ return
+ end
table.remove(vehicleShop.cardealerVehicles, i)
GlobalState.vehicleShop = vehicleShop
break
end
end
- MySQL.insert('INSERT INTO owned_vehicles (owner, plate, vehicle) VALUES (?, ?, ?)', {xTarget.identifier, vehicleProps.plate, json.encode(vehicleProps)}, function()
- xPlayer.showNotification(TranslateCap('vehicle_set_owned', vehicleProps.plate, xTarget.getName()))
- xTarget.showNotification(TranslateCap('vehicle_belongs', vehicleProps.plate))
- end)
+ MySQL.insert(
+ "INSERT INTO owned_vehicles (owner, plate, vehicle) VALUES (?, ?, ?)",
+ { xTarget.identifier, vehicleProps.plate, json.encode(vehicleProps) },
+ function()
+ xPlayer.showNotification(TranslateCap("vehicle_set_owned", vehicleProps.plate, xTarget.getName()))
+ xTarget.showNotification(TranslateCap("vehicle_belongs", vehicleProps.plate))
+ end
+ )
- local sqlIns = MySQL.insert.await('INSERT INTO vehicle_sold (client, model, plate, soldby, date) VALUES (?, ?, ?, ?, ?)', {xTarget.getName(), label, vehicleProps.plate, xPlayer.getName(), os.date('%Y-%m-%d %H:%M')})
- if not sqlIns then return end
- vehicleShop.soldVehicles[#vehicleShop.soldVehicles + 1] = {xTarget.getName(), label, vehicleProps.plate, xPlayer.getName(), os.date('%Y-%m-%d %H:%M')}
+ local sqlIns = MySQL.insert.await(
+ "INSERT INTO vehicle_sold (client, model, plate, soldby, date) VALUES (?, ?, ?, ?, ?)",
+ { xTarget.getName(), label, vehicleProps.plate, xPlayer.getName(), os.date("%Y-%m-%d %H:%M") }
+ )
+ if not sqlIns then
+ return
+ end
+ vehicleShop.soldVehicles[#vehicleShop.soldVehicles + 1] =
+ { xTarget.getName(), label, vehicleProps.plate, xPlayer.getName(), os.date("%Y-%m-%d %H:%M") }
GlobalState.vehicleShop = vehicleShop
end)
-RegisterNetEvent('esx_vehicleshop:rentVehicle')
-AddEventHandler('esx_vehicleshop:rentVehicle', function(vehicle, plate, rentPrice, playerId)
+RegisterNetEvent("esx_vehicleshop:rentVehicle")
+AddEventHandler("esx_vehicleshop:rentVehicle", function(vehicle, plate, rentPrice, playerId)
local xPlayer, xTarget = ESX.GetPlayerFromId(source), ESX.GetPlayerFromId(playerId)
- if Player(source).state.job ~= 'cardealer' or not xTarget then
+ if Player(source).state.job ~= "cardealer" or not xTarget then
return
end
- if not vehicle or not plate or not rentPrice then return end
+ if not vehicle or not plate or not rentPrice then
+ return
+ end
local price = nil
@@ -135,64 +159,70 @@ AddEventHandler('esx_vehicleshop:rentVehicle', function(vehicle, plate, rentPric
local v = vehicleShop.cardealerVehicles[i]
if v.vehicle == vehicle then
price = v.price
- local sqlDel = MySQL.update.await('DELETE FROM cardealer_vehicles WHERE id = ?', {v.id})
- if not sqlDel then return end
+ local sqlDel = MySQL.update.await("DELETE FROM cardealer_vehicles WHERE id = ?", { v.id })
+ if not sqlDel then
+ return
+ end
table.remove(vehicleShop.cardealerVehicles, i)
GlobalState.vehicleShop = vehicleShop
break
end
end
- if not price then return end
+ if not price then
+ return
+ end
- MySQL.insert('INSERT INTO rented_vehicles (vehicle, plate, player_name, base_price, rent_price, owner) VALUES (?, ?, ?, ?, ?, ?)', {vehicle, plate, xTarget.getName(), price, rentPrice, xTarget.identifier},
- function()
- xPlayer.showNotification(TranslateCap('vehicle_set_rented', plate, xTarget.getName()))
- end)
+ MySQL.insert(
+ "INSERT INTO rented_vehicles (vehicle, plate, player_name, base_price, rent_price, owner) VALUES (?, ?, ?, ?, ?, ?)",
+ { vehicle, plate, xTarget.getName(), price, rentPrice, xTarget.identifier },
+ function()
+ xPlayer.showNotification(TranslateCap("vehicle_set_rented", plate, xTarget.getName()))
+ end
+ )
end)
-RegisterNetEvent('esx_vehicleshop:getStockItem')
-AddEventHandler('esx_vehicleshop:getStockItem', function(itemName, count)
+RegisterNetEvent("esx_vehicleshop:getStockItem")
+AddEventHandler("esx_vehicleshop:getStockItem", function(itemName, count)
local source = source
local xPlayer = ESX.GetPlayerFromId(source)
- TriggerEvent('esx_addoninventory:getSharedInventory', 'society_cardealer', function(inventory)
+ TriggerEvent("esx_addoninventory:getSharedInventory", "society_cardealer", function(inventory)
local item = inventory.getItem(itemName)
if count > 0 and item.count >= count then
-
if not xPlayer.canCarryItem(itemName, count) then
- return xPlayer.showNotification(TranslateCap('player_cannot_hold'))
+ return xPlayer.showNotification(TranslateCap("player_cannot_hold"))
end
inventory.removeItem(itemName, count)
xPlayer.addInventoryItem(itemName, count)
- xPlayer.showNotification(TranslateCap('have_withdrawn', count, item.label))
+ xPlayer.showNotification(TranslateCap("have_withdrawn", count, item.label))
else
- xPlayer.showNotification(TranslateCap('not_enough_in_society'))
+ xPlayer.showNotification(TranslateCap("not_enough_in_society"))
end
end)
end)
-RegisterNetEvent('esx_vehicleshop:putStockItems')
-AddEventHandler('esx_vehicleshop:putStockItems', function(itemName, count)
+RegisterNetEvent("esx_vehicleshop:putStockItems")
+AddEventHandler("esx_vehicleshop:putStockItems", function(itemName, count)
local source = source
local xPlayer = ESX.GetPlayerFromId(source)
- TriggerEvent('esx_addoninventory:getSharedInventory', 'society_cardealer', function(inventory)
+ TriggerEvent("esx_addoninventory:getSharedInventory", "society_cardealer", function(inventory)
local item = inventory.getItem(itemName)
if item.count < 0 then
- xPlayer.showNotification(TranslateCap('invalid_amount'))
+ xPlayer.showNotification(TranslateCap("invalid_amount"))
return
end
xPlayer.removeInventoryItem(itemName, count)
inventory.addItem(itemName, count)
- xPlayer.showNotification(TranslateCap('have_deposited', count, item.label))
+ xPlayer.showNotification(TranslateCap("have_deposited", count, item.label))
end)
end)
-ESX.RegisterServerCallback('esx_vehicleshop:buyVehicle', function(source, cb, model, plate)
+ESX.RegisterServerCallback("esx_vehicleshop:buyVehicle", function(source, cb, model, plate)
local xPlayer = ESX.GetPlayerFromId(source)
local modelPrice = getVehicleFromModel(model).price
@@ -208,21 +238,30 @@ ESX.RegisterServerCallback('esx_vehicleshop:buyVehicle', function(source, cb, mo
xPlayer.removeMoney(modelPrice, "Vehicle Purchase")
- MySQL.insert('INSERT INTO owned_vehicles (owner, plate, vehicle) VALUES (?, ?, ?)', {xPlayer.identifier, plate, json.encode({model = joaat(model), plate = plate})
- }, function(rowsChanged)
- xPlayer.showNotification(TranslateCap('vehicle_belongs', plate))
- ESX.OneSync.SpawnVehicle(joaat(model), Config.Zones.ShopOutside.Pos, Config.Zones.ShopOutside.Heading,{plate = plate}, function(vehicle)
- Wait(100)
- local vehicle = NetworkGetEntityFromNetworkId(vehicle)
- Wait(300)
- TaskWarpPedIntoVehicle(GetPlayerPed(source), vehicle, -1)
- end)
- cb(true)
- end)
+ MySQL.insert(
+ "INSERT INTO owned_vehicles (owner, plate, vehicle) VALUES (?, ?, ?)",
+ { xPlayer.identifier, plate, json.encode({ model = joaat(model), plate = plate }) },
+ function(rowsChanged)
+ xPlayer.showNotification(TranslateCap("vehicle_belongs", plate))
+ ESX.OneSync.SpawnVehicle(
+ joaat(model),
+ Config.Zones.ShopOutside.Pos,
+ Config.Zones.ShopOutside.Heading,
+ { plate = plate },
+ function(vehicle)
+ Wait(100)
+ local vehicle = NetworkGetEntityFromNetworkId(vehicle)
+ Wait(300)
+ TaskWarpPedIntoVehicle(GetPlayerPed(source), vehicle, -1)
+ end
+ )
+ cb(true)
+ end
+ )
end)
-ESX.RegisterServerCallback('esx_vehicleshop:buyCarDealerVehicle', function(source, cb, model)
- if Player(source).state.job ~= 'cardealer' then
+ESX.RegisterServerCallback("esx_vehicleshop:buyCarDealerVehicle", function(source, cb, model)
+ if Player(source).state.job ~= "cardealer" then
return cb(false)
end
@@ -232,29 +271,32 @@ ESX.RegisterServerCallback('esx_vehicleshop:buyCarDealerVehicle', function(sourc
return cb(false)
end
- TriggerEvent('esx_addonaccount:getSharedAccount', 'society_cardealer', function(account)
+ TriggerEvent("esx_addonaccount:getSharedAccount", "society_cardealer", function(account)
if account.money < modelPrice then
return cb(false)
end
- MySQL.insert('INSERT INTO cardealer_vehicles (vehicle, price) VALUES (?, ?)', {model, modelPrice},
- function(rowsChanged)
- if not rowsChanged then
- cb(false)
- return
+ MySQL.insert(
+ "INSERT INTO cardealer_vehicles (vehicle, price) VALUES (?, ?)",
+ { model, modelPrice },
+ function(rowsChanged)
+ if not rowsChanged then
+ cb(false)
+ return
+ end
+ account.removeMoney(modelPrice)
+ getCardealerVehicles()
+ cb(true)
end
- account.removeMoney(modelPrice)
- getCardealerVehicles()
- cb(true)
- end)
+ )
end)
end)
-RegisterNetEvent('esx_vehicleshop:returnProvider')
-AddEventHandler('esx_vehicleshop:returnProvider', function(vehicleModel)
+RegisterNetEvent("esx_vehicleshop:returnProvider")
+AddEventHandler("esx_vehicleshop:returnProvider", function(vehicleModel)
local xPlayer = ESX.GetPlayerFromId(source)
- if Player(source).state.job ~= 'cardealer' then
+ if Player(source).state.job ~= "cardealer" then
return
end
@@ -266,57 +308,68 @@ AddEventHandler('esx_vehicleshop:returnProvider', function(vehicleModel)
if v.vehicle == vehicleModel then
id = v.id
price = v.price
- local sqlDel = MySQL.update.await('DELETE FROM cardealer_vehicles WHERE id = ?', {v.id})
- if not sqlDel then return end
+ local sqlDel = MySQL.update.await("DELETE FROM cardealer_vehicles WHERE id = ?", { v.id })
+ if not sqlDel then
+ return
+ end
table.remove(vehicleShop.cardealerVehicles, i)
GlobalState.vehicleShop = vehicleShop
break
end
end
- if not id or not price then return end
+ if not id or not price then
+ return
+ end
- TriggerEvent('esx_addonaccount:getSharedAccount', 'society_cardealer', function(account)
+ TriggerEvent("esx_addonaccount:getSharedAccount", "society_cardealer", function(account)
local vehPrice = ESX.Math.Round(price * 0.75)
local vehicleLabel = getVehicleFromModel(vehicleModel).label
account.addMoney(vehPrice)
- xPlayer.showNotification(TranslateCap('vehicle_sold_for', vehicleLabel, ESX.Math.GroupDigits(vehPrice)))
+ xPlayer.showNotification(TranslateCap("vehicle_sold_for", vehicleLabel, ESX.Math.GroupDigits(vehPrice)))
end)
end)
-ESX.RegisterServerCallback('esx_vehicleshop:giveBackVehicle', function(source, cb, plate)
+ESX.RegisterServerCallback("esx_vehicleshop:giveBackVehicle", function(source, cb, plate)
local basePrice, vehicle = nil, nil
- if not plate then return end
+ if not plate then
+ return
+ end
for i = 1, #vehicleShop.rentedVehicles, 1 do
local v = vehicleShop.rentedVehicles[i]
if v.plate == plate then
basePrice = v.base_price
vehicle = v.vehicle
- local sqlDel = MySQL.update.await('DELETE FROM rented_vehicles WHERE plate = ?', {plate})
- if not sqlDel then return cb(false) end
+ local sqlDel = MySQL.update.await("DELETE FROM rented_vehicles WHERE plate = ?", { plate })
+ if not sqlDel then
+ return cb(false)
+ end
table.remove(vehicleShop.rentedVehicles, i)
GlobalState.vehicleShop = vehicleShop
break
end
end
- local sqlIns = MySQL.insert.await('INSERT INTO cardealer_vehicles (vehicle, price) VALUES (?, ?)', {vehicle, basePrice})
- if not sqlIns then return cb(false) end
+ local sqlIns =
+ MySQL.insert.await("INSERT INTO cardealer_vehicles (vehicle, price) VALUES (?, ?)", { vehicle, basePrice })
+ if not sqlIns then
+ return cb(false)
+ end
getCardealerVehicles()
removeOwnedVehicle(plate)
cb(true)
end)
-ESX.RegisterServerCallback('esx_vehicleshop:resellVehicle', function(source, cb, plate, model)
+ESX.RegisterServerCallback("esx_vehicleshop:resellVehicle", function(source, cb, plate, model)
local xPlayer, resellPrice = ESX.GetPlayerFromId(source)
- if Player(source).state.job == 'cardealer' or not Config.EnablePlayerManagement then
+ if Player(source).state.job == "cardealer" or not Config.EnablePlayerManagement then
-- calculate the resell price
- for i=1, #vehicles, 1 do
+ for i = 1, #vehicles, 1 do
if joaat(vehicles[i].model) == model then
resellPrice = ESX.Math.Round(vehicles[i].price / 100 * Config.ResellPercentage)
break
@@ -324,7 +377,7 @@ ESX.RegisterServerCallback('esx_vehicleshop:resellVehicle', function(source, cb,
end
if not resellPrice then
- print(('[^3WARNING^7] Player ^5%s^7 Attempted To Resell Invalid Vehicle - ^5%s^7!'):format(source, model))
+ print(("[^3WARNING^7] Player ^5%s^7 Attempted To Resell Invalid Vehicle - ^5%s^7!"):format(source, model))
return cb(false)
end
for i = 1, #vehicleShop.rentedVehicles, 1 do
@@ -333,157 +386,192 @@ ESX.RegisterServerCallback('esx_vehicleshop:resellVehicle', function(source, cb,
return
end
end
- MySQL.single('SELECT * FROM owned_vehicles WHERE owner = ? AND plate = ?', {xPlayer.identifier, plate},
- function(result)
- if not result then
- return cb(false)
- end
- local vehicle = json.decode(result.vehicle)
+ MySQL.single(
+ "SELECT * FROM owned_vehicles WHERE owner = ? AND plate = ?",
+ { xPlayer.identifier, plate },
+ function(result)
+ if not result then
+ return cb(false)
+ end
+ local vehicle = json.decode(result.vehicle)
+
+ if vehicle.model ~= model then
+ print(
+ ("[^3WARNING^7] Player ^5%s^7 Attempted To Resell Vehicle With Invalid Model - ^5%s^7!"):format(
+ source,
+ model
+ )
+ )
+ return cb(false)
+ end
+ if vehicle.plate ~= plate then
+ print(
+ ("[^3WARNING^7] Player ^5%s^7 Attempted To Resell Vehicle With Invalid Plate - ^5%s^7!"):format(
+ source,
+ plate
+ )
+ )
+ return cb(false)
+ end
- if vehicle.model ~= model then
- print(('[^3WARNING^7] Player ^5%s^7 Attempted To Resell Vehicle With Invalid Model - ^5%s^7!'):format(source, model))
- return cb(false)
+ xPlayer.addMoney(resellPrice, "Sold Vehicle")
+ removeOwnedVehicle(plate)
+ cb(true)
end
- if vehicle.plate ~= plate then
- print(('[^3WARNING^7] Player ^5%s^7 Attempted To Resell Vehicle With Invalid Plate - ^5%s^7!'):format(source, plate))
- return cb(false)
- end
-
- xPlayer.addMoney(resellPrice, "Sold Vehicle")
- removeOwnedVehicle(plate)
- cb(true)
- end)
+ )
end
end)
-ESX.RegisterServerCallback('esx_vehicleshop:getStockItems', function(source, cb)
- TriggerEvent('esx_addoninventory:getSharedInventory', 'society_cardealer', function(inventory)
+ESX.RegisterServerCallback("esx_vehicleshop:getStockItems", function(source, cb)
+ TriggerEvent("esx_addoninventory:getSharedInventory", "society_cardealer", function(inventory)
cb(inventory.items)
end)
end)
-ESX.RegisterServerCallback('esx_vehicleshop:getPlayerInventory', function(source, cb)
+ESX.RegisterServerCallback("esx_vehicleshop:getPlayerInventory", function(source, cb)
local xPlayer = ESX.GetPlayerFromId(source)
local items = xPlayer.inventory
- cb({items = items})
+ cb({ items = items })
end)
-ESX.RegisterServerCallback('esx_vehicleshop:isPlateTaken', function(source, cb, plate)
- MySQL.scalar('SELECT plate FROM owned_vehicles WHERE plate = ?', {plate},
- function(result)
+ESX.RegisterServerCallback("esx_vehicleshop:isPlateTaken", function(source, cb, plate)
+ MySQL.scalar("SELECT plate FROM owned_vehicles WHERE plate = ?", { plate }, function(result)
cb(result ~= nil)
end)
end)
-ESX.RegisterServerCallback('esx_vehicleshop:retrieveJobVehicles', function(source, cb, type)
+ESX.RegisterServerCallback("esx_vehicleshop:retrieveJobVehicles", function(source, cb, type)
local xPlayer = ESX.GetPlayerFromId(source)
- MySQL.query('SELECT * FROM owned_vehicles WHERE owner = ? AND type = ? AND job = ?', {xPlayer.identifier, type, xPlayer.job.name},
- function(result)
- cb(result)
- end)
+ MySQL.query(
+ "SELECT * FROM owned_vehicles WHERE owner = ? AND type = ? AND job = ?",
+ { xPlayer.identifier, type, xPlayer.job.name },
+ function(result)
+ cb(result)
+ end
+ )
end)
-RegisterNetEvent('esx_vehicleshop:setJobVehicleState')
-AddEventHandler('esx_vehicleshop:setJobVehicleState', function(plate, state)
- MySQL.update('UPDATE owned_vehicles SET `stored` = ? WHERE plate = ? AND job = ?', {state, plate, Player(source).state.job},
- function(rowsChanged)
- if rowsChanged == 0 then
- print(('[^3WARNING^7] Player ^5%s^7 Attempted To Exploit the Garage!'):format(source, plate))
+RegisterNetEvent("esx_vehicleshop:setJobVehicleState")
+AddEventHandler("esx_vehicleshop:setJobVehicleState", function(plate, state)
+ MySQL.update(
+ "UPDATE owned_vehicles SET `stored` = ? WHERE plate = ? AND job = ?",
+ { state, plate, Player(source).state.job },
+ function(rowsChanged)
+ if rowsChanged == 0 then
+ print(("[^3WARNING^7] Player ^5%s^7 Attempted To Exploit the Garage!"):format(source, plate))
+ end
end
- end)
+ )
end)
local function payRent()
local timeStart = os.clock()
- print('[^2INFO^7] ^5Rent Payments^7 Initiated')
-
- MySQL.query('SELECT rented_vehicles.owner, rented_vehicles.rent_price, rented_vehicles.plate, users.accounts FROM rented_vehicles LEFT JOIN users ON rented_vehicles.owner = users.identifier', {},
- function(rentals)
- local owners = {}
- for i = 1, #rentals do
- local rental = rentals[i]
- if not owners[rental.owner] then
- owners[rental.owner] = {rental}
- else
- owners[rental.owner][#owners[rental.owner] + 1] = rental
- end
- end
-
- local total = 0
- local unrentals = {}
- local users = {}
- for k, v in pairs(owners) do
- local sum = 0
- for i = 1, #v do
- sum = sum + v[i].rent_price
+ print("[^2INFO^7] ^5Rent Payments^7 Initiated")
+
+ MySQL.query(
+ "SELECT rented_vehicles.owner, rented_vehicles.rent_price, rented_vehicles.plate, users.accounts FROM rented_vehicles LEFT JOIN users ON rented_vehicles.owner = users.identifier",
+ {},
+ function(rentals)
+ local owners = {}
+ for i = 1, #rentals do
+ local rental = rentals[i]
+ if not owners[rental.owner] then
+ owners[rental.owner] = { rental }
+ else
+ owners[rental.owner][#owners[rental.owner] + 1] = rental
+ end
end
- local xPlayer = ESX.GetPlayerFromIdentifier(k)
-
- if xPlayer then
- local bank = xPlayer.getAccount('bank').money
- if bank >= sum and #v > 1 then
- total = total + sum
- xPlayer.removeAccountMoney('bank', sum, "Vehicle Rental")
- xPlayer.showNotification(('You have paid $%s for all of your rentals'):format(ESX.Math.GroupDigits(sum)))
- else
- for i = 1, #v do
- local rental = v[i]
- if xPlayer.getAccount('bank').money >= rental.rent_price then
- total = total + rental.rent_price
- xPlayer.removeAccountMoney('bank', rental.rent_price, "Vehicle Rental")
- xPlayer.showNotification(TranslateCap('paid_rental', ESX.Math.GroupDigits(rental.rent_price), rental.plate))
- else
- xPlayer.showNotification(TranslateCap('paid_rental_evicted', ESX.Math.GroupDigits(rental.rent_price), rental.plate))
- unrentals[#unrentals + 1] = {rental.owner, rental.plate}
+ local total = 0
+ local unrentals = {}
+ local users = {}
+ for k, v in pairs(owners) do
+ local sum = 0
+ for i = 1, #v do
+ sum = sum + v[i].rent_price
+ end
+ local xPlayer = ESX.GetPlayerFromIdentifier(k)
+
+ if xPlayer then
+ local bank = xPlayer.getAccount("bank").money
+
+ if bank >= sum and #v > 1 then
+ total = total + sum
+ xPlayer.removeAccountMoney("bank", sum, "Vehicle Rental")
+ xPlayer.showNotification(
+ ("You have paid $%s for all of your rentals"):format(ESX.Math.GroupDigits(sum))
+ )
+ else
+ for i = 1, #v do
+ local rental = v[i]
+ if xPlayer.getAccount("bank").money >= rental.rent_price then
+ total = total + rental.rent_price
+ xPlayer.removeAccountMoney("bank", rental.rent_price, "Vehicle Rental")
+ xPlayer.showNotification(
+ TranslateCap("paid_rental", ESX.Math.GroupDigits(rental.rent_price), rental.plate)
+ )
+ else
+ xPlayer.showNotification(
+ TranslateCap(
+ "paid_rental_evicted",
+ ESX.Math.GroupDigits(rental.rent_price),
+ rental.plate
+ )
+ )
+ unrentals[#unrentals + 1] = { rental.owner, rental.plate }
+ end
end
end
- end
- else
- local accounts = json.decode(v[1].accounts)
- if accounts.bank < sum then
- sum = 0
- local limit = false
- for i = 1, #v do
- local rental = v[i]
- if not limit then
- sum = sum + rental.rent_price
- if sum > accounts.bank then
- sum = sum - rental.rent_price
- limit = true
+ else
+ local accounts = json.decode(v[1].accounts)
+ if accounts.bank < sum then
+ sum = 0
+ local limit = false
+ for i = 1, #v do
+ local rental = v[i]
+ if not limit then
+ sum = sum + rental.rent_price
+ if sum > accounts.bank then
+ sum = sum - rental.rent_price
+ limit = true
+ end
+ else
+ unrentals[#unrentals + 1] = { rental.owner, rental.plate }
end
- else
- unrentals[#unrentals + 1] = {rental.owner, rental.plate}
end
end
- end
- if sum > 0 then
- total = total + sum
- accounts.bank = accounts.bank - sum
- users[#users + 1] = {json.encode(accounts), k}
+ if sum > 0 then
+ total = total + sum
+ accounts.bank = accounts.bank - sum
+ users[#users + 1] = { json.encode(accounts), k }
+ end
end
end
- end
- if total > 0 then
- TriggerEvent('esx_addonaccount:getSharedAccount', 'society_cardealer', function(account)
- account.addMoney(total)
- end)
- end
+ if total > 0 then
+ TriggerEvent("esx_addonaccount:getSharedAccount", "society_cardealer", function(account)
+ account.addMoney(total)
+ end)
+ end
- if next(users) then
- MySQL.prepare.await('UPDATE users SET accounts = ? WHERE identifier = ?', users)
- end
+ if next(users) then
+ MySQL.prepare.await("UPDATE users SET accounts = ? WHERE identifier = ?", users)
+ end
- if next(unrentals) then
- MySQL.prepare.await('DELETE FROM rented_vehicles WHERE owner = ? AND plate = ?', unrentals)
- end
+ if next(unrentals) then
+ MySQL.prepare.await("DELETE FROM rented_vehicles WHERE owner = ? AND plate = ?", unrentals)
+ end
- getRentedVehicles()
- print(('[^2INFO^7] ^5Rent Payments^7 took ^5%s^7 ms to execute'):format(ESX.Math.Round((os.time() - timeStart) / 1000000, 2)))
- end)
+ getRentedVehicles()
+ print(
+ ("[^2INFO^7] ^5Rent Payments^7 took ^5%s^7 ms to execute"):format(
+ ESX.Math.Round((os.time() - timeStart) / 1000000, 2)
+ )
+ )
+ end
+ )
end
-TriggerEvent('cron:runAt', 22, 00, payRent)
\ No newline at end of file
+TriggerEvent("cron:runAt", 22, 00, payRent)
From 479fe59988e8a9d7f80e61eaf562177acc86de51 Mon Sep 17 00:00:00 2001
From: bitpredator <67551273+bitpredator@users.noreply.github.com>
Date: Sun, 7 Apr 2024 11:33:06 +0200
Subject: [PATCH 6/6] =?UTF-8?q?chore:=20(esx=5Fvehicleshop\client\main.lua?=
=?UTF-8?q?)=20=F0=9F=8E=A8=20Run=20formatter?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../esx_vehicleshop/client/main.lua | 645 +++++++++++-------
1 file changed, 388 insertions(+), 257 deletions(-)
diff --git a/server-data/resources/[esx_addons]/esx_vehicleshop/client/main.lua b/server-data/resources/[esx_addons]/esx_vehicleshop/client/main.lua
index 0265cdaf3..10f424736 100644
--- a/server-data/resources/[esx_addons]/esx_vehicleshop/client/main.lua
+++ b/server-data/resources/[esx_addons]/esx_vehicleshop/client/main.lua
@@ -1,8 +1,19 @@
local Config = Config
local HasAlreadyEnteredMarker, IsInShopMenu = false, false
local CurrentAction, CurrentActionMsg, LastZone, currentDisplayVehicle, CurrentVehicleData
-local CurrentActionData, Vehicles, Categories, VehiclesByModel, vehiclesByCategory, soldVehicles, cardealerVehicles, rentedVehicles = {}, {}, {}, {}, {}, {}, {}, {}
-local DoesEntityExist, NetworkRequestControlOfEntity, NetworkHasControlOfEntity, DisableControlAction, HasModelLoaded, RequestModel, DisableAllControlActions, FreezeEntityPosition, SetEntityCoords, SetEntityVisible = DoesEntityExist, NetworkRequestControlOfEntity, NetworkHasControlOfEntity, DisableControlAction, HasModelLoaded, RequestModel, DisableAllControlActions, FreezeEntityPosition, SetEntityCoords, SetEntityVisible
+local CurrentActionData, Vehicles, Categories, VehiclesByModel, vehiclesByCategory, soldVehicles, cardealerVehicles, rentedVehicles =
+ {}, {}, {}, {}, {}, {}, {}, {}
+local DoesEntityExist, NetworkRequestControlOfEntity, NetworkHasControlOfEntity, DisableControlAction, HasModelLoaded, RequestModel, DisableAllControlActions, FreezeEntityPosition, SetEntityCoords, SetEntityVisible =
+ DoesEntityExist,
+ NetworkRequestControlOfEntity,
+ NetworkHasControlOfEntity,
+ DisableControlAction,
+ HasModelLoaded,
+ RequestModel,
+ DisableAllControlActions,
+ FreezeEntityPosition,
+ SetEntityCoords,
+ SetEntityVisible
Vehicles = GlobalState.vehicleShop.vehicles
Categories = GlobalState.vehicleShop.categories
@@ -11,20 +22,20 @@ soldVehicles = GlobalState.vehicleShop.soldVehicles
cardealerVehicles = GlobalState.vehicleShop.cardealerVehicles
rentedVehicles = GlobalState.vehicleShop.rentedVehicles
-AddStateBagChangeHandler('vehicleShop', 'global', function(bagName, key, value)
- Vehicles = value.vehicles
- Categories = value.categories
- VehiclesByModel = value.vehiclesByModel
- soldVehicles = value.soldVehicles
- cardealerVehicles = value.cardealerVehicles
- rentedVehicles = value.rentedVehicles
+AddStateBagChangeHandler("vehicleShop", "global", function(bagName, key, value)
+ Vehicles = value.vehicles
+ Categories = value.categories
+ VehiclesByModel = value.vehiclesByModel
+ soldVehicles = value.soldVehicles
+ cardealerVehicles = value.cardealerVehicles
+ rentedVehicles = value.rentedVehicles
end)
CreateThread(function()
- while true do
- Wait(60000)
- collectgarbage("collect")
- end
+ while true do
+ Wait(60000)
+ collectgarbage("collect")
+ end
end)
local function getVehicleFromModel(model)
@@ -32,7 +43,7 @@ local function getVehicleFromModel(model)
end
local function Init()
- TriggerEvent('esx_vehicleshop:updateTables')
+ TriggerEvent("esx_vehicleshop:updateTables")
Wait(500)
@@ -51,20 +62,25 @@ local function Init()
table.insert(vehiclesByCategory[category], vehicle)
else
- print(('[^3WARNING^7] Ignoring vehicle ^5%s^7 due to invalid Model'):format(vehicle.model))
+ print(("[^3WARNING^7] Ignoring vehicle ^5%s^7 due to invalid Model"):format(vehicle.model))
end
end
if Config.EnablePlayerManagement then
- RegisterNetEvent('esx_phone:loaded')
- AddEventHandler('esx_phone:loaded', function(phoneNumber, contacts)
+ RegisterNetEvent("esx_phone:loaded")
+ AddEventHandler("esx_phone:loaded", function(phoneNumber, contacts)
local specialContact = {
- name = Translate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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJezdycAAAEAdFJOU////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wBT9wclAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAGHRFWHRTb2Z0d2FyZQBwYWludC5uZXQgNC4xLjb9TgnoAAAQGElEQVR4Xt2d+WMUtxXHbS6bEGMPMcQQ04aEUnqYo9xJWvC6kAKmQLM2rdn//9+g0uir2Tl0PElPszP7+cnH7Fj6rPTeG2lmvfKld2azk8lk/36L/cnkZDbDIT3Sp4DZ8QS9dTI57tNDTwJOOu+4j/0TvDQz+QXMSG+7mUn+sZBZQELnNROcKhMZBXx+gS4k8+IzTpmBXAJOnqPxTDzPFRKyCODuvSKPgwwC2EZ+lxf4E4xwCzhBU7PBPQx4BWR88+fwDgNGAbMsM9/Ec8bygE3A5966L3nOlhiZBGSf+l2YggGLgBna1DMsE4FBQH9zvw1HLEgX0Evkt5GeEVIFMFztpJF6rZQm4DNasVDSEkKSgIVN/ibP0ZwoEgQsfPTPSZgH8QIG8vYr4gdBrIABvf2K2EEQKWBQb78ichBECRhE8O8SlQ5iBAQvcffFPhoYQoSAAQ5/TcQ0CBYw0OGvCZ4GoQIGF/3bhGaDQAELvfKhERgIwgQMePrPCQsEQQLwFwYPmksiQMCC1n1iCFgooQtYwLJfPPQFQ7KAUfU/wABVwMj6TzdAFDDY6tcOMR3SBIyw/1QDJAGj7D/RAEXA6Oa/hhIHCAJG23+SAb+AEfefYsArYET1nwlvTegVgBONFnTDik8ATjNi0BEbHgGjuP5147k6dgsYaQHQxF0OOAUMfv2LhnOVzCVg4OufdFwrpS4BePkSgA6ZcAhYggCocQRCu4ClCIAaeyC0CliaAKCwhgGrALxwaUC3OtgELFEAUNjCgEXAklQAd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ANM04A0EEcNfEimAKRswBoK/o2GhxApgGgRcgSDy7RfEC+AZBDyBIDT510gQwDMIGAJB/NsvSBLAkw5SA0FU8K9IE8AzD5ICQcLoL0kVEP2ERR3zZzRR6Dz/EEy6gC+z9FBwL24D9XLAwocNBgEsa0URj11xdJ9JAMeCYfBjV/RlPydMAkRCSJ0IQYGA592XsAlIjwX0QMDXfVYBgsSMQAsE6ZG/Dq+A1GBACARMU7+CW4AgZRh4AgHvm1+SQYAYBvHRwBEILnO/+SVZBAjiHZgDQZ7eC3IJEHyOnAvdQPBT2vWOk4wCJFHXSs1AkHq14yGzAMEsXEIVCH5hTPgW8gsoOQlcSr9W/Jxr0rfoSUDJ7Jg0GCbHM7ygD/oUAGazk8mkMyL2J5OTWZ89L/ny5f+yiDXCPYKoAQAAAABJRU5ErkJggg==',
+ name = TranslateCap("dealership"),
+ number = "cardealer",
+ base64Icon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMAUExURQAAADMzMzszM0M0M0w0M1Q1M101M2U2M242M3Y3M383Moc4MpA4Mpg5MqE5Mqk6MrI6Mro7Mrw8Mr89M71DML5EO8I+NMU/NcBMLshANctBNs5CN8RULMddKsheKs9YLtBCONZEOdlFOtxGO99HPNhMNsplKM1nKM1uJtRhLddiLt5kMNJwJ9B2JNR/IeNIPeVJPehKPuRQOuhSO+lZOOlhNuloM+p3Lep/KupwMMFORsVYUcplXc1waNJ7delUSepgVexrYe12bdeHH9iIH9qQHd2YG+udH+OEJeuGJ+uOJeuVIuChGeSpF+aqGOykHOysGeeyFeuzFuyzFuq6E+27FO+Cee3CEdaGgdqTjvCNhfKYkvOkngAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJezdycAAAEAdFJOU////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wBT9wclAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAGHRFWHRTb2Z0d2FyZQBwYWludC5uZXQgNC4xLjb9TgnoAAAQGElEQVR4Xt2d+WMUtxXHbS6bEGMPMcQQ04aEUnqYo9xJWvC6kAKmQLM2rdn//9+g0uir2Tl0PElPszP7+cnH7Fj6rPTeG2lmvfKld2azk8lk/36L/cnkZDbDIT3Sp4DZ8QS9dTI57tNDTwJOOu+4j/0TvDQz+QXMSG+7mUn+sZBZQELnNROcKhMZBXx+gS4k8+IzTpmBXAJOnqPxTDzPFRKyCODuvSKPgwwC2EZ+lxf4E4xwCzhBU7PBPQx4BWR88+fwDgNGAbMsM9/Ec8bygE3A5966L3nOlhiZBGSf+l2YggGLgBna1DMsE4FBQH9zvw1HLE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tgFJE2CIQYCdKuDVUDi/2AcWiAwlEAKq4DU/70yrEDwMzrVxS4gMQwMKhDYAoDAISAxDAwpEKBDJlwCkv8V61ACgTUACFwC0qoByTACgaUCUDgFMPwTqgEEAnsAlLgFJAfCAQQCRwCUeAQkB8LFBwJ0xIZPAIOBxQYCdMOKV0DkRkGDBQaC9jZAB6+AqA3TNgsLBM2NUBN+ASwGbn6DFvWLv/8UASwG7n2LNvUJof8kAQzlgOA7tKo/nAWQhiSAx8CNngOBuwDS0ATwGOg3END6TxXAEgd6DQSU+S+hCuAx0F8goPafLoDJQE+BgNz/AAEsNWFPgcBb/80JEMBxXSDoIRCguSSCBDBcHUsyBwLP9W+LMAE86TBvICCmP02ggPRVspKMgYBU/tUIFZC+UlqSLRC41j+NBAsYdCAIm/4lEQKGGwgCp39JjACmacAeCIKHvyRKANM04A0EEcNfEimAKRswBoK/o2GhxApgGgRcgSDy7RfEC+AZBDyBIDT510gQwDMIGAJB/NsvSBLAkw5SA0FU8K9IE8AzD5ICQcLoL0kVEP2ERR3zZzRR6Dz/EEy6gC+z9FBwL24D9XLAwocNBgEsa0URj11xdJ9JAMeCYfBjV/RlPydMAkRCSJ0IQYGA592XsAlIjwX0QMDXfVYBgsSMQAsE6ZG/Dq+A1GBACARMU7+CW4AgZRh4AgHvm1+SQYAYBvHRwBEILnO/+SVZBAjiHZgDQZ7eC3IJEHyOnAvdQPBT2vWOk4wCJFHXSs1AkHq14yGzAMEsXEIVCH5hTPgW8gsoOQlcSr9W/Jxr0rfoSUDJ7Jg0GCbHM7ygD/oUAGazk8mkMyL2J5OTWZ89L/ny5f+yiDXCPYKoAQAAAABJRU5ErkJggg==",
}
- TriggerEvent('esx_phone:addSpecialContact', specialContact.name, specialContact.number, specialContact.base64Icon)
+ TriggerEvent(
+ "esx_phone:addSpecialContact",
+ specialContact.name,
+ specialContact.number,
+ specialContact.base64Icon
+ )
end)
end
@@ -72,13 +88,13 @@ local function Init()
CreateThread(function()
local blip = AddBlipForCoord(Config.Zones.ShopEntering.Pos)
- SetBlipSprite (blip, Config.Blip.Sprite)
+ SetBlipSprite(blip, Config.Blip.Sprite)
SetBlipDisplay(blip, Config.Blip.Display)
- SetBlipScale (blip, Config.Blip.Scale)
+ SetBlipScale(blip, Config.Blip.Scale)
SetBlipAsShortRange(blip, true)
- BeginTextCommandSetBlipName('STRING')
- AddTextComponentSubstringPlayerName(TranslateCap('car_dealer'))
+ BeginTextCommandSetBlipName("STRING")
+ AddTextComponentSubstringPlayerName(TranslateCap("car_dealer"))
EndTextCommandSetBlipName(blip)
end)
end
@@ -91,43 +107,47 @@ local function PlayerManagement()
return true
end
- if LocalPlayer.state.job ~= 'cardealer' then
+ if LocalPlayer.state.job ~= "cardealer" then
Config.Zones.ShopEntering.Type = -1
- Config.Zones.BossActions.Type = -1
+ Config.Zones.BossActions.Type = -1
Config.Zones.ResellVehicle.Type = -1
return true
end
Config.Zones.ShopEntering.Type = 1
- if LocalPlayer.state.job.grade_name == 'boss' then
+ if LocalPlayer.state.job.grade_name == "boss" then
Config.Zones.BossActions.Type = 1
end
return true
end
local function loadIpl()
- RequestIpl('shr_int')
+ RequestIpl("shr_int")
local interiorID = 7170
PinInteriorInMemory(interiorID)
- ActivateInteriorEntitySet(interiorID, 'csr_beforeMission')
+ ActivateInteriorEntitySet(interiorID, "csr_beforeMission")
RefreshInterior(interiorID)
end
-RegisterNetEvent('esx:playerLoaded')
-AddEventHandler('esx:playerLoaded', function(xPlayer)
+RegisterNetEvent("esx:playerLoaded")
+AddEventHandler("esx:playerLoaded", function(xPlayer)
Init()
PlayerManagement()
CreateThread(loadIpl)
end)
-RegisterNetEvent('esx:setJob', PlayerManagement)
+RegisterNetEvent("esx:setJob", PlayerManagement)
local function DeleteDisplayVehicleInsideShop()
local attempt = 0
if currentDisplayVehicle and DoesEntityExist(currentDisplayVehicle) then
- while DoesEntityExist(currentDisplayVehicle) and not NetworkHasControlOfEntity(currentDisplayVehicle) and attempt < 100 do
+ while
+ DoesEntityExist(currentDisplayVehicle)
+ and not NetworkHasControlOfEntity(currentDisplayVehicle)
+ and attempt < 100
+ do
Wait(100)
NetworkRequestControlOfEntity(currentDisplayVehicle)
attempt = attempt + 1
@@ -144,7 +164,7 @@ local function ReturnVehicleProvider()
{
unselectable = true,
icon = "fas fa-car",
- title = TranslateCap('car_dealer'),
+ title = TranslateCap("car_dealer"),
},
}
@@ -153,38 +173,42 @@ local function ReturnVehicleProvider()
local vehicleLabel = getVehicleFromModel(v.vehicle).label
TableInsert(elements, {
- title = ('%s [%s]'):format(vehicleLabel, TranslateCap('generic_shopitem', ESX.Math.GroupDigits(returnPrice))),
- name = v.vehicle
+ title = ('%s [%s]'):format(
+ vehicleLabel,
+ TranslateCap("generic_shopitem", ESX.Math.GroupDigits(returnPrice))
+ ),
+ name = v.vehicle,
})
end
ESX.OpenContext("right", elements, function(menu, element)
- if not element.name then return ESX.CloseContext() end
- TriggerServerEvent('esx_vehicleshop:returnProvider', element.name)
+ if not element.name then
+ return ESX.CloseContext()
+ end
+ TriggerServerEvent("esx_vehicleshop:returnProvider", element.name)
Wait(500)
ESX.CloseContext()
ReturnVehicleProvider()
- end, function(menu)
- end)
+ end, function(menu) end)
end
local function StartShopRestriction()
while IsInShopMenu do
Wait(0)
- DisableControlAction(0, 75, true) -- Disable exit vehicle
+ DisableControlAction(0, 75, true) -- Disable exit vehicle
DisableControlAction(27, 75, true) -- Disable exit vehicle
end
end
local function WaitForVehicleToLoad(modelHash)
- modelHash = (type(modelHash) == 'number' and modelHash or joaat(modelHash))
+ modelHash = (type(modelHash) == "number" and modelHash or joaat(modelHash))
if not HasModelLoaded(modelHash) then
RequestModel(modelHash)
- BeginTextCommandBusyspinnerOn('STRING')
- AddTextComponentSubstringPlayerName(TranslateCap('shop_awaiting_model'))
+ BeginTextCommandBusyspinnerOn("STRING")
+ AddTextComponentSubstringPlayerName(TranslateCap("shop_awaiting_model"))
EndTextCommandBusyspinnerOn(4)
while not HasModelLoaded(modelHash) do
@@ -198,7 +222,7 @@ end
local function OpenShopMenu()
if #Vehicles == 0 then
- print('[^3ERROR^7] Vehicleshop has ^50^7 vehicles, please add some!')
+ print("[^3ERROR^7] Vehicleshop has ^50^7 vehicles, please add some!")
return
end
@@ -214,59 +238,66 @@ local function OpenShopMenu()
SetEntityVisible(playerPed, false)
SetEntityCoords(playerPed, Config.Zones.ShopInside.Pos)
- local elements = {}
- local firstVehicleData = nil
+ local elements = {}
+ local firstVehicleData = nil
- for i=1, #Categories, 1 do
- local category = Categories[i]
+ for i = 1, #Categories, 1 do
+ local category = Categories[i]
local categoryVehicles = vehiclesByCategory[category.name]
- local options = {}
+ local options = {}
- for j=1, #categoryVehicles, 1 do
+ for j = 1, #categoryVehicles, 1 do
local vehicle = categoryVehicles[j]
if i == 1 and j == 1 then
firstVehicleData = vehicle
end
- TableInsert(options, ('%s %s'):format(vehicle.name, TranslateCap('generic_shopitem', ESX.Math.GroupDigits(vehicle.price))))
+ TableInsert(
+ options,
+ ('%s %s'):format(
+ vehicle.name,
+ TranslateCap("generic_shopitem", ESX.Math.GroupDigits(vehicle.price))
+ )
+ )
end
table.sort(options)
TableInsert(elements, {
- name = category.name,
- label = category.label,
- value = 0,
- type = 'slider',
- max = #Categories[i],
- options = options
+ name = category.name,
+ label = category.label,
+ value = 0,
+ type = "slider",
+ max = #Categories[i],
+ options = options,
})
end
- ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'vehicle_shop', {
- title = TranslateCap('car_dealer'),
- align = 'top-left',
- elements = elements
+ ESX.UI.Menu.Open("default", GetCurrentResourceName(), "vehicle_shop", {
+ title = TranslateCap("car_dealer"),
+ align = "top-left",
+ elements = elements,
}, function(data, menu)
local vehicleData = vehiclesByCategory[data.current.name][data.current.value + 1]
- ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'shop_confirm', {
- title = TranslateCap('buy_vehicle_shop', vehicleData.name, ESX.Math.GroupDigits(vehicleData.price)),
- align = 'top-left',
+ ESX.UI.Menu.Open("default", GetCurrentResourceName(), "shop_confirm", {
+ title = TranslateCap("buy_vehicle_shop", vehicleData.name, ESX.Math.GroupDigits(vehicleData.price)),
+ align = "top-left",
elements = {
- {label = TranslateCap('no'), value = 'no'},
- {label = TranslateCap('yes'), value = 'yes'}
- }}, function(data2, menu2)
- if data2.current.value == 'yes' then
+ { label = TranslateCap("no"), value = "no" },
+ { label = TranslateCap("yes"), value = "yes" },
+ },
+ }, function(data2, menu2)
+ if data2.current.value == "yes" then
if Config.EnablePlayerManagement then
- ESX.TriggerServerCallback('esx_vehicleshop:buyCarDealerVehicle', function(success)
+ ESX.TriggerServerCallback("esx_vehicleshop:buyCarDealerVehicle", function(success)
if success then
IsInShopMenu = false
DeleteDisplayVehicleInsideShop()
- CurrentAction = 'shop_menu'
- CurrentActionMsg = TranslateCap('shop_menu')
+ CurrentAction = "shop_menu"
+ CurrentActionMsg = TranslateCap("shop_menu")
CurrentActionData = {}
local playerPed = ESX.PlayerData.ped
@@ -276,15 +307,15 @@ local function OpenShopMenu()
menu2.close()
menu.close()
- ESX.ShowNotification(TranslateCap('vehicle_purchased'))
+ ESX.ShowNotification(TranslateCap("vehicle_purchased"))
else
- ESX.ShowNotification(TranslateCap('broke_company'))
+ ESX.ShowNotification(TranslateCap("broke_company"))
end
end, vehicleData.model)
else
local generatedPlate = GeneratePlate()
- ESX.TriggerServerCallback('esx_vehicleshop:buyVehicle', function(success)
+ ESX.TriggerServerCallback("esx_vehicleshop:buyVehicle", function(success)
if success then
IsInShopMenu = false
menu2.close()
@@ -293,7 +324,7 @@ local function OpenShopMenu()
FreezeEntityPosition(playerPed, false)
SetEntityVisible(playerPed, true)
else
- ESX.ShowNotification(TranslateCap('not_enough_money'))
+ ESX.ShowNotification(TranslateCap("not_enough_money"))
end
end, vehicleData.model, generatedPlate)
end
@@ -308,8 +339,8 @@ local function OpenShopMenu()
DeleteDisplayVehicleInsideShop()
local playerPed = ESX.PlayerData.ped
- CurrentAction = 'shop_menu'
- CurrentActionMsg = TranslateCap('shop_menu')
+ CurrentAction = "shop_menu"
+ CurrentActionMsg = TranslateCap("shop_menu")
CurrentActionData = {}
FreezeEntityPosition(playerPed, false)
@@ -319,28 +350,38 @@ local function OpenShopMenu()
IsInShopMenu = false
end, function(data, menu)
local vehicleData = vehiclesByCategory[data.current.name][data.current.value + 1]
- local playerPed = ESX.PlayerData.ped
+ local playerPed = ESX.PlayerData.ped
DeleteDisplayVehicleInsideShop()
WaitForVehicleToLoad(vehicleData.model)
- ESX.Game.SpawnLocalVehicle(vehicleData.model, Config.Zones.ShopInside.Pos, Config.Zones.ShopInside.Heading, function(vehicle)
- currentDisplayVehicle = vehicle
- TaskWarpPedIntoVehicle(playerPed, vehicle, -1)
- FreezeEntityPosition(vehicle, true)
- SetModelAsNoLongerNeeded(vehicleData.model)
- end)
+ ESX.Game.SpawnLocalVehicle(
+ vehicleData.model,
+ Config.Zones.ShopInside.Pos,
+ Config.Zones.ShopInside.Heading,
+ function(vehicle)
+ currentDisplayVehicle = vehicle
+ TaskWarpPedIntoVehicle(playerPed, vehicle, -1)
+ FreezeEntityPosition(vehicle, true)
+ SetModelAsNoLongerNeeded(vehicleData.model)
+ end
+ )
end)
DeleteDisplayVehicleInsideShop()
WaitForVehicleToLoad(firstVehicleData.model)
- ESX.Game.SpawnLocalVehicle(firstVehicleData.model, Config.Zones.ShopInside.Pos, Config.Zones.ShopInside.Heading, function(vehicle)
- currentDisplayVehicle = vehicle
- TaskWarpPedIntoVehicle(playerPed, vehicle, -1)
- FreezeEntityPosition(vehicle, true)
- SetModelAsNoLongerNeeded(firstVehicleData.model)
- end)
+ ESX.Game.SpawnLocalVehicle(
+ firstVehicleData.model,
+ Config.Zones.ShopInside.Pos,
+ Config.Zones.ShopInside.Heading,
+ function(vehicle)
+ currentDisplayVehicle = vehicle
+ TaskWarpPedIntoVehicle(playerPed, vehicle, -1)
+ FreezeEntityPosition(vehicle, true)
+ SetModelAsNoLongerNeeded(firstVehicleData.model)
+ end
+ )
end
function OpenResellerMenu()
@@ -348,64 +389,84 @@ function OpenResellerMenu()
ESX.CloseContext()
local elements = {
- {unselectable = true, icon = 'fas fa-car', title = TranslateCap('car_dealer')},
- {title = TranslateCap('buy_vehicle'), name = 'buy_vehicle'},
- {title = TranslateCap('pop_vehicle'), name = 'pop_vehicle'},
- {title = TranslateCap('depop_vehicle'), name = 'depop_vehicle'},
- {title = TranslateCap('return_provider'), name = 'return_provider'},
- {title = TranslateCap('create_bill'), name = 'create_bill'},
- {title = TranslateCap('get_rented_vehicles'), name = 'get_rented_vehicles'},
- {title = TranslateCap('set_vehicle_owner_sell'), name = 'set_vehicle_owner_sell'},
- {title = TranslateCap('set_vehicle_owner_rent'), name = 'set_vehicle_owner_rent'},
- {title = TranslateCap('deposit_stock'), name = 'put_stock'},
- {title = TranslateCap('take_stock'), name = 'get_stock'},
+ { unselectable = true, icon = "fas fa-car", title = TranslateCap("car_dealer") },
+ { title = TranslateCap("buy_vehicle"), name = "buy_vehicle" },
+ { title = TranslateCap("pop_vehicle"), name = "pop_vehicle" },
+ { title = TranslateCap("depop_vehicle"), name = "depop_vehicle" },
+ { title = TranslateCap("return_provider"), name = "return_provider" },
+ { title = TranslateCap("create_bill"), name = "create_bill" },
+ { title = TranslateCap("get_rented_vehicles"), name = "get_rented_vehicles" },
+ { title = TranslateCap("set_vehicle_owner_sell"), name = "set_vehicle_owner_sell" },
+ { title = TranslateCap("set_vehicle_owner_rent"), name = "set_vehicle_owner_rent" },
+ { title = TranslateCap("deposit_stock"), name = "put_stock" },
+ { title = TranslateCap("take_stock"), name = "get_stock" },
}
- ESX.OpenContext('right', elements, function(menu, element)
+ ESX.OpenContext("right", elements, function(menu, element)
local action = element.name
- if Config.OxInventory and (action == 'put_stock' or action == 'get_stock') then
- exports.ox_inventory:openInventory('stash', 'society_cardealer')
- elseif action == 'buy_vehicle' then
+ if Config.OxInventory and (action == "put_stock" or action == "get_stock") then
+ exports.ox_inventory:openInventory("stash", "society_cardealer")
+ elseif action == "buy_vehicle" then
OpenShopMenu()
- elseif action == 'put_stock' then
+ elseif action == "put_stock" then
OpenPutStocksMenu()
- elseif action == 'get_stock' then
+ elseif action == "get_stock" then
OpenGetStocksMenu()
- elseif action == 'pop_vehicle' then
+ elseif action == "pop_vehicle" then
OpenPopVehicleMenu()
- elseif action == 'depop_vehicle' then
+ elseif action == "depop_vehicle" then
if currentDisplayVehicle then
DeleteDisplayVehicleInsideShop()
else
- ESX.ShowNotification(TranslateCap('no_current_vehicle'))
+ ESX.ShowNotification(TranslateCap("no_current_vehicle"))
end
- elseif action == 'return_provider' then
+ elseif action == "return_provider" then
ReturnVehicleProvider()
- elseif action == 'create_bill' then
+ elseif action == "create_bill" then
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
if closestPlayer ~= -1 and closestDistance < 3 then
ESX.CloseContext()
- ESX.OpenContext('right', {{title = TranslateCap('invoice_amount'), input = true, inputType = 'number', inputValue = 0, inputMin = 0, name = 'invoice_amount'}}, function(menu2, element2)
- if element2.name == 'invoice_amount' then
- local amount = tonumber(element2.inputValue)
- if amount ~= nil then
- ESX.CloseContext()
- local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
- if closestPlayer == -1 or closestDistance > 3.0 then
- ESX.ShowNotification(TranslateCap('no_players'))
- else
- TriggerServerEvent('esx_billing:sendBill', GetPlayerServerId(closestPlayer), 'society_cardealer', TranslateCap('car_dealer'), amount)
+ ESX.OpenContext(
+ "right",
+ {
+ {
+ title = TranslateCap("invoice_amount"),
+ input = true,
+ inputType = "number",
+ inputValue = 0,
+ inputMin = 0,
+ name = "invoice_amount",
+ },
+ },
+ function(menu2, element2)
+ if element2.name == "invoice_amount" then
+ local amount = tonumber(element2.inputValue)
+ if amount ~= nil then
+ ESX.CloseContext()
+ local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
+ if closestPlayer == -1 or closestDistance > 3.0 then
+ ESX.ShowNotification(TranslateCap("no_players"))
+ else
+ TriggerServerEvent(
+ "esx_billing:sendBill",
+ GetPlayerServerId(closestPlayer),
+ "society_cardealer",
+ TranslateCap("car_dealer"),
+ amount
+ )
+ end
end
end
- end
- end, function(menu) end)
+ end,
+ function(menu) end
+ )
else
- ESX.ShowNotification(TranslateCap('no_players'))
+ ESX.ShowNotification(TranslateCap("no_players"))
end
- elseif action == 'get_rented_vehicles' then
+ elseif action == "get_rented_vehicles" then
OpenRentedVehiclesMenu()
- elseif action == 'set_vehicle_owner_sell' then
+ elseif action == "set_vehicle_owner_sell" then
if currentDisplayVehicle then
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
@@ -414,53 +475,65 @@ function OpenResellerMenu()
local vehicleProps = ESX.Game.GetVehicleProperties(currentDisplayVehicle)
vehicleProps.plate = newPlate
SetVehicleNumberPlateText(currentDisplayVehicle, newPlate)
- TriggerServerEvent('esx_vehicleshop:setVehicleOwnedPlayerId', GetPlayerServerId(closestPlayer), vehicleProps, CurrentVehicleData.model, CurrentVehicleData.name)
+ TriggerServerEvent(
+ "esx_vehicleshop:setVehicleOwnedPlayerId",
+ GetPlayerServerId(closestPlayer),
+ vehicleProps,
+ CurrentVehicleData.model,
+ CurrentVehicleData.name
+ )
currentDisplayVehicle = nil
else
- ESX.ShowNotification(TranslateCap('no_players'))
+ ESX.ShowNotification(TranslateCap("no_players"))
end
else
- ESX.ShowNotification(TranslateCap('no_current_vehicle'))
+ ESX.ShowNotification(TranslateCap("no_current_vehicle"))
end
- elseif action == 'set_vehicle_owner_rent' then
+ elseif action == "set_vehicle_owner_rent" then
if currentDisplayVehicle then
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
if closestPlayer ~= -1 and closestDistance < 3 then
- ESX.UI.Menu.Open('dialog', GetCurrentResourceName(), 'set_vehicle_owner_rent_amount', {
- title = TranslateCap('rental_amount')
+ ESX.UI.Menu.Open("dialog", GetCurrentResourceName(), "set_vehicle_owner_rent_amount", {
+ title = TranslateCap("rental_amount"),
}, function(data2, menu2)
local amount = tonumber(data2.value)
if not amount then
- ESX.ShowNotification(TranslateCap('invalid_amount'))
+ ESX.ShowNotification(TranslateCap("invalid_amount"))
else
menu2.close()
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
if closestPlayer ~= -1 and closestDistance < 3 then
- local newPlate = 'RENT' .. string.upper(ESX.GetRandomString(4))
+ local newPlate = "RENT" .. string.upper(ESX.GetRandomString(4))
local model = CurrentVehicleData.model
SetVehicleNumberPlateText(currentDisplayVehicle, newPlate)
- TriggerServerEvent('esx_vehicleshop:rentVehicle', model, newPlate, amount, GetPlayerServerId(closestPlayer))
+ TriggerServerEvent(
+ "esx_vehicleshop:rentVehicle",
+ model,
+ newPlate,
+ amount,
+ GetPlayerServerId(closestPlayer)
+ )
currentDisplayVehicle = nil
else
- ESX.ShowNotification(TranslateCap('no_players'))
+ ESX.ShowNotification(TranslateCap("no_players"))
end
end
end, function(data2, menu2)
menu2.close()
end)
else
- ESX.ShowNotification(TranslateCap('no_players'))
+ ESX.ShowNotification(TranslateCap("no_players"))
end
else
- ESX.ShowNotification(TranslateCap('no_current_vehicle'))
+ ESX.ShowNotification(TranslateCap("no_current_vehicle"))
end
end
end, function(menu)
- CurrentAction = 'reseller_menu'
- CurrentActionMsg = TranslateCap('shop_menu')
+ CurrentAction = "reseller_menu"
+ CurrentActionMsg = TranslateCap("shop_menu")
CurrentActionData = {}
end)
end
@@ -468,19 +541,22 @@ end
function OpenPopVehicleMenu()
local elements = {}
- for k,v in ipairs(cardealerVehicles) do
+ for k, v in ipairs(cardealerVehicles) do
local vehicleLabel = getVehicleFromModel(v.vehicle).label
TableInsert(elements, {
- label = ('%s [%s]'):format(vehicleLabel, TranslateCap('generic_shopitem', ESX.Math.GroupDigits(v.price))),
- value = v.vehicle
+ label = ('%s [%s]'):format(
+ vehicleLabel,
+ TranslateCap("generic_shopitem", ESX.Math.GroupDigits(v.price))
+ ),
+ value = v.vehicle,
})
end
- ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'commercial_vehicles', {
- title = TranslateCap('vehicle_dealer'),
- align = 'top-left',
- elements = elements
+ ESX.UI.Menu.Open("default", GetCurrentResourceName(), "commercial_vehicles", {
+ title = TranslateCap("vehicle_dealer"),
+ align = "top-left",
+ elements = elements,
}, function(data, menu)
local model = data.current.value
DeleteDisplayVehicleInsideShop()
@@ -488,7 +564,7 @@ function OpenPopVehicleMenu()
ESX.Game.SpawnVehicle(model, Config.Zones.ShopInside.Pos, Config.Zones.ShopInside.Heading, function(vehicle)
currentDisplayVehicle = vehicle
- for i=1, #Vehicles, 1 do
+ for i = 1, #Vehicles, 1 do
if model == Vehicles[i].model then
CurrentVehicleData = Vehicles[i]
break
@@ -503,103 +579,120 @@ end
function OpenRentedVehiclesMenu()
local elements = {}
- for k,v in ipairs(rentedVehicles) do
+ for k, v in ipairs(rentedVehicles) do
local vehicleLabel = getVehicleFromModel(v.name).label
TableInsert(elements, {
label = ('%s: %s - %s'):format(v.playerName, vehicleLabel, v.plate),
- value = v.name
+ value = v.name,
})
end
- ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'rented_vehicles', {
- title = TranslateCap('rent_vehicle'),
- align = 'top-left',
- elements = elements
- }, nil, function(data, menu)
- menu.close()
- end)
+ ESX.UI.Menu.Open(
+ "default",
+ GetCurrentResourceName(),
+ "rented_vehicles",
+ {
+ title = TranslateCap("rent_vehicle"),
+ align = "top-left",
+ elements = elements,
+ },
+ nil,
+ function(data, menu)
+ menu.close()
+ end
+ )
end
local function OpenBossActionsMenu()
ESX.UI.Menu.CloseAll()
- ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'reseller',{
- title = TranslateCap('dealer_boss'),
- align = 'top-left',
+ ESX.UI.Menu.Open("default", GetCurrentResourceName(), "reseller", {
+ title = TranslateCap("dealer_boss"),
+ align = "top-left",
elements = {
- {label = TranslateCap('boss_actions'), value = 'boss_actions'},
- {label = TranslateCap('boss_sold'), value = 'sold_vehicles'}
- }}, function(data, menu)
- if data.current.value == 'boss_actions' then
- TriggerEvent('esx_society:openBossMenu', 'cardealer', function(data2, menu2)
+ { label = TranslateCap("boss_actions"), value = "boss_actions" },
+ { label = TranslateCap("boss_sold"), value = "sold_vehicles" },
+ },
+ }, function(data, menu)
+ if data.current.value == "boss_actions" then
+ TriggerEvent("esx_society:openBossMenu", "cardealer", function(data2, menu2)
menu2.close()
end)
- elseif data.current.value == 'sold_vehicles' then
-
- local elements = {
- head = { TranslateCap('customer_client'), TranslateCap('customer_model'), TranslateCap('customer_plate'), TranslateCap('customer_soldby'), TranslateCap('customer_date') },
- rows = {}
- }
-
- for i=1, #soldVehicles, 1 do
- TableInsert(elements.rows, {
- data = soldVehicles[i],
- cols = {
- soldVehicles[i].client,
- soldVehicles[i].model,
- soldVehicles[i].plate,
- soldVehicles[i].soldby,
- soldVehicles[i].date
- }
- })
- end
+ elseif data.current.value == "sold_vehicles" then
+ local elements = {
+ head = {
+ TranslateCap("customer_client"),
+ TranslateCap("customer_model"),
+ TranslateCap("customer_plate"),
+ TranslateCap("customer_soldby"),
+ TranslateCap("customer_date"),
+ },
+ rows = {},
+ }
- ESX.UI.Menu.Open('list', GetCurrentResourceName(), 'sold_vehicles', elements, function(data2, menu2)
+ for i = 1, #soldVehicles, 1 do
+ TableInsert(elements.rows, {
+ data = soldVehicles[i],
+ cols = {
+ soldVehicles[i].client,
+ soldVehicles[i].model,
+ soldVehicles[i].plate,
+ soldVehicles[i].soldby,
+ soldVehicles[i].date,
+ },
+ })
+ end
- end, function(data2, menu2)
+ ESX.UI.Menu.Open(
+ "list",
+ GetCurrentResourceName(),
+ "sold_vehicles",
+ elements,
+ function(data2, menu2) end,
+ function(data2, menu2)
menu2.close()
- end)
+ end
+ )
end
-
end, function(data, menu)
menu.close()
- CurrentAction = 'boss_actions_menu'
- CurrentActionMsg = TranslateCap('shop_menu')
+ CurrentAction = "boss_actions_menu"
+ CurrentActionMsg = TranslateCap("shop_menu")
CurrentActionData = {}
end)
end
function OpenGetStocksMenu()
- ESX.TriggerServerCallback('esx_vehicleshop:getStockItems', function(items)
+ ESX.TriggerServerCallback("esx_vehicleshop:getStockItems", function(items)
local elements = {}
- for i=1, #items, 1 do
+ for i = 1, #items, 1 do
if items[i].count > 0 then
TableInsert(elements, {
- label = 'x' .. items[i].count .. ' ' .. items[i].label,
- value = items[i].name
+ label = "x" .. items[i].count .. " " .. items[i].label,
+ value = items[i].name,
})
end
end
- ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'stocks_menu', {
- title = TranslateCap('dealership_stock'),
- align = 'top-left',
- elements = elements
+ ESX.UI.Menu.Open("default", GetCurrentResourceName(), "stocks_menu", {
+ title = TranslateCap("dealership_stock"),
+ align = "top-left",
+ elements = elements,
}, function(data, menu)
local itemName = data.current.value
- ESX.UI.Menu.Open('dialog', GetCurrentResourceName(), 'stocks_menu_get_item_count', {
- title = TranslateCap('amount')
+ ESX.UI.Menu.Open("dialog", GetCurrentResourceName(), "stocks_menu_get_item_count", {
+ title = TranslateCap("amount"),
}, function(data2, menu2)
local count = tonumber(data2.value)
if count == nil then
- ESX.ShowNotification(TranslateCap('quantity_invalid'))
+ ESX.ShowNotification(TranslateCap("quantity_invalid"))
else
- TriggerServerEvent('esx_vehicleshop:getStockItem', itemName, count)
+ TriggerServerEvent("esx_vehicleshop:getStockItem", itemName, count)
menu2.close()
menu.close()
OpenGetStocksMenu()
@@ -614,37 +707,37 @@ function OpenGetStocksMenu()
end
function OpenPutStocksMenu()
- ESX.TriggerServerCallback('esx_vehicleshop:getPlayerInventory', function(inventory)
+ ESX.TriggerServerCallback("esx_vehicleshop:getPlayerInventory", function(inventory)
local elements = {}
- for i=1, #inventory.items, 1 do
+ for i = 1, #inventory.items, 1 do
local item = inventory.items[i]
if item.count > 0 then
TableInsert(elements, {
- label = item.label .. ' x' .. item.count,
- type = 'item_standard',
- value = item.name
+ label = item.label .. " x" .. item.count,
+ type = "item_standard",
+ value = item.name,
})
end
end
- ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'stocks_menu', {
- title = TranslateCap('inventory'),
- align = 'top-left',
- elements = elements
+ ESX.UI.Menu.Open("default", GetCurrentResourceName(), "stocks_menu", {
+ title = TranslateCap("inventory"),
+ align = "top-left",
+ elements = elements,
}, function(data, menu)
local itemName = data.current.value
- ESX.UI.Menu.Open('dialog', GetCurrentResourceName(), 'stocks_menu_put_item_count', {
- title = TranslateCap('amount')
+ ESX.UI.Menu.Open("dialog", GetCurrentResourceName(), "stocks_menu_put_item_count", {
+ title = TranslateCap("amount"),
}, function(data2, menu2)
local count = tonumber(data2.value)
if count == nil then
- ESX.ShowNotification(TranslateCap('quantity_invalid'))
+ ESX.ShowNotification(TranslateCap("quantity_invalid"))
else
- TriggerServerEvent('esx_vehicleshop:putStockItems', itemName, count)
+ TriggerServerEvent("esx_vehicleshop:putStockItems", itemName, count)
menu2.close()
menu.close()
OpenPutStocksMenu()
@@ -659,28 +752,28 @@ function OpenPutStocksMenu()
end
local function hasEnteredMarker(zone)
- if zone == 'ShopEntering' then
+ if zone == "ShopEntering" then
if not Config.EnablePlayerManagement then
- CurrentAction = 'shop_menu'
- CurrentActionMsg = TranslateCap('shop_menu')
+ CurrentAction = "shop_menu"
+ CurrentActionMsg = TranslateCap("shop_menu")
CurrentActionData = {}
end
- if LocalPlayer.state.job ~= nil and LocalPlayer.state.job.name == 'cardealer' then
- CurrentAction = 'reseller_menu'
- CurrentActionMsg = TranslateCap('shop_menu')
+ if LocalPlayer.state.job ~= nil and LocalPlayer.state.job.name == "cardealer" then
+ CurrentAction = "reseller_menu"
+ CurrentActionMsg = TranslateCap("shop_menu")
CurrentActionData = {}
end
- elseif zone == 'GiveBackVehicle' and Config.EnablePlayerManagement then
+ elseif zone == "GiveBackVehicle" and Config.EnablePlayerManagement then
local playerPed = ESX.PlayerData.ped
if IsPedInAnyVehicle(playerPed, false) then
local vehicle = GetVehiclePedIsIn(playerPed, false)
- CurrentAction = 'give_back_vehicle'
- CurrentActionMsg = TranslateCap('vehicle_menu')
- CurrentActionData = {vehicle = vehicle}
+ CurrentAction = "give_back_vehicle"
+ CurrentActionMsg = TranslateCap("vehicle_menu")
+ CurrentActionData = { vehicle = vehicle }
end
- elseif zone == 'ResellVehicle' then
+ elseif zone == "ResellVehicle" then
local playerPed = ESX.PlayerData.ped
if IsPedSittingInAnyVehicle(playerPed) then
@@ -688,7 +781,7 @@ local function hasEnteredMarker(zone)
local vehicleData, model, resellPrice, plate
if GetPedInVehicleSeat(vehicle, -1) == playerPed then
- for i=1, #Vehicles, 1 do
+ for i = 1, #Vehicles, 1 do
if joaat(Vehicles[i].model) == GetEntityModel(vehicle) then
vehicleData = Vehicles[i]
break
@@ -700,25 +793,30 @@ local function hasEnteredMarker(zone)
model = GetEntityModel(vehicle)
plate = ESX.Math.Trim(GetVehicleNumberPlateText(vehicle))
- CurrentAction = 'resell_vehicle'
- CurrentActionMsg = TranslateCap('sell_menu', vehicleData.name, ESX.Math.GroupDigits(resellPrice))
+ CurrentAction = "resell_vehicle"
+ CurrentActionMsg = TranslateCap("sell_menu", vehicleData.name, ESX.Math.GroupDigits(resellPrice))
CurrentActionData = {
vehicle = vehicle,
label = vehicleData.name,
price = resellPrice,
model = model,
- plate = plate
+ plate = plate,
}
else
- ESX.ShowNotification(TranslateCap('invalid_vehicle'))
+ ESX.ShowNotification(TranslateCap("invalid_vehicle"))
end
end
end
-
- elseif zone == 'BossActions' and Config.EnablePlayerManagement and LocalPlayer.state.job ~= nil and LocalPlayer.state.job.name == 'cardealer' and LocalPlayer.state.job.grade_name == 'boss' then
- CurrentAction = 'boss_actions_menu'
- CurrentActionMsg = TranslateCap('shop_menu')
+ elseif
+ zone == "BossActions"
+ and Config.EnablePlayerManagement
+ and LocalPlayer.state.job ~= nil
+ and LocalPlayer.state.job.name == "cardealer"
+ and LocalPlayer.state.job.grade_name == "boss"
+ then
+ CurrentAction = "boss_actions_menu"
+ CurrentActionMsg = TranslateCap("shop_menu")
CurrentActionData = {}
end
end
@@ -732,8 +830,10 @@ local function hasExitedMarker(zone)
CurrentAction = nil
end
-AddEventHandler('onResourceStop', function(resource)
- if resource ~= GetCurrentResourceName() then return end
+AddEventHandler("onResourceStop", function(resource)
+ if resource ~= GetCurrentResourceName() then
+ return
+ end
if IsInShopMenu then
ESX.UI.Menu.CloseAll()
ESX.CloseContext()
@@ -756,14 +856,37 @@ CreateThread(function()
local playerCoords = GetEntityCoords(ESX.PlayerData.ped)
local isInMarker, letSleep, currentZone = false, true
- for k,v in pairs(Config.Zones) do
+ for k, v in pairs(Config.Zones) do
local distance = #(playerCoords - v.Pos)
if distance < Config.DrawDistance then
letSleep = false
if v.Type ~= -1 then
- DrawMarker(v.Type, v.Pos, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, v.Size.x, v.Size.y, v.Size.z, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, false, nil, nil, false)
+ DrawMarker(
+ v.Type,
+ v.Pos,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ v.Size.x,
+ v.Size.y,
+ v.Size.z,
+ Config.MarkerColor.r,
+ Config.MarkerColor.g,
+ Config.MarkerColor.b,
+ 100,
+ false,
+ true,
+ 2,
+ false,
+ nil,
+ nil,
+ false
+ )
end
if distance < v.Size.x then
@@ -798,39 +921,45 @@ CreateThread(function()
ESX.TextUI(CurrentActionMsg)
if IsControlJustReleased(0, 38) then
- if CurrentAction == 'shop_menu' then
+ if CurrentAction == "shop_menu" then
if Config.LicenseEnable then
- ESX.TriggerServerCallback('esx_license:checkLicense', function(hasDriversLicense)
+ ESX.TriggerServerCallback("esx_license:checkLicense", function(hasDriversLicense)
if hasDriversLicense then
OpenShopMenu()
else
- ESX.ShowNotification(TranslateCap('license_missing'))
+ ESX.ShowNotification(TranslateCap("license_missing"))
end
- end, GetPlayerServerId(PlayerId()), 'drive')
+ end, GetPlayerServerId(PlayerId()), "drive")
else
OpenShopMenu()
end
- elseif CurrentAction == 'reseller_menu' then
+ elseif CurrentAction == "reseller_menu" then
OpenResellerMenu()
- elseif CurrentAction == 'give_back_vehicle' then
- ESX.TriggerServerCallback('esx_vehicleshop:giveBackVehicle', function(isRentedVehicle)
+ elseif CurrentAction == "give_back_vehicle" then
+ ESX.TriggerServerCallback("esx_vehicleshop:giveBackVehicle", function(isRentedVehicle)
if isRentedVehicle then
ESX.Game.DeleteVehicle(CurrentActionData.vehicle)
- ESX.ShowNotification(TranslateCap('delivered'))
+ ESX.ShowNotification(TranslateCap("delivered"))
else
- ESX.ShowNotification(TranslateCap('not_rental'))
+ ESX.ShowNotification(TranslateCap("not_rental"))
end
end, ESX.Math.Trim(GetVehicleNumberPlateText(CurrentActionData.vehicle)))
- elseif CurrentAction == 'resell_vehicle' then
- ESX.TriggerServerCallback('esx_vehicleshop:resellVehicle', function(vehicleSold)
+ elseif CurrentAction == "resell_vehicle" then
+ ESX.TriggerServerCallback("esx_vehicleshop:resellVehicle", function(vehicleSold)
if vehicleSold then
ESX.Game.DeleteVehicle(CurrentActionData.vehicle)
- ESX.ShowNotification(TranslateCap('vehicle_sold_for', CurrentActionData.label, ESX.Math.GroupDigits(CurrentActionData.price)))
+ ESX.ShowNotification(
+ TranslateCap(
+ "vehicle_sold_for",
+ CurrentActionData.label,
+ ESX.Math.GroupDigits(CurrentActionData.price)
+ )
+ )
else
- ESX.ShowNotification(TranslateCap('not_yours'))
+ ESX.ShowNotification(TranslateCap("not_yours"))
end
end, CurrentActionData.plate, CurrentActionData.model)
- elseif CurrentAction == 'boss_actions_menu' then
+ elseif CurrentAction == "boss_actions_menu" then
OpenBossActionsMenu()
end
ESX.HideUI()
@@ -842,4 +971,6 @@ CreateThread(function()
end
end)
-if ESX.PlayerLoaded then PlayerManagement() end
\ No newline at end of file
+if ESX.PlayerLoaded then
+ PlayerManagement()
+end