From 2c77a9fcd9d5294ff9c0f2dc6c9fee75880d279a Mon Sep 17 00:00:00 2001
From: bitpredator <67551273+bitpredator@users.noreply.github.com>
Date: Sun, 25 Aug 2024 10:06:50 +0200
Subject: [PATCH 1/6] chore: improves code performance
---
.../esx_scoreboard/client/main.lua | 10 +++-------
.../esx_scoreboard/fxmanifest.lua | 2 +-
.../esx_scoreboard/html/style.css | 17 -----------------
.../esx_scoreboard/server/main.lua | 19 ++++++-------------
4 files changed, 10 insertions(+), 38 deletions(-)
diff --git a/server-data/resources/[esx_addons]/esx_scoreboard/client/main.lua b/server-data/resources/[esx_addons]/esx_scoreboard/client/main.lua
index 168f63438..3b881bb36 100644
--- a/server-data/resources/[esx_addons]/esx_scoreboard/client/main.lua
+++ b/server-data/resources/[esx_addons]/esx_scoreboard/client/main.lua
@@ -77,15 +77,11 @@ local Keys = {
["N9"] = 118,
}
+ESX = exports["es_extended"]:getSharedObject()
local idVisable = true
-Citizen.CreateThread(function()
- ESX = exports["es_extended"]:getSharedObject()
-
- Citizen.Wait(2000)
- ESX.TriggerServerCallback("esx_scoreboard:getConnectedPlayers", function(connectedPlayers)
- UpdatePlayerTable(connectedPlayers)
- end)
+ESX.TriggerServerCallback("esx_scoreboard:getConnectedPlayers", function(connectedPlayers)
+ UpdatePlayerTable(connectedPlayers)
end)
Citizen.CreateThread(function()
diff --git a/server-data/resources/[esx_addons]/esx_scoreboard/fxmanifest.lua b/server-data/resources/[esx_addons]/esx_scoreboard/fxmanifest.lua
index 6b9f08625..527a9f59d 100644
--- a/server-data/resources/[esx_addons]/esx_scoreboard/fxmanifest.lua
+++ b/server-data/resources/[esx_addons]/esx_scoreboard/fxmanifest.lua
@@ -1,6 +1,6 @@
fx_version("cerulean")
games({ "gta5" })
-
+version("1.0.2")
ui_page("html/scoreboard.html")
files({
diff --git a/server-data/resources/[esx_addons]/esx_scoreboard/html/style.css b/server-data/resources/[esx_addons]/esx_scoreboard/html/style.css
index 944f649a4..651f48baf 100644
--- a/server-data/resources/[esx_addons]/esx_scoreboard/html/style.css
+++ b/server-data/resources/[esx_addons]/esx_scoreboard/html/style.css
@@ -49,23 +49,6 @@ p {
size: 100%;
}
-.jobs {
- font-family: 'Segoe UI';
- padding-top: 3px;
- border-top-left-radius: 10px;
- border-top-right-radius: 10px;
- /*background-image: url(https://cdn.discordapp.com/attachments/715640529626595439/719964336470229022/bg4.png);*/
- background-size: cover;
- background-repeat: no-repeat;
- height: 4.2vw;
- width: 100%;
- box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.3), 0px 1px 1px 0px rgba(0, 0, 0, 0.3);
-}
-
-.jobs p {
- font-family: 'Segoe UI';
-}
-
table {
text-align: left;
color: white;
diff --git a/server-data/resources/[esx_addons]/esx_scoreboard/server/main.lua b/server-data/resources/[esx_addons]/esx_scoreboard/server/main.lua
index d787c786a..3ba4bae3e 100644
--- a/server-data/resources/[esx_addons]/esx_scoreboard/server/main.lua
+++ b/server-data/resources/[esx_addons]/esx_scoreboard/server/main.lua
@@ -2,17 +2,11 @@ local connectedPlayers = {}
ESX = exports["es_extended"]:getSharedObject()
-ESX.RegisterServerCallback("esx_scoreboard:getConnectedPlayers", function(source, cb)
+ESX.RegisterServerCallback("esx_scoreboard:getConnectedPlayers", function(_, cb)
cb(connectedPlayers)
end)
-AddEventHandler("esx:setJob", function(playerId, job, lastJob)
- connectedPlayers[playerId].job = job.name
-
- TriggerClientEvent("esx_scoreboard:updateConnectedPlayers", -1, connectedPlayers)
-end)
-
-AddEventHandler("esx:playerLoaded", function(playerId, xPlayer)
+AddEventHandler("esx:playerLoaded", function(_, xPlayer)
AddPlayerToScoreboard(xPlayer, true)
end)
@@ -45,7 +39,6 @@ function AddPlayerToScoreboard(xPlayer, update)
connectedPlayers[playerId].ping = GetPlayerPing(playerId)
connectedPlayers[playerId].id = playerId
connectedPlayers[playerId].name = GetPlayerName(playerId)
- connectedPlayers[playerId].job = xPlayer.job.name
if update then
TriggerClientEvent("esx_scoreboard:updateConnectedPlayers", -1, connectedPlayers)
@@ -78,20 +71,20 @@ function UpdatePing()
TriggerClientEvent("esx_scoreboard:updatePing", -1, connectedPlayers)
end
-RegisterCommand("screfresh", function(source, args, user)
+RegisterCommand("screfresh", function(source)
local xPlayer = ESX.GetPlayerFromId(source)
- if xPlayer.getGroup() == "admin" or xPlayer.getGroup() == "superadmin" then
+ if xPlayer.getGroup() == "admin" or xPlayer.getGroup() == "admin" then
AddPlayersToScoreboard()
else
TriggerClientEvent("chatMessage", source, "[CONSOLE]", { 255, 0, 0 }, " ^0Shoma ^1Admin ^0nistid!")
end
end, false)
-RegisterCommand("sctoggle", function(source, args, user)
+RegisterCommand("sctoggle", function(source)
local xPlayer = ESX.GetPlayerFromId(source)
- if xPlayer.getGroup() == "admin" or xPlayer.getGroup() == "superadmin" then
+ if xPlayer.getGroup() == "admin" or xPlayer.getGroup() == "admin" then
TriggerClientEvent("esx_scoreboard:toggleID", source)
else
TriggerClientEvent("chatMessage", source, "[CONSOLE]", { 255, 0, 0 }, " ^0Shoma ^1Admin ^0nistid!")
From 0de62df08dbd204e8d2b290ba724c9dbcdb851fe Mon Sep 17 00:00:00 2001
From: bitpredator <67551273+bitpredator@users.noreply.github.com>
Date: Sun, 25 Aug 2024 10:12:12 +0200
Subject: [PATCH 2/6] fix: corrected police uniforms for recruits
---
.../resources/[bpt_addons]/bpt_policejob/config.lua | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/server-data/resources/[bpt_addons]/bpt_policejob/config.lua b/server-data/resources/[bpt_addons]/bpt_policejob/config.lua
index 6562e2dff..71259e566 100644
--- a/server-data/resources/[bpt_addons]/bpt_policejob/config.lua
+++ b/server-data/resources/[bpt_addons]/bpt_policejob/config.lua
@@ -158,18 +158,18 @@ Config.AuthorizedVehicles = {
Config.Uniforms = {
recruit = {
male = {
- tshirt_1 = 59,
- tshirt_2 = 1,
+ tshirt_1 = 58,
+ tshirt_2 = 0,
torso_1 = 55,
torso_2 = 0,
- decals_1 = 0,
- decals_2 = 0,
+ decals_1 = 8,
+ decals_2 = 3,
arms = 41,
pants_1 = 25,
pants_2 = 0,
shoes_1 = 25,
shoes_2 = 0,
- helmet_1 = 46,
+ helmet_1 = -1,
helmet_2 = 0,
chain_1 = 0,
chain_2 = 0,
From ebff1a00dbcc3d08f4f3146261b09b6090abaee0 Mon Sep 17 00:00:00 2001
From: bitpredator <67551273+bitpredator@users.noreply.github.com>
Date: Sun, 25 Aug 2024 10:46:25 +0200
Subject: [PATCH 3/6] chore: set an automatic kick if ping is above 200
---
.../esx_scoreboard/server/main.lua | 168 ++++++++++++------
1 file changed, 114 insertions(+), 54 deletions(-)
diff --git a/server-data/resources/[esx_addons]/esx_scoreboard/server/main.lua b/server-data/resources/[esx_addons]/esx_scoreboard/server/main.lua
index 3ba4bae3e..8020c41a8 100644
--- a/server-data/resources/[esx_addons]/esx_scoreboard/server/main.lua
+++ b/server-data/resources/[esx_addons]/esx_scoreboard/server/main.lua
@@ -3,90 +3,150 @@ local connectedPlayers = {}
ESX = exports["es_extended"]:getSharedObject()
ESX.RegisterServerCallback("esx_scoreboard:getConnectedPlayers", function(_, cb)
- cb(connectedPlayers)
+ cb(connectedPlayers)
end)
AddEventHandler("esx:playerLoaded", function(_, xPlayer)
- AddPlayerToScoreboard(xPlayer, true)
+ AddPlayerToScoreboard(xPlayer, true)
end)
AddEventHandler("esx:playerDropped", function(playerId)
- connectedPlayers[playerId] = nil
+ connectedPlayers[playerId] = nil
- TriggerClientEvent("esx_scoreboard:updateConnectedPlayers", -1, connectedPlayers)
+ TriggerClientEvent("esx_scoreboard:updateConnectedPlayers", -1, connectedPlayers)
end)
Citizen.CreateThread(function()
- while true do
- Citizen.Wait(5000)
- UpdatePing()
- end
+ while true do
+ Citizen.Wait(5000)
+ UpdatePing()
+ end
end)
AddEventHandler("onResourceStart", function(resource)
- if resource == GetCurrentResourceName() then
- Citizen.CreateThread(function()
- Citizen.Wait(1000)
- AddPlayersToScoreboard()
- end)
- end
+ if resource == GetCurrentResourceName() then
+ Citizen.CreateThread(function()
+ Citizen.Wait(1000)
+ AddPlayersToScoreboard()
+ end)
+ end
end)
function AddPlayerToScoreboard(xPlayer, update)
- local playerId = xPlayer.source
-
- connectedPlayers[playerId] = {}
- connectedPlayers[playerId].ping = GetPlayerPing(playerId)
- connectedPlayers[playerId].id = playerId
- connectedPlayers[playerId].name = GetPlayerName(playerId)
-
- if update then
- TriggerClientEvent("esx_scoreboard:updateConnectedPlayers", -1, connectedPlayers)
- end
-
- if xPlayer.permission_level == 0 then
- Citizen.CreateThread(function()
- Citizen.Wait(3000)
- TriggerClientEvent("esx_scoreboard:toggleID", playerId, false)
- end)
- end
+ local playerId = xPlayer.source
+
+ connectedPlayers[playerId] = {}
+ connectedPlayers[playerId].ping = GetPlayerPing(playerId)
+ connectedPlayers[playerId].id = playerId
+ connectedPlayers[playerId].name = GetPlayerName(playerId)
+
+ if update then
+ TriggerClientEvent("esx_scoreboard:updateConnectedPlayers", -1, connectedPlayers)
+ end
+
+ if xPlayer.permission_level == 0 then
+ Citizen.CreateThread(function()
+ Citizen.Wait(3000)
+ TriggerClientEvent("esx_scoreboard:toggleID", playerId, false)
+ end)
+ end
end
function AddPlayersToScoreboard()
- local players = ESX.GetPlayers()
+ local players = ESX.GetPlayers()
- for i = 1, #players, 1 do
- local xPlayer = ESX.GetPlayerFromId(players[i])
- AddPlayerToScoreboard(xPlayer, false)
- end
+ for i = 1, #players, 1 do
+ local xPlayer = ESX.GetPlayerFromId(players[i])
+ AddPlayerToScoreboard(xPlayer, false)
+ end
- TriggerClientEvent("esx_scoreboard:updateConnectedPlayers", -1, connectedPlayers)
+ TriggerClientEvent("esx_scoreboard:updateConnectedPlayers", -1, connectedPlayers)
end
function UpdatePing()
- for k, v in pairs(connectedPlayers) do
- v.ping = GetPlayerPing(k)
- TriggerClientEvent("status:updatePing", k, v.ping)
- end
- TriggerClientEvent("esx_scoreboard:updatePing", -1, connectedPlayers)
+ for k, v in pairs(connectedPlayers) do
+ v.ping = GetPlayerPing(k)
+ TriggerClientEvent("status:updatePing", k, v.ping)
+ end
+ TriggerClientEvent("esx_scoreboard:updatePing", -1, connectedPlayers)
end
RegisterCommand("screfresh", function(source)
- local xPlayer = ESX.GetPlayerFromId(source)
+ local xPlayer = ESX.GetPlayerFromId(source)
- if xPlayer.getGroup() == "admin" or xPlayer.getGroup() == "admin" then
- AddPlayersToScoreboard()
- else
- TriggerClientEvent("chatMessage", source, "[CONSOLE]", { 255, 0, 0 }, " ^0Shoma ^1Admin ^0nistid!")
- end
+ if xPlayer.getGroup() == "admin" or xPlayer.getGroup() == "admin" then
+ AddPlayersToScoreboard()
+ else
+ TriggerClientEvent("chatMessage", source, "[CONSOLE]", { 255, 0, 0 }, " ^0Shoma ^1Admin ^0nistid!")
+ end
end, false)
RegisterCommand("sctoggle", function(source)
- local xPlayer = ESX.GetPlayerFromId(source)
+ local xPlayer = ESX.GetPlayerFromId(source)
- if xPlayer.getGroup() == "admin" or xPlayer.getGroup() == "admin" then
- TriggerClientEvent("esx_scoreboard:toggleID", source)
- else
- TriggerClientEvent("chatMessage", source, "[CONSOLE]", { 255, 0, 0 }, " ^0Shoma ^1Admin ^0nistid!")
- end
+ if xPlayer.getGroup() == "admin" or xPlayer.getGroup() == "admin" then
+ TriggerClientEvent("esx_scoreboard:toggleID", source)
+ else
+ TriggerClientEvent("chatMessage", source, "[CONSOLE]", { 255, 0, 0 }, " ^0Shoma ^1Admin ^0nistid!")
+ end
end, false)
+
+-- Ping Kick
+local limit = GetConvarInt("pingkick", 200)
+local checkInterval = GetConvarInt("pingkick_interval", 5000)
+local warningStr = GetConvar("pingkick_warning", "Your ping is too high. Fix it. (%dms, Warning: %d/3)")
+local reasonStr = GetConvar("pingkick_reason", "You were kicked for having a high ping. (%dms)")
+
+local pingHits = {}
+
+print("Limit set to " .. limit)
+
+local function CheckPing(player)
+ CreateThread(function()
+ if GetPlayerPed(player) == 0 then
+ return
+ end -- Don't do anything if player doesn't have a ped yet
+
+ local name = GetPlayerName(player)
+ local ping = GetPlayerPing(player)
+
+ if pingHits[player] == nil then
+ pingHits[player] = 0
+ end
+
+ if ping >= limit then
+ pingHits[player] = pingHits[player] + 1
+
+ print(name .. " was warned. (Ping: " .. ping .. "ms, Warning: " .. pingHits[player] .. "/3)")
+ TriggerClientEvent(
+ "chat:addMessage",
+ player,
+ { args = { "Ping", warningStr:format(ping, pingHits[player]) } }
+ )
+ elseif pingHits[player] > 0 then
+ pingHits[player] = pingHits[player] - 1
+ end
+
+ if pingHits[player] == 3 then
+ pingHits[player] = 0
+
+ print(name .. " was kicked. (Ping: " .. ping .. "ms)")
+
+ DropPlayer(player, reasonStr:format(ping))
+ end
+ end)
+end
+
+CreateThread(function() -- Loop trough all players and check their pings
+ while true do
+ for _, player in ipairs(GetPlayers()) do
+ CheckPing(player)
+ end
+
+ Wait(checkInterval)
+ end
+end)
+
+AddEventHandler("playerDropped", function()
+ pingHits[source] = 0
+end)
From a8ad5e7809fd2a85c91f4254c29d00d38b35b07d Mon Sep 17 00:00:00 2001
From: bitpredator <67551273+bitpredator@users.noreply.github.com>
Date: Sun, 25 Aug 2024 11:12:15 +0200
Subject: [PATCH 4/6] fix: use SetEntityCoords correctly
---
.../[bpt_addons]/bpt_teleport/warehouses.lua | 135 +++++++-----------
1 file changed, 51 insertions(+), 84 deletions(-)
diff --git a/server-data/resources/[bpt_addons]/bpt_teleport/warehouses.lua b/server-data/resources/[bpt_addons]/bpt_teleport/warehouses.lua
index fddbdbca2..f752980e6 100644
--- a/server-data/resources/[bpt_addons]/bpt_teleport/warehouses.lua
+++ b/server-data/resources/[bpt_addons]/bpt_teleport/warehouses.lua
@@ -1,93 +1,60 @@
ESX = exports["es_extended"]:getSharedObject()
CreateThread(function()
- while true do
- Wait(0)
- local playerCoords = GetEntityCoords(PlayerPedId(), true)
- -- import enter check
- if
- GetDistanceBetweenCoords(
- playerCoords.x,
- playerCoords.y,
- playerCoords.z,
- 1025.393433,
- -2398.905518,
- 29.903320,
- true
- ) <= 3.0
- then
- ESX.ShowHelpNotification(TranslateCap("press_to_enter"))
- if IsControlPressed(0, 51) then
- DoScreenFadeOut(1000)
- Wait(1500)
- SetEntityCoords(PlayerPedId(), 1022.123108, -2398.377930, 30.122314)
- Wait(1000)
- DoScreenFadeIn(1000)
- end
- end
+ while true do
+ Wait(0)
+ local playerCoords = GetEntityCoords(PlayerPedId(), true)
+ -- import enter check
+ if GetDistanceBetweenCoords(playerCoords.x, playerCoords.y, playerCoords.z, 1025.393433, -2398.905518, 29.903320, true) <= 3.0 then
+ ESX.ShowHelpNotification(TranslateCap("press_to_enter"))
+ if IsControlPressed(0, 51) then
+ DoScreenFadeOut(1000)
+ Wait(1500)
+ SetEntityCoords(PlayerPedId(), 1022.123108, -2398.377930, 30.122314, false, false, false, true)
+ Wait(1000)
+ DoScreenFadeIn(1000)
+ end
+ end
- -- import exit
- if
- GetDistanceBetweenCoords(
- playerCoords.x,
- playerCoords.y,
- playerCoords.z,
- 1022.123108,
- -2398.377930,
- 30.122314,
- true
- ) <= 3.0
- then
- ESX.ShowHelpNotification(TranslateCap("press_to_exit"))
- if IsControlPressed(0, 51) then
- DoScreenFadeOut(1000)
- Wait(1500)
- SetEntityCoords(PlayerPedId(), 1025.459351, -2398.865967, 29.903320, 239.736)
- Wait(1000)
- DoScreenFadeIn(1000)
- end
- end
- end
+ -- import exit
+ if GetDistanceBetweenCoords(playerCoords.x, playerCoords.y, playerCoords.z, 1022.123108, -2398.377930, 30.122314, true) <= 3.0 then
+ ESX.ShowHelpNotification(TranslateCap("press_to_exit"))
+ if IsControlPressed(0, 51) then
+ DoScreenFadeOut(1000)
+ Wait(1500)
+ SetEntityCoords(PlayerPedId(), 1025.459351, -2398.865967, 29.903320, false, false, false, true)
+ Wait(1000)
+ DoScreenFadeIn(1000)
+ end
+ end
+ end
end)
-- Unicorn
CreateThread(function()
- while true do
- Wait(0)
- local playerCoords = GetEntityCoords(PlayerPedId(), true)
- if
- GetDistanceBetweenCoords(playerCoords.x, playerCoords.y, playerCoords.z, 132.608, -1293.978, 28.269, true)
- <= 3.0
- then
- ESX.ShowHelpNotification(TranslateCap("press_to_enter"))
- if IsControlPressed(0, 51) then
- DoScreenFadeOut(1000)
- Wait(1500)
- SetEntityCoords(PlayerPedId(), 126.742, -1278.386, 28.569)
- Wait(1000)
- DoScreenFadeIn(1000)
- end
- end
- -- import exit
- if
- GetDistanceBetweenCoords(
- playerCoords.x,
- playerCoords.y,
- playerCoords.z,
- 132.540665,
- -1290.329712,
- 29.263062,
- true
- ) <= 3.0
- then
- ESX.ShowHelpNotification(TranslateCap("press_to_exit"))
- if IsControlPressed(0, 51) then
- DoScreenFadeOut(1000)
- Wait(1500)
- SetEntityCoords(PlayerPedId(), 132.527481, -1294.153809, 29.263062)
- Wait(1000)
- DoScreenFadeIn(1000)
- end
- end
- end
+ while true do
+ Wait(0)
+ local playerCoords = GetEntityCoords(PlayerPedId(), true)
+ if GetDistanceBetweenCoords(playerCoords.x, playerCoords.y, playerCoords.z, 132.608, -1293.978, 28.269, true) <= 3.0 then
+ ESX.ShowHelpNotification(TranslateCap("press_to_enter"))
+ if IsControlPressed(0, 51) then
+ DoScreenFadeOut(1000)
+ Wait(1500)
+ SetEntityCoords(PlayerPedId(), 126.742, -1278.386, 28.569, false, false, false, true)
+ Wait(1000)
+ DoScreenFadeIn(1000)
+ end
+ end
+ -- import exit
+ if GetDistanceBetweenCoords(playerCoords.x, playerCoords.y, playerCoords.z, 132.540665, -1290.329712, 29.263062, true) <= 3.0 then
+ ESX.ShowHelpNotification(TranslateCap("press_to_exit"))
+ if IsControlPressed(0, 51) then
+ DoScreenFadeOut(1000)
+ Wait(1500)
+ SetEntityCoords(PlayerPedId(), 132.527481, -1294.153809, 29.263062, false, false, false, true)
+ Wait(1000)
+ DoScreenFadeIn(1000)
+ end
+ end
+ end
end)
From 51274b64c3c3241efed4eee3f889ef3d19c12305 Mon Sep 17 00:00:00 2001
From: bitpredator <67551273+bitpredator@users.noreply.github.com>
Date: Sun, 25 Aug 2024 11:38:16 +0200
Subject: [PATCH 5/6] chore: bpt_hud\client\carhud.lua small fixes
---
.../[bpt_addons]/bpt_hud/client/carhud.lua | 29 +++++++++----------
1 file changed, 14 insertions(+), 15 deletions(-)
diff --git a/server-data/resources/[bpt_addons]/bpt_hud/client/carhud.lua b/server-data/resources/[bpt_addons]/bpt_hud/client/carhud.lua
index 695f90f66..bc3e4a185 100644
--- a/server-data/resources/[bpt_addons]/bpt_hud/client/carhud.lua
+++ b/server-data/resources/[bpt_addons]/bpt_hud/client/carhud.lua
@@ -72,7 +72,7 @@ CreateThread(function()
-- Display Location and time when in any vehicle or on foot (if enabled)
if pedInVeh or locationAlwaysOn then
-- Get time and display
- drawTxt(timeText, 4, locationColorText, 0.4, screenPosX, screenPosY + 0.048)
+ DrawTxt(timeText, 4, locationColorText, 0.4, screenPosX, screenPosY + 0.048)
-- Display remainder of HUD when engine is on and vehicle is not a bicycle
local vehicleClass = GetVehicleClass(vehicle)
@@ -89,7 +89,7 @@ CreateThread(function()
-- Toggle seatbelt status and play sound when enabled
seatbeltIsOn = not seatbeltIsOn
if seatbeltPlaySound then
- PlaySoundFrontend(-1, "Faster_Click", "RESPAWN_ONLINE_SOUNDSET", 1)
+ PlaySoundFrontend(-1, "Faster_Click", "RESPAWN_ONLINE_SOUNDSET", true)
end
end
if not seatbeltIsOn then
@@ -97,17 +97,17 @@ CreateThread(function()
local vehIsMovingFwd = GetEntitySpeedVector(vehicle, true).y > 1.0
local vehAcc = (prevSpeed - currSpeed) / GetFrameTime()
if vehIsMovingFwd and (prevSpeed > (seatbeltEjectSpeed / 2.237)) and (vehAcc > (seatbeltEjectAccel * 9.81)) then
- SetEntityCoords(player, position.x, position.y, position.z - 0.47, true, true, true)
+ SetEntityCoords(player, position.x, position.y, position.z, false, false, false, true)
SetEntityVelocity(player, prevVelocity.x, prevVelocity.y, prevVelocity.z)
Wait(1)
- SetPedToRagdoll(player, 1000, 1000, 0, 0, 0, 0)
+ SetPedToRagdoll(player, 1000, 1000, 0, false, false, false)
else
-- Update previous velocity for ejecting player
prevVelocity = GetEntityVelocity(vehicle)
end
elseif seatbeltDisableExit then
-- Disable vehicle exit when seatbelt is on
- DisableControlAction(0, 75)
+ DisableControlAction(0, 75, true)
end
-- When player in driver seat, handle cruise control
@@ -129,29 +129,29 @@ CreateThread(function()
-- Get vehicle speed in KPH and draw speedometer
local speed = currSpeed * 3.6
local speedColor = (speed >= speedLimit) and speedColorOver or speedColorUnder
- drawTxt(("%.3d"):format(math.ceil(speed)), 2, speedColor, 0.8, screenPosX + 0.000, screenPosY + 0.000)
- drawTxt("KPH", 2, speedColorText, 0.4, screenPosX + 0.030, screenPosY + 0.018)
+ DrawTxt(("%.3d"):format(math.ceil(speed)), 2, speedColor, 0.8, screenPosX + 0.000, screenPosY + 0.000)
+ DrawTxt("KPH", 2, speedColorText, 0.4, screenPosX + 0.030, screenPosY + 0.018)
else
-- Get vehicle speed in MPH and draw speedometer
local speed = currSpeed * 2.23694
local speedColor = (speed >= speedLimit) and speedColorOver or speedColorUnder
- drawTxt(("%.3d"):format(math.ceil(speed)), 2, speedColor, 0.8, screenPosX + 0.000, screenPosY + 0.000)
- drawTxt("MPH", 2, speedColorText, 0.4, screenPosX + 0.030, screenPosY + 0.018)
+ DrawTxt(("%.3d"):format(math.ceil(speed)), 2, speedColor, 0.8, screenPosX + 0.000, screenPosY + 0.000)
+ DrawTxt("MPH", 2, speedColorText, 0.4, screenPosX + 0.030, screenPosY + 0.018)
end
-- Draw fuel gauge
local fuelColor = (currentFuel >= fuelWarnLimit) and fuelColorOver or fuelColorUnder
- drawTxt(("%.3d"):format(math.ceil(currentFuel)), 2, fuelColor, 0.8, screenPosX + 0.055, screenPosY + 0.000)
- drawTxt("FUEL", 2, fuelColorText, 0.4, screenPosX + 0.085, screenPosY + 0.018)
+ DrawTxt(("%.3d"):format(math.ceil(currentFuel)), 2, fuelColor, 0.8, screenPosX + 0.055, screenPosY + 0.000)
+ DrawTxt("FUEL", 2, fuelColorText, 0.4, screenPosX + 0.085, screenPosY + 0.018)
-- Draw cruise control status
local cruiseColor = cruiseIsOn and cruiseColorOn or cruiseColorOff
- drawTxt("CRUISE", 2, cruiseColor, 0.4, screenPosX + 0.020, screenPosY + 0.048)
+ DrawTxt("CRUISE", 2, cruiseColor, 0.4, screenPosX + 0.020, screenPosY + 0.048)
-- Draw seatbelt status if not a motorcyle
if vehicleClass ~= 8 then
local seatbeltColor = seatbeltIsOn and seatbeltColorOn or seatbeltColorOff
- drawTxt("SEATBELT", 2, seatbeltColor, 0.4, screenPosX + 0.080, screenPosY + 0.048)
+ DrawTxt("SEATBELT", 2, seatbeltColor, 0.4, screenPosX + 0.080, screenPosY + 0.048)
end
end
end
@@ -189,12 +189,11 @@ CreateThread(function()
end)
-- Helper function to draw text to screen
-function drawTxt(content, font, colour, scale, x, y)
+function DrawTxt(content, font, colour, scale, x, y)
SetTextFont(font)
SetTextScale(scale, scale)
SetTextColour(colour[1], colour[2], colour[3], 255)
SetTextEntry("STRING")
- SetTextDropShadow(0, 0, 0, 0, 255)
SetTextDropShadow()
SetTextEdge(4, 0, 0, 0, 255)
SetTextOutline()
From 789e55414be4ca18398b1bad740ad9f585cffd3e Mon Sep 17 00:00:00 2001
From: bitpredator <67551273+bitpredator@users.noreply.github.com>
Date: Sun, 25 Aug 2024 11:45:15 +0200
Subject: [PATCH 6/6] =?UTF-8?q?chore:=20bpt=5Flscustom=20=F0=9F=8E=A8=20Ru?=
=?UTF-8?q?n=20formatter=20+=20set=20language=20to=20Italian?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../[bpt_addons]/bpt_lscustom/client/main.lua | 267 ++--
.../[bpt_addons]/bpt_lscustom/config.lua | 1200 ++++++++---------
.../[bpt_addons]/bpt_lscustom/fxmanifest.lua | 40 +-
.../[bpt_addons]/bpt_lscustom/locales/en.lua | 508 +++----
.../[bpt_addons]/bpt_lscustom/locales/it.lua | 546 ++++----
.../[bpt_addons]/bpt_lscustom/server/main.lua | 95 +-
6 files changed, 1319 insertions(+), 1337 deletions(-)
diff --git a/server-data/resources/[bpt_addons]/bpt_lscustom/client/main.lua b/server-data/resources/[bpt_addons]/bpt_lscustom/client/main.lua
index 151c21e10..2f505c16a 100644
--- a/server-data/resources/[bpt_addons]/bpt_lscustom/client/main.lua
+++ b/server-data/resources/[bpt_addons]/bpt_lscustom/client/main.lua
@@ -2,22 +2,22 @@ local Vehicles, myCar = {}, {}
local lsMenuIsShowed, HintDisplayed = false, false
local gameBuild = GetGameBuildNumber()
-RegisterNetEvent('esx:playerLoaded')
-AddEventHandler('esx:playerLoaded', function()
- ESX.TriggerServerCallback('bpt_lscustom:getVehiclesPrices', function(vehicles)
+RegisterNetEvent("esx:playerLoaded")
+AddEventHandler("esx:playerLoaded", function()
+ ESX.TriggerServerCallback("bpt_lscustom:getVehiclesPrices", function(vehicles)
Vehicles = vehicles
end)
end)
-RegisterNetEvent('bpt_lscustom:installMod')
-AddEventHandler('bpt_lscustom:installMod', function()
+RegisterNetEvent("bpt_lscustom:installMod")
+AddEventHandler("bpt_lscustom:installMod", function()
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
local NetId = NetworkGetNetworkIdFromEntity(vehicle)
myCar = ESX.Game.GetVehicleProperties(vehicle)
- TriggerServerEvent('bpt_lscustom:refreshOwnedVehicle', myCar, NetId)
+ TriggerServerEvent("bpt_lscustom:refreshOwnedVehicle", myCar, NetId)
end)
-RegisterNetEvent('bpt_lscustom:restoreMods', function(netId, props)
+RegisterNetEvent("bpt_lscustom:restoreMods", function(netId, props)
local xVehicle = NetworkGetEntityFromNetworkId(netId)
if props ~= nil then
if DoesEntityExist(xVehicle) then
@@ -26,45 +26,45 @@ RegisterNetEvent('bpt_lscustom:restoreMods', function(netId, props)
end
end)
-RegisterNetEvent('bpt_lscustom:cancelInstallMod')
-AddEventHandler('bpt_lscustom:cancelInstallMod', function()
+RegisterNetEvent("bpt_lscustom:cancelInstallMod")
+AddEventHandler("bpt_lscustom:cancelInstallMod", function()
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
- if (GetPedInVehicleSeat(vehicle, -1) ~= PlayerPedId()) then
+ if GetPedInVehicleSeat(vehicle, -1) ~= PlayerPedId() then
vehicle = GetPlayersLastVehicle(PlayerPedId())
end
ESX.Game.SetVehicleProperties(vehicle, myCar)
- if not (myCar.modTurbo) then
+ if not myCar.modTurbo then
ToggleVehicleMod(vehicle, 18, false)
end
- if not (myCar.modXenon) then
+ if not myCar.modXenon then
ToggleVehicleMod(vehicle, 22, false)
end
- if not (myCar.windowTint) then
+ if not myCar.windowTint then
SetVehicleWindowTint(vehicle, 0)
end
end)
-AddEventHandler('onClientResourceStop', function(resource)
+AddEventHandler("onClientResourceStop", function(resource)
if resource == GetCurrentResourceName() then
if lsMenuIsShowed then
- TriggerEvent('bpt_lscustom:cancelInstallMod')
+ TriggerEvent("bpt_lscustom:cancelInstallMod")
end
end
end)
-AddEventHandler('onResourceStop', function(resource)
+AddEventHandler("onResourceStop", function(resource)
if resource == GetCurrentResourceName() then
if lsMenuIsShowed then
- TriggerEvent('bpt_lscustom:cancelInstallMod')
+ TriggerEvent("bpt_lscustom:cancelInstallMod")
end
end
end)
function OpenLSMenu(elems, menuName, menuTitle, parent)
- ESX.UI.Menu.Open('default', GetCurrentResourceName(), menuName, {
+ ESX.UI.Menu.Open("default", GetCurrentResourceName(), menuName, {
title = menuTitle,
- align = 'top-left',
- elements = elems
+ align = "top-left",
+ elements = elems,
}, function(data, menu)
local isRimMod, found = false, false
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
@@ -78,10 +78,10 @@ function OpenLSMenu(elems, menuName, menuTitle, parent)
for k, v in pairs(Config.Menus) do
if k == data.current.modType or isRimMod then
- if data.current.label == TranslateCap('by_default') or string.match(data.current.label, TranslateCap('installed')) then
- ESX.ShowNotification(TranslateCap('already_own', data.current.label))
+ if data.current.label == TranslateCap("by_default") or string.match(data.current.label, TranslateCap("installed")) then
+ ESX.ShowNotification(TranslateCap("already_own", data.current.label))
myCar = ESX.Game.GetVehicleProperties(vehicle)
- TriggerServerEvent('bpt_lscustom:refreshOwnedVehicle', myCar, NetworkGetNetworkIdFromEntity(vehicle))
+ TriggerServerEvent("bpt_lscustom:refreshOwnedVehicle", myCar, NetworkGetNetworkIdFromEntity(vehicle))
else
local vehiclePrice = 50000
@@ -94,16 +94,16 @@ function OpenLSMenu(elems, menuName, menuTitle, parent)
if isRimMod then
local price = math.floor(vehiclePrice * data.current.price / 100)
- TriggerServerEvent('bpt_lscustom:buyMod', price)
+ TriggerServerEvent("bpt_lscustom:buyMod", price)
elseif v.modType == 11 or v.modType == 12 or v.modType == 13 or v.modType == 15 or v.modType == 16 then
local price = math.floor(vehiclePrice * v.price[data.current.modNum + 1] / 100)
- TriggerServerEvent('bpt_lscustom:buyMod', price)
+ TriggerServerEvent("bpt_lscustom:buyMod", price)
elseif v.modType == 17 then
local price = math.floor(vehiclePrice * v.price[1] / 100)
- TriggerServerEvent('bpt_lscustom:buyMod', price)
+ TriggerServerEvent("bpt_lscustom:buyMod", price)
else
local price = math.floor(vehiclePrice * v.price / 100)
- TriggerServerEvent('bpt_lscustom:buyMod', price)
+ TriggerServerEvent("bpt_lscustom:buyMod", price)
end
end
@@ -118,7 +118,7 @@ function OpenLSMenu(elems, menuName, menuTitle, parent)
end
end, function(data, menu) -- on cancel
menu.close()
- TriggerEvent('bpt_lscustom:cancelInstallMod')
+ TriggerEvent("bpt_lscustom:cancelInstallMod")
local playerPed = PlayerPedId()
local vehicle = GetVehiclePedIsIn(playerPed, false)
@@ -127,7 +127,7 @@ function OpenLSMenu(elems, menuName, menuTitle, parent)
if parent == nil then
lsMenuIsShowed = false
FreezeEntityPosition(vehicle, false)
- TriggerServerEvent('bpt_lscustom:stopModing', myCar.plate)
+ TriggerServerEvent("bpt_lscustom:stopModing", myCar.plate)
myCar = {}
end
end, function(data) -- on change
@@ -142,31 +142,31 @@ function UpdateMods(data)
local props = {}
if data.wheelType then
- props['wheels'] = data.wheelType
+ props["wheels"] = data.wheelType
if GetVehicleClass(vehicle) == 8 then -- Fix bug wheels for bikes.
- props['modBackWheels'] = data.modNum
+ props["modBackWheels"] = data.modNum
end
ESX.Game.SetVehicleProperties(vehicle, props)
props = {}
- elseif data.modType == 'neonColor' then
+ elseif data.modType == "neonColor" then
if data.modNum[1] == 0 and data.modNum[2] == 0 and data.modNum[3] == 0 then
- props['neonEnabled'] = { false, false, false, false }
+ props["neonEnabled"] = { false, false, false, false }
else
- props['neonEnabled'] = { true, true, true, true }
+ props["neonEnabled"] = { true, true, true, true }
end
ESX.Game.SetVehicleProperties(vehicle, props)
props = {}
- elseif data.modType == 'tyreSmokeColor' then
- props['modSmokeEnabled'] = true
+ elseif data.modType == "tyreSmokeColor" then
+ props["modSmokeEnabled"] = true
ESX.Game.SetVehicleProperties(vehicle, props)
props = {}
- elseif data.modType == 'xenonColor' then
+ elseif data.modType == "xenonColor" then
if data.modNum then
- props['modXenon'] = true
+ props["modXenon"] = true
else
- props['modXenon'] = false
+ props["modXenon"] = false
end
ESX.Game.SetVehicleProperties(vehicle, props)
props = {}
@@ -179,18 +179,17 @@ end
function GetAction(data)
local elements = {}
- local menuName = ''
- local menuTitle = ''
+ local menuName = ""
+ local menuTitle = ""
local parent = nil
local playerPed = PlayerPedId()
local vehicle = GetVehiclePedIsIn(playerPed, false)
local currentMods = ESX.Game.GetVehicleProperties(vehicle)
- if data.value == 'modSpeakers' or data.value == 'modTrunk' or data.value == 'modHydrolic' or data.value ==
- 'modEngineBlock' or data.value == 'modAirFilter' or data.value == 'modStruts' or data.value == 'modTank' then
+ if data.value == "modSpeakers" or data.value == "modTrunk" or data.value == "modHydrolic" or data.value == "modEngineBlock" or data.value == "modAirFilter" or data.value == "modStruts" or data.value == "modTank" then
SetVehicleDoorOpen(vehicle, 4, false)
SetVehicleDoorOpen(vehicle, 5, false)
- elseif data.value == 'modDoorSpeaker' then
+ elseif data.value == "modDoorSpeaker" then
SetVehicleDoorOpen(vehicle, 0, false)
SetVehicleDoorOpen(vehicle, 1, false)
SetVehicleDoorOpen(vehicle, 2, false)
@@ -215,53 +214,52 @@ function GetAction(data)
parent = v.parent
if v.modType then
- if v.modType == 22 or v.modType == 'xenonColor' then
+ if v.modType == 22 or v.modType == "xenonColor" then
elements[#elements + 1] = {
- label = " " .. TranslateCap('by_default'),
+ label = " " .. TranslateCap("by_default"),
modType = k,
- modNum = false
+ modNum = false,
}
- elseif v.modType == 'neonColor' or v.modType == 'tyreSmokeColor' then -- disable neon
+ elseif v.modType == "neonColor" or v.modType == "tyreSmokeColor" then -- disable neon
elements[#elements + 1] = {
- label = " " .. TranslateCap('by_default'),
+ label = " " .. TranslateCap("by_default"),
modType = k,
- modNum = { 0, 0, 0 }
+ modNum = { 0, 0, 0 },
}
- elseif v.modType == 'color1' or v.modType == 'color2' or v.modType == 'pearlescentColor' or v.modType ==
- 'wheelColor' then
+ elseif v.modType == "color1" or v.modType == "color2" or v.modType == "pearlescentColor" or v.modType == "wheelColor" then
local num = myCar[v.modType]
elements[#elements + 1] = {
- label = " " .. TranslateCap('by_default'),
+ label = " " .. TranslateCap("by_default"),
modType = k,
- modNum = num
+ modNum = num,
}
elseif v.modType == 17 then
elements[#elements + 1] = {
- label = " " .. TranslateCap('no_turbo'),
+ label = " " .. TranslateCap("no_turbo"),
modType = k,
- modNum = false
+ modNum = false,
}
elseif v.modType == 23 then
elements[#elements + 1] = {
- label = " " .. TranslateCap('by_default'),
+ label = " " .. TranslateCap("by_default"),
modType = "modFrontWheels",
modNum = -1,
wheelType = -1,
- price = Config.DefaultWheelsPriceMultiplier
+ price = Config.DefaultWheelsPriceMultiplier,
}
elseif v.modType == 24 then
elements[#elements + 1] = {
- label = " " .. TranslateCap('by_default'),
+ label = " " .. TranslateCap("by_default"),
modType = "modBackWheels",
modNum = -1,
wheelType = -1,
- price = Config.DefaultWheelsPriceMultiplier
+ price = Config.DefaultWheelsPriceMultiplier,
}
else
elements[#elements + 1] = {
- label = " " .. TranslateCap('by_default'),
+ label = " " .. TranslateCap("by_default"),
modType = k,
- modNum = -1
+ modNum = -1,
}
end
@@ -269,20 +267,18 @@ function GetAction(data)
for j = 0, 51, 1 do
local _label
if j == currentMods.modHorns then
- _label = GetHornName(j) ..
- ' - ' .. TranslateCap('installed') ..
- ''
+ _label = GetHornName(j) .. ' - ' .. TranslateCap("installed") .. ""
else
local price = math.floor(vehiclePrice * v.price / 100)
- _label = GetHornName(j) .. ' - $' .. price .. ' '
+ _label = GetHornName(j) .. ' - $' .. price .. " "
end
elements[#elements + 1] = {
label = _label,
modType = k,
- modNum = j
+ modNum = j,
}
end
- elseif v.modType == 'plateIndex' then -- PLATES
+ elseif v.modType == "plateIndex" then -- PLATES
local maxJ = 5
if gameBuild >= 3095 then
maxJ = 12
@@ -291,87 +287,81 @@ function GetAction(data)
for j = 0, maxJ, 1 do
local _label
if j == currentMods.plateIndex then
- _label = GetPlatesName(j) .. ' - ' ..
- TranslateCap('installed') .. ''
+ _label = GetPlatesName(j) .. ' - ' .. TranslateCap("installed") .. ""
else
local price = math.floor(vehiclePrice * v.price / 100)
- _label = GetPlatesName(j) .. ' - $' .. price .. ' '
+ _label = GetPlatesName(j) .. ' - $' .. price .. " "
end
elements[#elements + 1] = {
label = _label,
modType = k,
- modNum = j
+ modNum = j,
}
end
elseif v.modType == 22 then -- NEON
local _label
if currentMods.modXenon then
- _label = TranslateCap('neon') ..
- ' - ' .. TranslateCap('installed') .. ''
+ _label = TranslateCap("neon") .. ' - ' .. TranslateCap("installed") .. ""
else
local price = math.floor(vehiclePrice * v.price / 100)
- _label = TranslateCap('neon') .. ' - $' .. price .. ' '
+ _label = TranslateCap("neon") .. ' - $' .. price .. " "
end
elements[#elements + 1] = {
label = _label,
modType = k,
- modNum = true
+ modNum = true,
}
- elseif v.modType == 'xenonColor' then -- XENON COLOR
+ elseif v.modType == "xenonColor" then -- XENON COLOR
local xenonColors = GetXenonColors()
local price = math.floor(vehiclePrice * v.price / 100)
for i = 1, #xenonColors, 1 do
elements[#elements + 1] = {
- label = xenonColors[i].label .. ' - $' .. price .. '',
+ label = xenonColors[i].label .. ' - $' .. price .. "",
modType = k,
- modNum = xenonColors[i].index
+ modNum = xenonColors[i].index,
}
end
- elseif v.modType == 'neonColor' or v.modType == 'tyreSmokeColor' then -- NEON & SMOKE COLOR
+ elseif v.modType == "neonColor" or v.modType == "tyreSmokeColor" then -- NEON & SMOKE COLOR
local neons = GetNeons()
local price = math.floor(vehiclePrice * v.price / 100)
for i = 1, #neons, 1 do
elements[#elements + 1] = {
- label = '' .. neons[i].label .. ' - $' .. price .. '',
+ label = '' .. neons[i].label .. ' - $' .. price .. "",
modType = k,
- modNum = { neons[i].r, neons[i].g, neons[i].b }
+ modNum = { neons[i].r, neons[i].g, neons[i].b },
}
end
- elseif v.modType == 'color1' or v.modType == 'color2' or v.modType == 'pearlescentColor' or v.modType ==
- 'wheelColor' then -- RESPRAYS
+ elseif v.modType == "color1" or v.modType == "color2" or v.modType == "pearlescentColor" or v.modType == "wheelColor" then -- RESPRAYS
local colors = GetColors(data.color)
for j = 1, #colors, 1 do
local _label
local price = math.floor(vehiclePrice * v.price / 100)
- _label = colors[j].label .. ' - $' .. price .. ' '
+ _label = colors[j].label .. ' - $' .. price .. " "
elements[#elements + 1] = {
label = _label,
modType = k,
- modNum = colors[j].index
+ modNum = colors[j].index,
}
end
- elseif v.modType == 'windowTint' then -- WINDOWS TINT
+ elseif v.modType == "windowTint" then -- WINDOWS TINT
for j = 1, 5, 1 do
local _label
if j == currentMods.windowTint then
- _label = GetWindowName(j) ..
- ' - ' .. TranslateCap('installed') ..
- ''
+ _label = GetWindowName(j) .. ' - ' .. TranslateCap("installed") .. ""
else
local price = math.floor(vehiclePrice * v.price / 100)
- _label = GetWindowName(j) .. ' - $' .. price .. ' '
+ _label = GetWindowName(j) .. ' - $' .. price .. " "
end
elements[#elements + 1] = {
label = _label,
modType = k,
- modNum = j
+ modNum = j,
}
end
elseif v.modType == 23 then -- WHEELS RIM & TYPE
local props = {}
- props['wheels'] = v.wheelType
+ props["wheels"] = v.wheelType
ESX.Game.SetVehicleProperties(vehicle, props)
local modCount = GetNumVehicleMods(vehicle, v.modType)
@@ -380,26 +370,24 @@ function GetAction(data)
if modName then
local _label
if j == currentMods.modFrontWheels then
- _label = GetLabelText(modName) .. ' - ' ..
- TranslateCap('installed') .. ''
+ _label = GetLabelText(modName) .. ' - ' .. TranslateCap("installed") .. ""
else
local price = math.floor(vehiclePrice * v.price / 100)
- _label = GetLabelText(modName) .. ' - $' .. price ..
- ' '
+ _label = GetLabelText(modName) .. ' - $' .. price .. " "
end
elements[#elements + 1] = {
label = _label,
- modType = 'modFrontWheels',
+ modType = "modFrontWheels",
modNum = j,
wheelType = v.wheelType,
- price = v.price
+ price = v.price,
}
end
end
elseif v.modType == 24 then -- MOTORCYCLES BACK WHEELS
local props = {}
- props['wheels'] = v.wheelType
+ props["wheels"] = v.wheelType
ESX.Game.SetVehicleProperties(vehicle, props)
local modCount = GetNumVehicleMods(vehicle, v.modType)
@@ -408,19 +396,17 @@ function GetAction(data)
if modName then
local _label
if j == currentMods.modBackWheels then
- _label = GetLabelText(modName) .. ' - ' ..
- TranslateCap('installed') .. ''
+ _label = GetLabelText(modName) .. ' - ' .. TranslateCap("installed") .. ""
else
local price = math.floor(vehiclePrice * v.price / 100)
- _label = GetLabelText(modName) .. ' - $' .. price ..
- ' '
+ _label = GetLabelText(modName) .. ' - $' .. price .. " "
end
elements[#elements + 1] = {
label = _label,
- modType = 'modBackWheels',
+ modType = "modBackWheels",
modNum = j,
wheelType = v.wheelType,
- price = v.price
+ price = v.price,
}
end
end
@@ -430,19 +416,15 @@ function GetAction(data)
for j = 0, modCount, 1 do
local _label
if j == currentMods[k] then
- _label =
- TranslateCap('level', j + 1) ..
- ' - ' .. TranslateCap('installed') ..
- ''
+ _label = TranslateCap("level", j + 1) .. ' - ' .. TranslateCap("installed") .. ""
else
local price = math.floor(vehiclePrice * v.price[j + 1] / 100)
- _label = TranslateCap('level', j + 1) ..
- ' - $' .. price .. ' '
+ _label = TranslateCap("level", j + 1) .. ' - $' .. price .. " "
end
elements[#elements + 1] = {
label = _label,
modType = k,
- modNum = j
+ modNum = j,
}
if j == modCount - 1 then
break
@@ -451,16 +433,14 @@ function GetAction(data)
elseif v.modType == 17 then -- TURBO
local _label
if currentMods[k] then
- _label = 'Turbo - ' .. TranslateCap('installed') .. ''
+ _label = 'Turbo - ' .. TranslateCap("installed") .. ""
else
- _label =
- 'Turbo - $' .. math.floor(vehiclePrice * v.price[1] / 100) ..
- ' '
+ _label = 'Turbo - $' .. math.floor(vehiclePrice * v.price[1] / 100) .. " "
end
elements[#elements + 1] = {
label = _label,
modType = k,
- modNum = true
+ modNum = true,
}
else
local modCount = GetNumVehicleMods(vehicle, v.modType) -- BODYPARTS
@@ -469,57 +449,54 @@ function GetAction(data)
if modName then
local _label
if j == currentMods[k] then
- _label = GetLabelText(modName) .. ' - ' ..
- TranslateCap('installed') .. ''
+ _label = GetLabelText(modName) .. ' - ' .. TranslateCap("installed") .. ""
else
local price = math.floor(vehiclePrice * v.price / 100)
- _label = GetLabelText(modName) .. ' - $' .. price ..
- ' '
+ _label = GetLabelText(modName) .. ' - $' .. price .. " "
end
elements[#elements + 1] = {
label = _label,
modType = k,
- modNum = j
+ modNum = j,
}
end
end
end
else
- if data.value == 'primaryRespray' or data.value == 'secondaryRespray' or data.value ==
- 'pearlescentRespray' or data.value == 'modFrontWheelsColor' then
+ if data.value == "primaryRespray" or data.value == "secondaryRespray" or data.value == "pearlescentRespray" or data.value == "modFrontWheelsColor" then
for i = 1, #Config.Colors, 1 do
- if data.value == 'primaryRespray' then
+ if data.value == "primaryRespray" then
elements[#elements + 1] = {
label = Config.Colors[i].label,
- value = 'color1',
- color = Config.Colors[i].value
+ value = "color1",
+ color = Config.Colors[i].value,
}
- elseif data.value == 'secondaryRespray' then
+ elseif data.value == "secondaryRespray" then
elements[#elements + 1] = {
label = Config.Colors[i].label,
- value = 'color2',
- color = Config.Colors[i].value
+ value = "color2",
+ color = Config.Colors[i].value,
}
- elseif data.value == 'pearlescentRespray' then
+ elseif data.value == "pearlescentRespray" then
elements[#elements + 1] = {
label = Config.Colors[i].label,
- value = 'pearlescentColor',
- color = Config.Colors[i].value
+ value = "pearlescentColor",
+ color = Config.Colors[i].value,
}
- elseif data.value == 'modFrontWheelsColor' then
+ elseif data.value == "modFrontWheelsColor" then
elements[#elements + 1] = {
label = Config.Colors[i].label,
- value = 'wheelColor',
- color = Config.Colors[i].value
+ value = "wheelColor",
+ color = Config.Colors[i].value,
}
end
end
else
for l, w in pairs(v) do
- if l ~= 'label' and l ~= 'parent' then
+ if l ~= "label" and l ~= "parent" then
elements[#elements + 1] = {
label = w,
- value = l
+ value = l,
}
end
end
@@ -545,7 +522,7 @@ CreateThread(function()
SetBlipScale(blip, 0.8)
SetBlipAsShortRange(blip, true)
- BeginTextCommandSetBlipName('STRING')
+ BeginTextCommandSetBlipName("STRING")
AddTextComponentSubstringPlayerName(v.Name)
EndTextCommandSetBlipName(blip)
end
@@ -560,7 +537,7 @@ CreateThread(function()
if IsPedInAnyVehicle(playerPed, false) then
local coords = GetEntityCoords(playerPed)
- if (ESX.PlayerData.job and ESX.PlayerData.job.name == 'mechanic') or not Config.IsMechanicJobOnly then
+ if (ESX.PlayerData.job and ESX.PlayerData.job.name == "mechanic") or not Config.IsMechanicJobOnly then
for _, v in pairs(Config.Zones) do
if #(coords - v.Pos) < Config.DrawDistance then
Near = true
@@ -578,11 +555,11 @@ CreateThread(function()
myCar = ESX.Game.GetVehicleProperties(vehicle)
local netId = NetworkGetNetworkIdFromEntity(vehicle)
- TriggerServerEvent('bpt_lscustom:startModing', myCar, netId)
+ TriggerServerEvent("bpt_lscustom:startModing", myCar, netId)
ESX.UI.Menu.CloseAll()
GetAction({
- value = 'main'
+ value = "main",
})
-- Prevent Free Tunning Bug
@@ -597,7 +574,7 @@ CreateThread(function()
DisableControlAction(2, 167, true)
DisableControlAction(2, 168, true)
DisableControlAction(2, 23, true)
- DisableControlAction(0, 75, true) -- Disable exit vehicle
+ DisableControlAction(0, 75, true) -- Disable exit vehicle
DisableControlAction(27, 75, true) -- Disable exit vehicle
end
Wait(Sleep)
diff --git a/server-data/resources/[bpt_addons]/bpt_lscustom/config.lua b/server-data/resources/[bpt_addons]/bpt_lscustom/config.lua
index 7339090a3..3e982c526 100644
--- a/server-data/resources/[bpt_addons]/bpt_lscustom/config.lua
+++ b/server-data/resources/[bpt_addons]/bpt_lscustom/config.lua
@@ -1,251 +1,250 @@
-Config = {}
-Config.DrawDistance = 10.0
-Config.Locale = GetConvar('esx:locale', 'en')
+Config = {}
+Config.DrawDistance = 10.0
+Config.Locale = GetConvar("esx:locale", "it")
Config.IsMechanicJobOnly = true
-Config.Zones = {
+Config.Zones = {
ls1 = {
- Pos = vector3(-337.38, -136.92, 38.57),
- Name = TranslateCap('blip_name'),
- Hint = TranslateCap('press_custom')
- }
-
+ Pos = vector3(-337.38, -136.92, 38.57),
+ Name = TranslateCap("blip_name"),
+ Hint = TranslateCap("press_custom"),
+ },
}
Config.Colors = {
- { label = TranslateCap('black'), value = 'black' },
- { label = TranslateCap('white'), value = 'white' },
- { label = TranslateCap('grey'), value = 'grey' },
- { label = TranslateCap('red'), value = 'red' },
- { label = TranslateCap('pink'), value = 'pink' },
- { label = TranslateCap('blue'), value = 'blue' },
- { label = TranslateCap('yellow'), value = 'yellow' },
- { label = TranslateCap('green'), value = 'green' },
- { label = TranslateCap('orange'), value = 'orange' },
- { label = TranslateCap('brown'), value = 'brown' },
- { label = TranslateCap('purple'), value = 'purple' },
- { label = TranslateCap('chrome'), value = 'chrome' },
- { label = TranslateCap('gold'), value = 'gold' }
+ { label = TranslateCap("black"), value = "black" },
+ { label = TranslateCap("white"), value = "white" },
+ { label = TranslateCap("grey"), value = "grey" },
+ { label = TranslateCap("red"), value = "red" },
+ { label = TranslateCap("pink"), value = "pink" },
+ { label = TranslateCap("blue"), value = "blue" },
+ { label = TranslateCap("yellow"), value = "yellow" },
+ { label = TranslateCap("green"), value = "green" },
+ { label = TranslateCap("orange"), value = "orange" },
+ { label = TranslateCap("brown"), value = "brown" },
+ { label = TranslateCap("purple"), value = "purple" },
+ { label = TranslateCap("chrome"), value = "chrome" },
+ { label = TranslateCap("gold"), value = "gold" },
}
Config.DefaultWheelsPriceMultiplier = 2
function GetColors(color)
local colors = {}
- if color == 'black' then
+ if color == "black" then
colors = {
- { index = 0, label = TranslateCap('black') },
- { index = 1, label = TranslateCap('graphite') },
- { index = 2, label = TranslateCap('black_metallic') },
- { index = 3, label = TranslateCap('caststeel') },
- { index = 11, label = TranslateCap('black_anth') },
- { index = 12, label = TranslateCap('matteblack') },
- { index = 15, label = TranslateCap('darknight') },
- { index = 16, label = TranslateCap('deepblack') },
- { index = 21, label = TranslateCap('oil') },
- { index = 147, label = TranslateCap('carbon') }
+ { index = 0, label = TranslateCap("black") },
+ { index = 1, label = TranslateCap("graphite") },
+ { index = 2, label = TranslateCap("black_metallic") },
+ { index = 3, label = TranslateCap("caststeel") },
+ { index = 11, label = TranslateCap("black_anth") },
+ { index = 12, label = TranslateCap("matteblack") },
+ { index = 15, label = TranslateCap("darknight") },
+ { index = 16, label = TranslateCap("deepblack") },
+ { index = 21, label = TranslateCap("oil") },
+ { index = 147, label = TranslateCap("carbon") },
}
- elseif color == 'white' then
+ elseif color == "white" then
colors = {
- { index = 106, label = TranslateCap('vanilla') },
- { index = 107, label = TranslateCap('creme') },
- { index = 111, label = TranslateCap('white') },
- { index = 112, label = TranslateCap('polarwhite') },
- { index = 113, label = TranslateCap('beige') },
- { index = 121, label = TranslateCap('mattewhite') },
- { index = 122, label = TranslateCap('snow') },
- { index = 131, label = TranslateCap('cotton') },
- { index = 132, label = TranslateCap('alabaster') },
- { index = 134, label = TranslateCap('purewhite') }
+ { index = 106, label = TranslateCap("vanilla") },
+ { index = 107, label = TranslateCap("creme") },
+ { index = 111, label = TranslateCap("white") },
+ { index = 112, label = TranslateCap("polarwhite") },
+ { index = 113, label = TranslateCap("beige") },
+ { index = 121, label = TranslateCap("mattewhite") },
+ { index = 122, label = TranslateCap("snow") },
+ { index = 131, label = TranslateCap("cotton") },
+ { index = 132, label = TranslateCap("alabaster") },
+ { index = 134, label = TranslateCap("purewhite") },
}
- elseif color == 'grey' then
+ elseif color == "grey" then
colors = {
- { index = 4, label = TranslateCap('silver') },
- { index = 5, label = TranslateCap('metallicgrey') },
- { index = 6, label = TranslateCap('laminatedsteel') },
- { index = 7, label = TranslateCap('darkgray') },
- { index = 8, label = TranslateCap('rockygray') },
- { index = 9, label = TranslateCap('graynight') },
- { index = 10, label = TranslateCap('aluminum') },
- { index = 13, label = TranslateCap('graymat') },
- { index = 14, label = TranslateCap('lightgrey') },
- { index = 17, label = TranslateCap('asphaltgray') },
- { index = 18, label = TranslateCap('grayconcrete') },
- { index = 19, label = TranslateCap('darksilver') },
- { index = 20, label = TranslateCap('magnesite') },
- { index = 22, label = TranslateCap('nickel') },
- { index = 23, label = TranslateCap('zinc') },
- { index = 24, label = TranslateCap('dolomite') },
- { index = 25, label = TranslateCap('bluesilver') },
- { index = 26, label = TranslateCap('titanium') },
- { index = 66, label = TranslateCap('steelblue') },
- { index = 93, label = TranslateCap('champagne') },
- { index = 144, label = TranslateCap('grayhunter') },
- { index = 156, label = TranslateCap('grey') }
+ { index = 4, label = TranslateCap("silver") },
+ { index = 5, label = TranslateCap("metallicgrey") },
+ { index = 6, label = TranslateCap("laminatedsteel") },
+ { index = 7, label = TranslateCap("darkgray") },
+ { index = 8, label = TranslateCap("rockygray") },
+ { index = 9, label = TranslateCap("graynight") },
+ { index = 10, label = TranslateCap("aluminum") },
+ { index = 13, label = TranslateCap("graymat") },
+ { index = 14, label = TranslateCap("lightgrey") },
+ { index = 17, label = TranslateCap("asphaltgray") },
+ { index = 18, label = TranslateCap("grayconcrete") },
+ { index = 19, label = TranslateCap("darksilver") },
+ { index = 20, label = TranslateCap("magnesite") },
+ { index = 22, label = TranslateCap("nickel") },
+ { index = 23, label = TranslateCap("zinc") },
+ { index = 24, label = TranslateCap("dolomite") },
+ { index = 25, label = TranslateCap("bluesilver") },
+ { index = 26, label = TranslateCap("titanium") },
+ { index = 66, label = TranslateCap("steelblue") },
+ { index = 93, label = TranslateCap("champagne") },
+ { index = 144, label = TranslateCap("grayhunter") },
+ { index = 156, label = TranslateCap("grey") },
}
- elseif color == 'red' then
+ elseif color == "red" then
colors = {
- { index = 27, label = TranslateCap('red') },
- { index = 28, label = TranslateCap('torino_red') },
- { index = 29, label = TranslateCap('poppy') },
- { index = 30, label = TranslateCap('copper_red') },
- { index = 31, label = TranslateCap('cardinal') },
- { index = 32, label = TranslateCap('brick') },
- { index = 33, label = TranslateCap('garnet') },
- { index = 34, label = TranslateCap('cabernet') },
- { index = 35, label = TranslateCap('candy') },
- { index = 39, label = TranslateCap('matte_red') },
- { index = 40, label = TranslateCap('dark_red') },
- { index = 43, label = TranslateCap('red_pulp') },
- { index = 44, label = TranslateCap('bril_red') },
- { index = 46, label = TranslateCap('pale_red') },
- { index = 143, label = TranslateCap('wine_red') },
- { index = 150, label = TranslateCap('volcano') }
+ { index = 27, label = TranslateCap("red") },
+ { index = 28, label = TranslateCap("torino_red") },
+ { index = 29, label = TranslateCap("poppy") },
+ { index = 30, label = TranslateCap("copper_red") },
+ { index = 31, label = TranslateCap("cardinal") },
+ { index = 32, label = TranslateCap("brick") },
+ { index = 33, label = TranslateCap("garnet") },
+ { index = 34, label = TranslateCap("cabernet") },
+ { index = 35, label = TranslateCap("candy") },
+ { index = 39, label = TranslateCap("matte_red") },
+ { index = 40, label = TranslateCap("dark_red") },
+ { index = 43, label = TranslateCap("red_pulp") },
+ { index = 44, label = TranslateCap("bril_red") },
+ { index = 46, label = TranslateCap("pale_red") },
+ { index = 143, label = TranslateCap("wine_red") },
+ { index = 150, label = TranslateCap("volcano") },
}
- elseif color == 'pink' then
+ elseif color == "pink" then
colors = {
- { index = 135, label = TranslateCap('electricpink') },
- { index = 136, label = TranslateCap('salmon') },
- { index = 137, label = TranslateCap('sugarplum') }
+ { index = 135, label = TranslateCap("electricpink") },
+ { index = 136, label = TranslateCap("salmon") },
+ { index = 137, label = TranslateCap("sugarplum") },
}
- elseif color == 'blue' then
+ elseif color == "blue" then
colors = {
- { index = 54, label = TranslateCap('topaz') },
- { index = 60, label = TranslateCap('light_blue') },
- { index = 61, label = TranslateCap('galaxy_blue') },
- { index = 62, label = TranslateCap('dark_blue') },
- { index = 63, label = TranslateCap('azure') },
- { index = 64, label = TranslateCap('navy_blue') },
- { index = 65, label = TranslateCap('lapis') },
- { index = 67, label = TranslateCap('blue_diamond') },
- { index = 68, label = TranslateCap('surfer') },
- { index = 69, label = TranslateCap('pastel_blue') },
- { index = 70, label = TranslateCap('celeste_blue') },
- { index = 73, label = TranslateCap('rally_blue') },
- { index = 74, label = TranslateCap('blue_paradise') },
- { index = 75, label = TranslateCap('blue_night') },
- { index = 77, label = TranslateCap('cyan_blue') },
- { index = 78, label = TranslateCap('cobalt') },
- { index = 79, label = TranslateCap('electric_blue') },
- { index = 80, label = TranslateCap('horizon_blue') },
- { index = 82, label = TranslateCap('metallic_blue') },
- { index = 83, label = TranslateCap('aquamarine') },
- { index = 84, label = TranslateCap('blue_agathe') },
- { index = 85, label = TranslateCap('zirconium') },
- { index = 86, label = TranslateCap('spinel') },
- { index = 87, label = TranslateCap('tourmaline') },
- { index = 127, label = TranslateCap('paradise') },
- { index = 140, label = TranslateCap('bubble_gum') },
- { index = 141, label = TranslateCap('midnight_blue') },
- { index = 146, label = TranslateCap('forbidden_blue') },
- { index = 157, label = TranslateCap('glacier_blue') }
+ { index = 54, label = TranslateCap("topaz") },
+ { index = 60, label = TranslateCap("light_blue") },
+ { index = 61, label = TranslateCap("galaxy_blue") },
+ { index = 62, label = TranslateCap("dark_blue") },
+ { index = 63, label = TranslateCap("azure") },
+ { index = 64, label = TranslateCap("navy_blue") },
+ { index = 65, label = TranslateCap("lapis") },
+ { index = 67, label = TranslateCap("blue_diamond") },
+ { index = 68, label = TranslateCap("surfer") },
+ { index = 69, label = TranslateCap("pastel_blue") },
+ { index = 70, label = TranslateCap("celeste_blue") },
+ { index = 73, label = TranslateCap("rally_blue") },
+ { index = 74, label = TranslateCap("blue_paradise") },
+ { index = 75, label = TranslateCap("blue_night") },
+ { index = 77, label = TranslateCap("cyan_blue") },
+ { index = 78, label = TranslateCap("cobalt") },
+ { index = 79, label = TranslateCap("electric_blue") },
+ { index = 80, label = TranslateCap("horizon_blue") },
+ { index = 82, label = TranslateCap("metallic_blue") },
+ { index = 83, label = TranslateCap("aquamarine") },
+ { index = 84, label = TranslateCap("blue_agathe") },
+ { index = 85, label = TranslateCap("zirconium") },
+ { index = 86, label = TranslateCap("spinel") },
+ { index = 87, label = TranslateCap("tourmaline") },
+ { index = 127, label = TranslateCap("paradise") },
+ { index = 140, label = TranslateCap("bubble_gum") },
+ { index = 141, label = TranslateCap("midnight_blue") },
+ { index = 146, label = TranslateCap("forbidden_blue") },
+ { index = 157, label = TranslateCap("glacier_blue") },
}
- elseif color == 'yellow' then
+ elseif color == "yellow" then
colors = {
- { index = 42, label = TranslateCap('yellow') },
- { index = 88, label = TranslateCap('wheat') },
- { index = 89, label = TranslateCap('raceyellow') },
- { index = 91, label = TranslateCap('paleyellow') },
- { index = 126, label = TranslateCap('lightyellow') }
+ { index = 42, label = TranslateCap("yellow") },
+ { index = 88, label = TranslateCap("wheat") },
+ { index = 89, label = TranslateCap("raceyellow") },
+ { index = 91, label = TranslateCap("paleyellow") },
+ { index = 126, label = TranslateCap("lightyellow") },
}
- elseif color == 'green' then
+ elseif color == "green" then
colors = {
- { index = 49, label = TranslateCap('met_dark_green') },
- { index = 50, label = TranslateCap('rally_green') },
- { index = 51, label = TranslateCap('pine_green') },
- { index = 52, label = TranslateCap('olive_green') },
- { index = 53, label = TranslateCap('light_green') },
- { index = 55, label = TranslateCap('lime_green') },
- { index = 56, label = TranslateCap('forest_green') },
- { index = 57, label = TranslateCap('lawn_green') },
- { index = 58, label = TranslateCap('imperial_green') },
- { index = 59, label = TranslateCap('green_bottle') },
- { index = 92, label = TranslateCap('citrus_green') },
- { index = 125, label = TranslateCap('green_anis') },
- { index = 128, label = TranslateCap('khaki') },
- { index = 133, label = TranslateCap('army_green') },
- { index = 151, label = TranslateCap('dark_green') },
- { index = 152, label = TranslateCap('hunter_green') },
- { index = 155, label = TranslateCap('matte_foilage_green') }
+ { index = 49, label = TranslateCap("met_dark_green") },
+ { index = 50, label = TranslateCap("rally_green") },
+ { index = 51, label = TranslateCap("pine_green") },
+ { index = 52, label = TranslateCap("olive_green") },
+ { index = 53, label = TranslateCap("light_green") },
+ { index = 55, label = TranslateCap("lime_green") },
+ { index = 56, label = TranslateCap("forest_green") },
+ { index = 57, label = TranslateCap("lawn_green") },
+ { index = 58, label = TranslateCap("imperial_green") },
+ { index = 59, label = TranslateCap("green_bottle") },
+ { index = 92, label = TranslateCap("citrus_green") },
+ { index = 125, label = TranslateCap("green_anis") },
+ { index = 128, label = TranslateCap("khaki") },
+ { index = 133, label = TranslateCap("army_green") },
+ { index = 151, label = TranslateCap("dark_green") },
+ { index = 152, label = TranslateCap("hunter_green") },
+ { index = 155, label = TranslateCap("matte_foilage_green") },
}
- elseif color == 'orange' then
+ elseif color == "orange" then
colors = {
- { index = 36, label = TranslateCap('tangerine') },
- { index = 38, label = TranslateCap('orange') },
- { index = 41, label = TranslateCap('matteorange') },
- { index = 123, label = TranslateCap('lightorange') },
- { index = 124, label = TranslateCap('peach') },
- { index = 130, label = TranslateCap('pumpkin') },
- { index = 138, label = TranslateCap('orangelambo') }
+ { index = 36, label = TranslateCap("tangerine") },
+ { index = 38, label = TranslateCap("orange") },
+ { index = 41, label = TranslateCap("matteorange") },
+ { index = 123, label = TranslateCap("lightorange") },
+ { index = 124, label = TranslateCap("peach") },
+ { index = 130, label = TranslateCap("pumpkin") },
+ { index = 138, label = TranslateCap("orangelambo") },
}
- elseif color == 'brown' then
+ elseif color == "brown" then
colors = {
- { index = 45, label = TranslateCap('copper') },
- { index = 47, label = TranslateCap('lightbrown') },
- { index = 48, label = TranslateCap('darkbrown') },
- { index = 90, label = TranslateCap('bronze') },
- { index = 94, label = TranslateCap('brownmetallic') },
- { index = 95, label = TranslateCap('expresso') },
- { index = 96, label = TranslateCap('chocolate') },
- { index = 97, label = TranslateCap('terracotta') },
- { index = 98, label = TranslateCap('marble') },
- { index = 99, label = TranslateCap('sand') },
- { index = 100, label = TranslateCap('sepia') },
- { index = 101, label = TranslateCap('bison') },
- { index = 102, label = TranslateCap('palm') },
- { index = 103, label = TranslateCap('caramel') },
- { index = 104, label = TranslateCap('rust') },
- { index = 105, label = TranslateCap('chestnut') },
- { index = 108, label = TranslateCap('brown') },
- { index = 109, label = TranslateCap('hazelnut') },
- { index = 110, label = TranslateCap('shell') },
- { index = 114, label = TranslateCap('mahogany') },
- { index = 115, label = TranslateCap('cauldron') },
- { index = 116, label = TranslateCap('blond') },
- { index = 129, label = TranslateCap('gravel') },
- { index = 153, label = TranslateCap('darkearth') },
- { index = 154, label = TranslateCap('desert') }
+ { index = 45, label = TranslateCap("copper") },
+ { index = 47, label = TranslateCap("lightbrown") },
+ { index = 48, label = TranslateCap("darkbrown") },
+ { index = 90, label = TranslateCap("bronze") },
+ { index = 94, label = TranslateCap("brownmetallic") },
+ { index = 95, label = TranslateCap("expresso") },
+ { index = 96, label = TranslateCap("chocolate") },
+ { index = 97, label = TranslateCap("terracotta") },
+ { index = 98, label = TranslateCap("marble") },
+ { index = 99, label = TranslateCap("sand") },
+ { index = 100, label = TranslateCap("sepia") },
+ { index = 101, label = TranslateCap("bison") },
+ { index = 102, label = TranslateCap("palm") },
+ { index = 103, label = TranslateCap("caramel") },
+ { index = 104, label = TranslateCap("rust") },
+ { index = 105, label = TranslateCap("chestnut") },
+ { index = 108, label = TranslateCap("brown") },
+ { index = 109, label = TranslateCap("hazelnut") },
+ { index = 110, label = TranslateCap("shell") },
+ { index = 114, label = TranslateCap("mahogany") },
+ { index = 115, label = TranslateCap("cauldron") },
+ { index = 116, label = TranslateCap("blond") },
+ { index = 129, label = TranslateCap("gravel") },
+ { index = 153, label = TranslateCap("darkearth") },
+ { index = 154, label = TranslateCap("desert") },
}
- elseif color == 'purple' then
+ elseif color == "purple" then
colors = {
- { index = 71, label = TranslateCap('indigo') },
- { index = 72, label = TranslateCap('deeppurple') },
- { index = 76, label = TranslateCap('darkviolet') },
- { index = 81, label = TranslateCap('amethyst') },
- { index = 142, label = TranslateCap('mysticalviolet') },
- { index = 145, label = TranslateCap('purplemetallic') },
- { index = 148, label = TranslateCap('matteviolet') },
- { index = 149, label = TranslateCap('mattedeeppurple') }
+ { index = 71, label = TranslateCap("indigo") },
+ { index = 72, label = TranslateCap("deeppurple") },
+ { index = 76, label = TranslateCap("darkviolet") },
+ { index = 81, label = TranslateCap("amethyst") },
+ { index = 142, label = TranslateCap("mysticalviolet") },
+ { index = 145, label = TranslateCap("purplemetallic") },
+ { index = 148, label = TranslateCap("matteviolet") },
+ { index = 149, label = TranslateCap("mattedeeppurple") },
}
- elseif color == 'chrome' then
+ elseif color == "chrome" then
colors = {
- { index = 117, label = TranslateCap('brushedchrome') },
- { index = 118, label = TranslateCap('blackchrome') },
- { index = 119, label = TranslateCap('brushedaluminum') },
- { index = 120, label = TranslateCap('chrome') }
+ { index = 117, label = TranslateCap("brushedchrome") },
+ { index = 118, label = TranslateCap("blackchrome") },
+ { index = 119, label = TranslateCap("brushedaluminum") },
+ { index = 120, label = TranslateCap("chrome") },
}
- elseif color == 'gold' then
+ elseif color == "gold" then
colors = {
- { index = 37, label = TranslateCap('gold') },
- { index = 158, label = TranslateCap('puregold') },
- { index = 159, label = TranslateCap('brushedgold') },
- { index = 160, label = TranslateCap('lightgold') }
+ { index = 37, label = TranslateCap("gold") },
+ { index = 158, label = TranslateCap("puregold") },
+ { index = 159, label = TranslateCap("brushedgold") },
+ { index = 160, label = TranslateCap("lightgold") },
}
end
return colors
end
function GetWindowName(index)
- if (index == 1) then
+ if index == 1 then
return "Pure Black"
- elseif (index == 2) then
+ elseif index == 2 then
return "Darksmoke"
- elseif (index == 3) then
+ elseif index == 3 then
return "Lightsmoke"
- elseif (index == 4) then
+ elseif index == 4 then
return "Limo"
- elseif (index == 5) then
+ elseif index == 5 then
return "Green"
else
return "Unknown"
@@ -253,109 +252,109 @@ function GetWindowName(index)
end
function GetHornName(index)
- if (index == 0) then
+ if index == 0 then
return "Truck Horn"
- elseif (index == 1) then
+ elseif index == 1 then
return "Cop Horn"
- elseif (index == 2) then
+ elseif index == 2 then
return "Clown Horn"
- elseif (index == 3) then
+ elseif index == 3 then
return "Musical Horn 1"
- elseif (index == 4) then
+ elseif index == 4 then
return "Musical Horn 2"
- elseif (index == 5) then
+ elseif index == 5 then
return "Musical Horn 3"
- elseif (index == 6) then
+ elseif index == 6 then
return "Musical Horn 4"
- elseif (index == 7) then
+ elseif index == 7 then
return "Musical Horn 5"
- elseif (index == 8) then
+ elseif index == 8 then
return "Sad Trombone"
- elseif (index == 9) then
+ elseif index == 9 then
return "Classical Horn 1"
- elseif (index == 10) then
+ elseif index == 10 then
return "Classical Horn 2"
- elseif (index == 11) then
+ elseif index == 11 then
return "Classical Horn 3"
- elseif (index == 12) then
+ elseif index == 12 then
return "Classical Horn 4"
- elseif (index == 13) then
+ elseif index == 13 then
return "Classical Horn 5"
- elseif (index == 14) then
+ elseif index == 14 then
return "Classical Horn 6"
- elseif (index == 15) then
+ elseif index == 15 then
return "Classical Horn 7"
- elseif (index == 16) then
+ elseif index == 16 then
return "Scale - Do"
- elseif (index == 17) then
+ elseif index == 17 then
return "Scale - Re"
- elseif (index == 18) then
+ elseif index == 18 then
return "Scale - Mi"
- elseif (index == 19) then
+ elseif index == 19 then
return "Scale - Fa"
- elseif (index == 20) then
+ elseif index == 20 then
return "Scale - Sol"
- elseif (index == 21) then
+ elseif index == 21 then
return "Scale - La"
- elseif (index == 22) then
+ elseif index == 22 then
return "Scale - Ti"
- elseif (index == 23) then
+ elseif index == 23 then
return "Scale - Do"
- elseif (index == 24) then
+ elseif index == 24 then
return "Jazz Horn 1"
- elseif (index == 25) then
+ elseif index == 25 then
return "Jazz Horn 2"
- elseif (index == 26) then
+ elseif index == 26 then
return "Jazz Horn 3"
- elseif (index == 27) then
+ elseif index == 27 then
return "Jazz Horn Loop"
- elseif (index == 28) then
+ elseif index == 28 then
return "Star Spangled Banner 1"
- elseif (index == 29) then
+ elseif index == 29 then
return "Star Spangled Banner 2"
- elseif (index == 30) then
+ elseif index == 30 then
return "Star Spangled Banner 3"
- elseif (index == 31) then
+ elseif index == 31 then
return "Star Spangled Banner 4"
- elseif (index == 32) then
+ elseif index == 32 then
return "Classical Horn 8 Loop"
- elseif (index == 33) then
+ elseif index == 33 then
return "Classical Horn 9 Loop"
- elseif (index == 34) then
+ elseif index == 34 then
return "Classical Horn 10 Loop"
- elseif (index == 35) then
+ elseif index == 35 then
return "Classical Horn 8"
- elseif (index == 36) then
+ elseif index == 36 then
return "Classical Horn 9"
- elseif (index == 37) then
+ elseif index == 37 then
return "Classical Horn 10"
- elseif (index == 38) then
+ elseif index == 38 then
return "Funeral Loop"
- elseif (index == 39) then
+ elseif index == 39 then
return "Funeral"
- elseif (index == 40) then
+ elseif index == 40 then
return "Spooky Loop"
- elseif (index == 41) then
+ elseif index == 41 then
return "Spooky"
- elseif (index == 42) then
+ elseif index == 42 then
return "San Andreas Loop"
- elseif (index == 43) then
+ elseif index == 43 then
return "San Andreas"
- elseif (index == 44) then
+ elseif index == 44 then
return "Liberty City Loop"
- elseif (index == 45) then
+ elseif index == 45 then
return "Liberty City"
- elseif (index == 46) then
+ elseif index == 46 then
return "Festive 1 Loop"
- elseif (index == 47) then
+ elseif index == 47 then
return "Festive 1"
- elseif (index == 48) then
+ elseif index == 48 then
return "Festive 2 Loop"
- elseif (index == 49) then
+ elseif index == 49 then
return "Festive 2"
- elseif (index == 50) then
+ elseif index == 50 then
return "Festive 3 Loop"
- elseif (index == 51) then
+ elseif index == 51 then
return "Festive 3"
else
return "Unknown Horn"
@@ -364,25 +363,25 @@ end
function GetNeons()
local neons = {
- { label = TranslateCap('white'), r = 255, g = 255, b = 255 },
- { label = "Slate Gray", r = 112, g = 128, b = 144 },
- { label = "Blue", r = 0, g = 0, b = 255 },
- { label = "Light Blue", r = 0, g = 150, b = 255 },
- { label = "Navy Blue", r = 0, g = 0, b = 128 },
- { label = "Sky Blue", r = 135, g = 206, b = 235 },
- { label = "Turquoise", r = 0, g = 245, b = 255 },
- { label = "Mint Green", r = 50, g = 255, b = 155 },
- { label = "Lime Green", r = 0, g = 255, b = 0 },
- { label = "Olive", r = 128, g = 128, b = 0 },
- { label = TranslateCap('yellow'), r = 255, g = 255, b = 0 },
- { label = TranslateCap('gold'), r = 255, g = 215, b = 0 },
- { label = TranslateCap('orange'), r = 255, g = 165, b = 0 },
- { label = TranslateCap('wheat'), r = 245, g = 222, b = 179 },
- { label = TranslateCap('red'), r = 255, g = 0, b = 0 },
- { label = TranslateCap('pink'), r = 255, g = 161, b = 211 },
- { label = TranslateCap('brightpink'), r = 255, g = 0, b = 255 },
- { label = TranslateCap('purple'), r = 153, g = 0, b = 153 },
- { label = "Ivory", r = 41, g = 36, b = 33 }
+ { label = TranslateCap("white"), r = 255, g = 255, b = 255 },
+ { label = "Slate Gray", r = 112, g = 128, b = 144 },
+ { label = "Blue", r = 0, g = 0, b = 255 },
+ { label = "Light Blue", r = 0, g = 150, b = 255 },
+ { label = "Navy Blue", r = 0, g = 0, b = 128 },
+ { label = "Sky Blue", r = 135, g = 206, b = 235 },
+ { label = "Turquoise", r = 0, g = 245, b = 255 },
+ { label = "Mint Green", r = 50, g = 255, b = 155 },
+ { label = "Lime Green", r = 0, g = 255, b = 0 },
+ { label = "Olive", r = 128, g = 128, b = 0 },
+ { label = TranslateCap("yellow"), r = 255, g = 255, b = 0 },
+ { label = TranslateCap("gold"), r = 255, g = 215, b = 0 },
+ { label = TranslateCap("orange"), r = 255, g = 165, b = 0 },
+ { label = TranslateCap("wheat"), r = 245, g = 222, b = 179 },
+ { label = TranslateCap("red"), r = 255, g = 0, b = 0 },
+ { label = TranslateCap("pink"), r = 255, g = 161, b = 211 },
+ { label = TranslateCap("brightpink"), r = 255, g = 0, b = 255 },
+ { label = TranslateCap("purple"), r = 153, g = 0, b = 153 },
+ { label = "Ivory", r = 41, g = 36, b = 33 },
}
return neons
@@ -390,576 +389,575 @@ end
function GetXenonColors()
local xenonColors = {
- { label = TranslateCap('neon'), index = -1 },
- { label = TranslateCap('white'), index = 0 },
- { label = TranslateCap('blue'), index = 1 },
- { label = TranslateCap('electric_blue'), index = 2 },
- { label = TranslateCap('mintgreen'), index = 3 },
- { label = TranslateCap('lime_green'), index = 4 },
- { label = TranslateCap('yellow'), index = 5 },
- { label = TranslateCap('goldenshower'), index = 6 },
- { label = TranslateCap('orange'), index = 7 },
- { label = TranslateCap('red'), index = 8 },
- { label = TranslateCap('ponypink'), index = 9 },
- { label = TranslateCap('hotpink'), index = 10 },
- { label = TranslateCap('purple'), index = 11 },
- { label = TranslateCap('blacklight'), index = 11 },
+ { label = TranslateCap("neon"), index = -1 },
+ { label = TranslateCap("white"), index = 0 },
+ { label = TranslateCap("blue"), index = 1 },
+ { label = TranslateCap("electric_blue"), index = 2 },
+ { label = TranslateCap("mintgreen"), index = 3 },
+ { label = TranslateCap("lime_green"), index = 4 },
+ { label = TranslateCap("yellow"), index = 5 },
+ { label = TranslateCap("goldenshower"), index = 6 },
+ { label = TranslateCap("orange"), index = 7 },
+ { label = TranslateCap("red"), index = 8 },
+ { label = TranslateCap("ponypink"), index = 9 },
+ { label = TranslateCap("hotpink"), index = 10 },
+ { label = TranslateCap("purple"), index = 11 },
+ { label = TranslateCap("blacklight"), index = 11 },
}
return xenonColors
end
function GetPlatesName(index)
- if (index == 0) then
- return TranslateCap('blue_on_white_1')
- elseif (index == 1) then
- return TranslateCap('yellow_on_black')
- elseif (index == 2) then
- return TranslateCap('yellow_blue')
- elseif (index == 3) then
- return TranslateCap('blue_on_white_2')
- elseif (index == 4) then
- return TranslateCap('blue_on_white_3')
- elseif (index == 5) then
+ if index == 0 then
+ return TranslateCap("blue_on_white_1")
+ elseif index == 1 then
+ return TranslateCap("yellow_on_black")
+ elseif index == 2 then
+ return TranslateCap("yellow_blue")
+ elseif index == 3 then
+ return TranslateCap("blue_on_white_2")
+ elseif index == 4 then
+ return TranslateCap("blue_on_white_3")
+ elseif index == 5 then
return "North Yankton"
- elseif (index == 6) then
+ elseif index == 6 then
return "Ecola"
- elseif (index == 7) then
+ elseif index == 7 then
return "Las Venturas"
- elseif (index == 8) then
+ elseif index == 8 then
return "Liberty City"
- elseif (index == 9) then
+ elseif index == 9 then
return "Car Meet"
- elseif (index == 10) then
+ elseif index == 10 then
return "Panic"
- elseif (index == 11) then
+ elseif index == 11 then
return "Pounders"
- elseif (index == 12) then
+ elseif index == 12 then
return "Sprunk"
end
end
Config.Menus = {
main = {
- label = 'LS CUSTOMS',
- parent = nil,
- upgrades = TranslateCap('upgrades'),
- cosmetics = TranslateCap('cosmetics')
+ label = "LS CUSTOMS",
+ parent = nil,
+ upgrades = TranslateCap("upgrades"),
+ cosmetics = TranslateCap("cosmetics"),
},
upgrades = {
- label = TranslateCap('upgrades'),
- parent = 'main',
- modEngine = TranslateCap('engine'),
- modBrakes = TranslateCap('brakes'),
- modTransmission = TranslateCap('transmission'),
- modSuspension = TranslateCap('suspension'),
- modArmor = TranslateCap('armor'),
- modTurbo = TranslateCap('turbo')
+ label = TranslateCap("upgrades"),
+ parent = "main",
+ modEngine = TranslateCap("engine"),
+ modBrakes = TranslateCap("brakes"),
+ modTransmission = TranslateCap("transmission"),
+ modSuspension = TranslateCap("suspension"),
+ modArmor = TranslateCap("armor"),
+ modTurbo = TranslateCap("turbo"),
},
modEngine = {
- label = TranslateCap('engine'),
- parent = 'upgrades',
+ label = TranslateCap("engine"),
+ parent = "upgrades",
modType = 11,
- price = { 13.95, 32.56, 65.12, 139.53 }
+ price = { 13.95, 32.56, 65.12, 139.53 },
},
modBrakes = {
- label = TranslateCap('brakes'),
- parent = 'upgrades',
+ label = TranslateCap("brakes"),
+ parent = "upgrades",
modType = 12,
- price = { 4.65, 9.3, 13.95, 18.6 }
+ price = { 4.65, 9.3, 13.95, 18.6 },
},
modTransmission = {
- label = TranslateCap('transmission'),
- parent = 'upgrades',
+ label = TranslateCap("transmission"),
+ parent = "upgrades",
modType = 13,
- price = { 13.95, 20.93, 46.51, 63.55 }
+ price = { 13.95, 20.93, 46.51, 63.55 },
},
modSuspension = {
- label = TranslateCap('suspension'),
- parent = 'upgrades',
+ label = TranslateCap("suspension"),
+ parent = "upgrades",
modType = 15,
- price = { 3.72, 7.44, 14.88, 29.77, 40.2 }
+ price = { 3.72, 7.44, 14.88, 29.77, 40.2 },
},
modArmor = {
- label = TranslateCap('armor'),
- parent = 'upgrades',
+ label = TranslateCap("armor"),
+ parent = "upgrades",
modType = 16,
- price = { 69.77, 116.28, 130.00, 150.00, 180.00, 190.00 }
+ price = { 69.77, 116.28, 130.00, 150.00, 180.00, 190.00 },
},
modTurbo = {
- label = TranslateCap('turbo'),
- parent = 'upgrades',
+ label = TranslateCap("turbo"),
+ parent = "upgrades",
modType = 17,
- price = { 55.81 }
+ price = { 55.81 },
},
cosmetics = {
- label = TranslateCap('cosmetics'),
- parent = 'main',
- bodyparts = TranslateCap('bodyparts'),
- windowTint = TranslateCap('windowtint'),
- modHorns = TranslateCap('horns'),
- neonColor = TranslateCap('neons'),
- resprays = TranslateCap('respray'),
+ label = TranslateCap("cosmetics"),
+ parent = "main",
+ bodyparts = TranslateCap("bodyparts"),
+ windowTint = TranslateCap("windowtint"),
+ modHorns = TranslateCap("horns"),
+ neonColor = TranslateCap("neons"),
+ resprays = TranslateCap("respray"),
-- modXenon = TranslateCap('headlights'),
- xenonColor = TranslateCap('headlights'),
- plateIndex = TranslateCap('licenseplates'),
- wheels = TranslateCap('wheels'),
- modPlateHolder = TranslateCap('modplateholder'),
- modVanityPlate = TranslateCap('modvanityplate'),
- modTrimA = TranslateCap('interior'),
- modOrnaments = TranslateCap('trim'),
- modDashboard = TranslateCap('dashboard'),
- modDial = TranslateCap('speedometer'),
- modDoorSpeaker = TranslateCap('door_speakers'),
- modSeats = TranslateCap('seats'),
- modSteeringWheel = TranslateCap('steering_wheel'),
- modShifterLeavers = TranslateCap('gear_lever'),
- modAPlate = TranslateCap('quarter_deck'),
- modSpeakers = TranslateCap('speakers'),
- modTrunk = TranslateCap('trunk'),
- modHydrolic = TranslateCap('hydraulic'),
- modEngineBlock = TranslateCap('engine_block'),
- modAirFilter = TranslateCap('air_filter'),
- modStruts = TranslateCap('struts'),
- modArchCover = TranslateCap('arch_cover'),
- modAerials = TranslateCap('aerials'),
- modTrimB = TranslateCap('wings'),
- modTank = TranslateCap('fuel_tank'),
- modWindows = TranslateCap('windows'),
- modLivery = TranslateCap('stickers')
+ xenonColor = TranslateCap("headlights"),
+ plateIndex = TranslateCap("licenseplates"),
+ wheels = TranslateCap("wheels"),
+ modPlateHolder = TranslateCap("modplateholder"),
+ modVanityPlate = TranslateCap("modvanityplate"),
+ modTrimA = TranslateCap("interior"),
+ modOrnaments = TranslateCap("trim"),
+ modDashboard = TranslateCap("dashboard"),
+ modDial = TranslateCap("speedometer"),
+ modDoorSpeaker = TranslateCap("door_speakers"),
+ modSeats = TranslateCap("seats"),
+ modSteeringWheel = TranslateCap("steering_wheel"),
+ modShifterLeavers = TranslateCap("gear_lever"),
+ modAPlate = TranslateCap("quarter_deck"),
+ modSpeakers = TranslateCap("speakers"),
+ modTrunk = TranslateCap("trunk"),
+ modHydrolic = TranslateCap("hydraulic"),
+ modEngineBlock = TranslateCap("engine_block"),
+ modAirFilter = TranslateCap("air_filter"),
+ modStruts = TranslateCap("struts"),
+ modArchCover = TranslateCap("arch_cover"),
+ modAerials = TranslateCap("aerials"),
+ modTrimB = TranslateCap("wings"),
+ modTank = TranslateCap("fuel_tank"),
+ modWindows = TranslateCap("windows"),
+ modLivery = TranslateCap("stickers"),
},
modPlateHolder = {
- label = TranslateCap('modplateholder'),
- parent = 'cosmetics',
+ label = TranslateCap("modplateholder"),
+ parent = "cosmetics",
modType = 25,
- price = 3.49
+ price = 3.49,
},
modVanityPlate = {
- label = TranslateCap('modvanityplate'),
- parent = 'cosmetics',
+ label = TranslateCap("modvanityplate"),
+ parent = "cosmetics",
modType = 26,
- price = 1.1
+ price = 1.1,
},
modTrimA = {
- label = TranslateCap('interior'),
- parent = 'cosmetics',
+ label = TranslateCap("interior"),
+ parent = "cosmetics",
modType = 27,
- price = 6.98
+ price = 6.98,
},
modOrnaments = {
- label = TranslateCap('trim'),
- parent = 'cosmetics',
+ label = TranslateCap("trim"),
+ parent = "cosmetics",
modType = 28,
- price = 0.9
+ price = 0.9,
},
modDashboard = {
- label = TranslateCap('dashboard'),
- parent = 'cosmetics',
+ label = TranslateCap("dashboard"),
+ parent = "cosmetics",
modType = 29,
- price = 4.65
+ price = 4.65,
},
modDial = {
- label = TranslateCap('speedometer'),
- parent = 'cosmetics',
+ label = TranslateCap("speedometer"),
+ parent = "cosmetics",
modType = 30,
- price = 4.19
+ price = 4.19,
},
modDoorSpeaker = {
- label = TranslateCap('door_speakers'),
- parent = 'cosmetics',
+ label = TranslateCap("door_speakers"),
+ parent = "cosmetics",
modType = 31,
- price = 5.58
+ price = 5.58,
},
modSeats = {
- label = TranslateCap('seats'),
- parent = 'cosmetics',
+ label = TranslateCap("seats"),
+ parent = "cosmetics",
modType = 32,
- price = 4.65
+ price = 4.65,
},
modSteeringWheel = {
- label = TranslateCap('steering_wheel'),
- parent = 'cosmetics',
+ label = TranslateCap("steering_wheel"),
+ parent = "cosmetics",
modType = 33,
- price = 4.19
+ price = 4.19,
},
modShifterLeavers = {
- label = TranslateCap('gear_lever'),
- parent = 'cosmetics',
+ label = TranslateCap("gear_lever"),
+ parent = "cosmetics",
modType = 34,
- price = 3.26
+ price = 3.26,
},
modAPlate = {
- label = TranslateCap('quarter_deck'),
- parent = 'cosmetics',
+ label = TranslateCap("quarter_deck"),
+ parent = "cosmetics",
modType = 35,
- price = 4.19
+ price = 4.19,
},
modSpeakers = {
- label = TranslateCap('speakers'),
- parent = 'cosmetics',
+ label = TranslateCap("speakers"),
+ parent = "cosmetics",
modType = 36,
- price = 6.98
+ price = 6.98,
},
modTrunk = {
- label = TranslateCap('trunk'),
- parent = 'cosmetics',
+ label = TranslateCap("trunk"),
+ parent = "cosmetics",
modType = 37,
- price = 5.58
+ price = 5.58,
},
modHydrolic = {
- label = TranslateCap('hydraulic'),
- parent = 'cosmetics',
+ label = TranslateCap("hydraulic"),
+ parent = "cosmetics",
modType = 38,
- price = 5.12
+ price = 5.12,
},
modEngineBlock = {
- label = TranslateCap('engine_block'),
- parent = 'cosmetics',
+ label = TranslateCap("engine_block"),
+ parent = "cosmetics",
modType = 39,
- price = 5.12
+ price = 5.12,
},
modAirFilter = {
- label = TranslateCap('air_filter'),
- parent = 'cosmetics',
+ label = TranslateCap("air_filter"),
+ parent = "cosmetics",
modType = 40,
- price = 3.72
+ price = 3.72,
},
modStruts = {
- label = TranslateCap('struts'),
- parent = 'cosmetics',
+ label = TranslateCap("struts"),
+ parent = "cosmetics",
modType = 41,
- price = 6.51
+ price = 6.51,
},
modArchCover = {
- label = TranslateCap('arch_cover'),
- parent = 'cosmetics',
+ label = TranslateCap("arch_cover"),
+ parent = "cosmetics",
modType = 42,
- price = 4.19
+ price = 4.19,
},
modAerials = {
- label = TranslateCap('aerials'),
- parent = 'cosmetics',
+ label = TranslateCap("aerials"),
+ parent = "cosmetics",
modType = 43,
- price = 1.12
+ price = 1.12,
},
modTrimB = {
- label = TranslateCap('wings'),
- parent = 'cosmetics',
+ label = TranslateCap("wings"),
+ parent = "cosmetics",
modType = 44,
- price = 6.05
+ price = 6.05,
},
modTank = {
- label = TranslateCap('fuel_tank'),
- parent = 'cosmetics',
+ label = TranslateCap("fuel_tank"),
+ parent = "cosmetics",
modType = 45,
- price = 4.19
+ price = 4.19,
},
modWindows = {
- label = TranslateCap('windows'),
- parent = 'cosmetics',
+ label = TranslateCap("windows"),
+ parent = "cosmetics",
modType = 46,
- price = 4.19
+ price = 4.19,
},
modLivery = {
- label = TranslateCap('stickers'),
- parent = 'cosmetics',
+ label = TranslateCap("stickers"),
+ parent = "cosmetics",
modType = 48,
- price = 9.3
+ price = 9.3,
},
wheels = {
- label = TranslateCap('wheels'),
- parent = 'cosmetics',
- modFrontWheelsTypes = TranslateCap('wheel_type'),
- modFrontWheelsColor = TranslateCap('wheel_color'),
- tyreSmokeColor = TranslateCap('tiresmoke')
+ label = TranslateCap("wheels"),
+ parent = "cosmetics",
+ modFrontWheelsTypes = TranslateCap("wheel_type"),
+ modFrontWheelsColor = TranslateCap("wheel_color"),
+ tyreSmokeColor = TranslateCap("tiresmoke"),
},
modFrontWheelsTypes = {
- label = TranslateCap('wheel_type'),
- parent = 'wheels',
- modFrontWheelsType0 = TranslateCap('sport'),
- modFrontWheelsType1 = TranslateCap('muscle'),
- modFrontWheelsType2 = TranslateCap('lowrider'),
- modFrontWheelsType3 = TranslateCap('suv'),
- modFrontWheelsType4 = TranslateCap('allterrain'),
- modFrontWheelsType5 = TranslateCap('tuning'),
- modFrontWheelsType6 = TranslateCap('motorcycle'),
- modBackWheelsType6 = TranslateCap('motorcycle2'),
- modFrontWheelsType7 = TranslateCap('highend'),
- modFrontWheelsType8 = TranslateCap('dragster'),
- modFrontWheelsType9 = TranslateCap('street'),
- modFrontWheelsType10 = TranslateCap('bennys'),
- modFrontWheelsType11 = TranslateCap('bennysv2'),
- modFrontWheelsType12 = TranslateCap('rally'),
+ label = TranslateCap("wheel_type"),
+ parent = "wheels",
+ modFrontWheelsType0 = TranslateCap("sport"),
+ modFrontWheelsType1 = TranslateCap("muscle"),
+ modFrontWheelsType2 = TranslateCap("lowrider"),
+ modFrontWheelsType3 = TranslateCap("suv"),
+ modFrontWheelsType4 = TranslateCap("allterrain"),
+ modFrontWheelsType5 = TranslateCap("tuning"),
+ modFrontWheelsType6 = TranslateCap("motorcycle"),
+ modBackWheelsType6 = TranslateCap("motorcycle2"),
+ modFrontWheelsType7 = TranslateCap("highend"),
+ modFrontWheelsType8 = TranslateCap("dragster"),
+ modFrontWheelsType9 = TranslateCap("street"),
+ modFrontWheelsType10 = TranslateCap("bennys"),
+ modFrontWheelsType11 = TranslateCap("bennysv2"),
+ modFrontWheelsType12 = TranslateCap("rally"),
},
modFrontWheelsType0 = {
- label = TranslateCap('sport'),
- parent = 'modFrontWheelsTypes',
+ label = TranslateCap("sport"),
+ parent = "modFrontWheelsTypes",
modType = 23,
wheelType = 0,
- price = 4.65
+ price = 4.65,
},
modFrontWheelsType1 = {
- label = TranslateCap('muscle'),
- parent = 'modFrontWheelsTypes',
+ label = TranslateCap("muscle"),
+ parent = "modFrontWheelsTypes",
modType = 23,
wheelType = 1,
- price = 4.19
+ price = 4.19,
},
modFrontWheelsType2 = {
- label = TranslateCap('lowrider'),
- parent = 'modFrontWheelsTypes',
+ label = TranslateCap("lowrider"),
+ parent = "modFrontWheelsTypes",
modType = 23,
wheelType = 2,
- price = 4.65
+ price = 4.65,
},
modFrontWheelsType3 = {
- label = TranslateCap('suv'),
- parent = 'modFrontWheelsTypes',
+ label = TranslateCap("suv"),
+ parent = "modFrontWheelsTypes",
modType = 23,
wheelType = 3,
- price = 4.19
+ price = 4.19,
},
modFrontWheelsType4 = {
- label = TranslateCap('allterrain'),
- parent = 'modFrontWheelsTypes',
+ label = TranslateCap("allterrain"),
+ parent = "modFrontWheelsTypes",
modType = 23,
wheelType = 4,
- price = 4.19
+ price = 4.19,
},
modFrontWheelsType5 = {
- label = TranslateCap('tuning'),
- parent = 'modFrontWheelsTypes',
+ label = TranslateCap("tuning"),
+ parent = "modFrontWheelsTypes",
modType = 23,
wheelType = 5,
- price = 5.12
+ price = 5.12,
},
modFrontWheelsType6 = {
- label = TranslateCap('motorcycle'),
- parent = 'modFrontWheelsTypes',
+ label = TranslateCap("motorcycle"),
+ parent = "modFrontWheelsTypes",
modType = 23,
wheelType = 6,
- price = 3.26
+ price = 3.26,
},
modBackWheelsType6 = {
- label = TranslateCap('motorcycle'),
- parent = 'modBackWheelsTypes',
+ label = TranslateCap("motorcycle"),
+ parent = "modBackWheelsTypes",
modType = 24,
wheelType = 6,
- price = 3.26
+ price = 3.26,
},
modFrontWheelsType7 = {
- label = TranslateCap('highend'),
- parent = 'modFrontWheelsTypes',
+ label = TranslateCap("highend"),
+ parent = "modFrontWheelsTypes",
modType = 23,
wheelType = 7,
- price = 5.12
+ price = 5.12,
},
modFrontWheelsType8 = {
- label = TranslateCap('dragster'),
- parent = 'modFrontWheelsTypes',
+ label = TranslateCap("dragster"),
+ parent = "modFrontWheelsTypes",
modType = 23,
wheelType = 10,
- price = 5.12
+ price = 5.12,
},
modFrontWheelsType9 = {
- label = TranslateCap('street'),
- parent = 'modFrontWheelsTypes',
+ label = TranslateCap("street"),
+ parent = "modFrontWheelsTypes",
modType = 23,
wheelType = 11,
- price = 4.19
+ price = 4.19,
},
modFrontWheelsType10 = {
- label = TranslateCap('bennys'),
- parent = 'modFrontWheelsTypes',
+ label = TranslateCap("bennys"),
+ parent = "modFrontWheelsTypes",
modType = 23,
wheelType = 8,
- price = 5.12
+ price = 5.12,
},
modFrontWheelsType11 = {
- label = TranslateCap('bennysv2'),
- parent = 'modFrontWheelsTypes',
+ label = TranslateCap("bennysv2"),
+ parent = "modFrontWheelsTypes",
modType = 23,
wheelType = 9,
- price = 5.12
+ price = 5.12,
},
modFrontWheelsType12 = {
- label = TranslateCap('rally'),
- parent = 'modFrontWheelsTypes',
+ label = TranslateCap("rally"),
+ parent = "modFrontWheelsTypes",
modType = 23,
wheelType = 12,
- price = 4.19
+ price = 4.19,
},
modFrontWheelsColor = {
- label = TranslateCap('wheel_color'),
- parent = 'wheels'
+ label = TranslateCap("wheel_color"),
+ parent = "wheels",
},
wheelColor = {
- label = TranslateCap('wheel_color'),
- parent = 'modFrontWheelsColor',
- modType = 'wheelColor',
- price = 0.66
+ label = TranslateCap("wheel_color"),
+ parent = "modFrontWheelsColor",
+ modType = "wheelColor",
+ price = 0.66,
},
plateIndex = {
- label = TranslateCap('licenseplates'),
- parent = 'cosmetics',
- modType = 'plateIndex',
- price = 1.1
+ label = TranslateCap("licenseplates"),
+ parent = "cosmetics",
+ modType = "plateIndex",
+ price = 1.1,
},
resprays = {
- label = TranslateCap('respray'),
- parent = 'cosmetics',
- primaryRespray = TranslateCap('primary'),
- secondaryRespray = TranslateCap('secondary'),
- pearlescentRespray = TranslateCap('pearlescent'),
+ label = TranslateCap("respray"),
+ parent = "cosmetics",
+ primaryRespray = TranslateCap("primary"),
+ secondaryRespray = TranslateCap("secondary"),
+ pearlescentRespray = TranslateCap("pearlescent"),
},
primaryRespray = {
- label = TranslateCap('primary'),
- parent = 'resprays',
+ label = TranslateCap("primary"),
+ parent = "resprays",
},
secondaryRespray = {
- label = TranslateCap('secondary'),
- parent = 'resprays',
+ label = TranslateCap("secondary"),
+ parent = "resprays",
},
pearlescentRespray = {
- label = TranslateCap('pearlescent'),
- parent = 'resprays',
+ label = TranslateCap("pearlescent"),
+ parent = "resprays",
},
color1 = {
- label = TranslateCap('primary'),
- parent = 'primaryRespray',
- modType = 'color1',
- price = 1.12
+ label = TranslateCap("primary"),
+ parent = "primaryRespray",
+ modType = "color1",
+ price = 1.12,
},
color2 = {
- label = TranslateCap('secondary'),
- parent = 'secondaryRespray',
- modType = 'color2',
- price = 0.66
+ label = TranslateCap("secondary"),
+ parent = "secondaryRespray",
+ modType = "color2",
+ price = 0.66,
},
pearlescentColor = {
- label = TranslateCap('pearlescent'),
- parent = 'pearlescentRespray',
- modType = 'pearlescentColor',
- price = 0.88
+ label = TranslateCap("pearlescent"),
+ parent = "pearlescentRespray",
+ modType = "pearlescentColor",
+ price = 0.88,
},
modXenon = {
- label = TranslateCap('headlights'),
- parent = 'cosmetics',
+ label = TranslateCap("headlights"),
+ parent = "cosmetics",
modType = 22,
- price = 3.72
+ price = 3.72,
},
xenonColor = {
- label = TranslateCap('headlights'),
- parent = 'cosmetics',
- modType = 'xenonColor',
- price = 3.72
+ label = TranslateCap("headlights"),
+ parent = "cosmetics",
+ modType = "xenonColor",
+ price = 3.72,
},
bodyparts = {
- label = TranslateCap('bodyparts'),
- parent = 'cosmetics',
- modFender = TranslateCap('leftfender'),
- modRightFender = TranslateCap('rightfender'),
- modSpoilers = TranslateCap('spoilers'),
- modSideSkirt = TranslateCap('sideskirt'),
- modFrame = TranslateCap('cage'),
- modHood = TranslateCap('hood'),
- modGrille = TranslateCap('grille'),
- modRearBumper = TranslateCap('rearbumper'),
- modFrontBumper = TranslateCap('frontbumper'),
- modExhaust = TranslateCap('exhaust'),
- modRoof = TranslateCap('roof')
+ label = TranslateCap("bodyparts"),
+ parent = "cosmetics",
+ modFender = TranslateCap("leftfender"),
+ modRightFender = TranslateCap("rightfender"),
+ modSpoilers = TranslateCap("spoilers"),
+ modSideSkirt = TranslateCap("sideskirt"),
+ modFrame = TranslateCap("cage"),
+ modHood = TranslateCap("hood"),
+ modGrille = TranslateCap("grille"),
+ modRearBumper = TranslateCap("rearbumper"),
+ modFrontBumper = TranslateCap("frontbumper"),
+ modExhaust = TranslateCap("exhaust"),
+ modRoof = TranslateCap("roof"),
},
modSpoilers = {
- label = TranslateCap('spoilers'),
- parent = 'bodyparts',
+ label = TranslateCap("spoilers"),
+ parent = "bodyparts",
modType = 0,
- price = 4.65
+ price = 4.65,
},
modFrontBumper = {
- label = TranslateCap('frontbumper'),
- parent = 'bodyparts',
+ label = TranslateCap("frontbumper"),
+ parent = "bodyparts",
modType = 1,
- price = 5.12
+ price = 5.12,
},
modRearBumper = {
- label = TranslateCap('rearbumper'),
- parent = 'bodyparts',
+ label = TranslateCap("rearbumper"),
+ parent = "bodyparts",
modType = 2,
- price = 5.12
+ price = 5.12,
},
modSideSkirt = {
- label = TranslateCap('sideskirt'),
- parent = 'bodyparts',
+ label = TranslateCap("sideskirt"),
+ parent = "bodyparts",
modType = 3,
- price = 4.65
+ price = 4.65,
},
modExhaust = {
- label = TranslateCap('exhaust'),
- parent = 'bodyparts',
+ label = TranslateCap("exhaust"),
+ parent = "bodyparts",
modType = 4,
- price = 5.12
+ price = 5.12,
},
modFrame = {
- label = TranslateCap('cage'),
- parent = 'bodyparts',
+ label = TranslateCap("cage"),
+ parent = "bodyparts",
modType = 5,
- price = 5.12
+ price = 5.12,
},
modGrille = {
- label = TranslateCap('grille'),
- parent = 'bodyparts',
+ label = TranslateCap("grille"),
+ parent = "bodyparts",
modType = 6,
- price = 3.72
+ price = 3.72,
},
modHood = {
- label = TranslateCap('hood'),
- parent = 'bodyparts',
+ label = TranslateCap("hood"),
+ parent = "bodyparts",
modType = 7,
- price = 4.88
+ price = 4.88,
},
modFender = {
- label = TranslateCap('leftfender'),
- parent = 'bodyparts',
+ label = TranslateCap("leftfender"),
+ parent = "bodyparts",
modType = 8,
- price = 5.12
+ price = 5.12,
},
modRightFender = {
- label = TranslateCap('rightfender'),
- parent = 'bodyparts',
+ label = TranslateCap("rightfender"),
+ parent = "bodyparts",
modType = 9,
- price = 5.12
+ price = 5.12,
},
modRoof = {
- label = TranslateCap('roof'),
- parent = 'bodyparts',
+ label = TranslateCap("roof"),
+ parent = "bodyparts",
modType = 10,
- price = 5.58
+ price = 5.58,
},
windowTint = {
- label = TranslateCap('windowtint'),
- parent = 'cosmetics',
- modType = 'windowTint',
- price = 1.12
+ label = TranslateCap("windowtint"),
+ parent = "cosmetics",
+ modType = "windowTint",
+ price = 1.12,
},
modHorns = {
- label = TranslateCap('horns'),
- parent = 'cosmetics',
+ label = TranslateCap("horns"),
+ parent = "cosmetics",
modType = 14,
- price = 1.12
+ price = 1.12,
},
neonColor = {
- label = TranslateCap('neons'),
- parent = 'cosmetics',
- modType = 'neonColor',
- price = 1.12
+ label = TranslateCap("neons"),
+ parent = "cosmetics",
+ modType = "neonColor",
+ price = 1.12,
},
tyreSmokeColor = {
- label = TranslateCap('tiresmoke'),
- parent = 'wheels',
- modType = 'tyreSmokeColor',
- price = 1.12
- }
-
+ label = TranslateCap("tiresmoke"),
+ parent = "wheels",
+ modType = "tyreSmokeColor",
+ price = 1.12,
+ },
}
diff --git a/server-data/resources/[bpt_addons]/bpt_lscustom/fxmanifest.lua b/server-data/resources/[bpt_addons]/bpt_lscustom/fxmanifest.lua
index e011bf036..9ad780d7b 100644
--- a/server-data/resources/[bpt_addons]/bpt_lscustom/fxmanifest.lua
+++ b/server-data/resources/[bpt_addons]/bpt_lscustom/fxmanifest.lua
@@ -1,25 +1,25 @@
-fx_version 'adamant'
+fx_version("adamant")
-game 'gta5'
+game("gta5")
-author 'bitpredator'
-description 'Allows Players to use LS Customs to customise their cars'
-lua54 'yes'
-version '1.0.1'
+author("bitpredator")
+description("Allows Players to use LS Customs to customise their cars")
+lua54("yes")
+version("1.0.2")
-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/main.lua'
-}
+server_scripts({
+ "@oxmysql/lib/MySQL.lua",
+ "@es_extended/locale.lua",
+ "locales/*.lua",
+ "config.lua",
+ "server/main.lua",
+})
-client_scripts {
- '@es_extended/locale.lua',
- 'locales/*.lua',
- 'config.lua',
- 'client/main.lua'
-}
+client_scripts({
+ "@es_extended/locale.lua",
+ "locales/*.lua",
+ "config.lua",
+ "client/main.lua",
+})
diff --git a/server-data/resources/[bpt_addons]/bpt_lscustom/locales/en.lua b/server-data/resources/[bpt_addons]/bpt_lscustom/locales/en.lua
index f5b24db29..b3df9c020 100644
--- a/server-data/resources/[bpt_addons]/bpt_lscustom/locales/en.lua
+++ b/server-data/resources/[bpt_addons]/bpt_lscustom/locales/en.lua
@@ -1,281 +1,281 @@
-Locales['en'] = {
- ['by_default'] = 'default',
- ['installed'] = 'installed',
- ['already_own'] = 'you already own: %s',
- ['not_enough_money'] = 'you cannot afford this mod!',
- ['purchased'] = 'you have purchased the mod!',
- ['press_custom'] = 'press ~b~[E]~s~ to Personalise Your Vehicle',
- ['level'] = 'level %s',
- ['neon'] = 'neon',
- ['blip_name'] = 'los Santos Customs',
+Locales["en"] = {
+ ["by_default"] = "default",
+ ["installed"] = "installed",
+ ["already_own"] = "you already own: %s",
+ ["not_enough_money"] = "you cannot afford this mod!",
+ ["purchased"] = "you have purchased the mod!",
+ ["press_custom"] = "press ~b~[E]~s~ to Personalise Your Vehicle",
+ ["level"] = "level %s",
+ ["neon"] = "neon",
+ ["blip_name"] = "los Santos Customs",
-- Paint Colors
-- Black
- ['black'] = 'black',
- ['graphite'] = 'graphite',
- ['black_metallic'] = 'black Metallic',
- ['caststeel'] = 'cast Steel',
- ['black_anth'] = 'black Anthracite',
- ['matteblack'] = 'matte Black',
- ['darknight'] = 'dark Night',
- ['deepblack'] = 'deep Black',
- ['oil'] = 'oil',
- ['carbon'] = 'carbon',
+ ["black"] = "black",
+ ["graphite"] = "graphite",
+ ["black_metallic"] = "black Metallic",
+ ["caststeel"] = "cast Steel",
+ ["black_anth"] = "black Anthracite",
+ ["matteblack"] = "matte Black",
+ ["darknight"] = "dark Night",
+ ["deepblack"] = "deep Black",
+ ["oil"] = "oil",
+ ["carbon"] = "carbon",
-- White
- ['white'] = 'white',
- ['vanilla'] = 'vanilla',
- ['creme'] = 'creme',
- ['polarwhite'] = 'polar White',
- ['beige'] = 'beige',
- ['mattewhite'] = 'matte White',
- ['snow'] = 'snow',
- ['cotton'] = 'cotton',
- ['alabaster'] = 'alabaster',
- ['purewhite'] = 'pure White',
+ ["white"] = "white",
+ ["vanilla"] = "vanilla",
+ ["creme"] = "creme",
+ ["polarwhite"] = "polar White",
+ ["beige"] = "beige",
+ ["mattewhite"] = "matte White",
+ ["snow"] = "snow",
+ ["cotton"] = "cotton",
+ ["alabaster"] = "alabaster",
+ ["purewhite"] = "pure White",
-- Grey
- ['grey'] = 'grey',
- ['silver'] = 'silver',
- ['metallicgrey'] = 'metallic Grey',
- ['laminatedsteel'] = 'laminated Steel',
- ['darkgray'] = 'dark Grey',
- ['rockygray'] = 'rocky Grey',
- ['graynight'] = 'gray Night',
- ['aluminum'] = 'aluminum',
- ['graymat'] = 'matte Grey',
- ['lightgrey'] = 'light Grey',
- ['asphaltgray'] = 'asphalt Grey',
- ['grayconcrete'] = 'concrete Grey',
- ['darksilver'] = 'dark Silver',
- ['magnesite'] = 'magnesite',
- ['nickel'] = 'nickel',
- ['zinc'] = 'zinc',
- ['dolomite'] = 'dolomite',
- ['bluesilver'] = 'blue Silver',
- ['titanium'] = 'titanium',
- ['steelblue'] = 'steel Blue',
- ['champagne'] = 'champagne',
- ['grayhunter'] = 'grey Hunter',
+ ["grey"] = "grey",
+ ["silver"] = "silver",
+ ["metallicgrey"] = "metallic Grey",
+ ["laminatedsteel"] = "laminated Steel",
+ ["darkgray"] = "dark Grey",
+ ["rockygray"] = "rocky Grey",
+ ["graynight"] = "gray Night",
+ ["aluminum"] = "aluminum",
+ ["graymat"] = "matte Grey",
+ ["lightgrey"] = "light Grey",
+ ["asphaltgray"] = "asphalt Grey",
+ ["grayconcrete"] = "concrete Grey",
+ ["darksilver"] = "dark Silver",
+ ["magnesite"] = "magnesite",
+ ["nickel"] = "nickel",
+ ["zinc"] = "zinc",
+ ["dolomite"] = "dolomite",
+ ["bluesilver"] = "blue Silver",
+ ["titanium"] = "titanium",
+ ["steelblue"] = "steel Blue",
+ ["champagne"] = "champagne",
+ ["grayhunter"] = "grey Hunter",
-- Red
- ['red'] = 'red',
- ['torino_red'] = 'torino Red',
- ['poppy'] = 'poppy',
- ['copper_red'] = 'copper Red',
- ['cardinal'] = 'cardinal Red',
- ['brick'] = 'brick Red',
- ['garnet'] = 'Garnet',
- ['cabernet'] = 'cabernet Red',
- ['candy'] = 'candy Red',
- ['matte_red'] = 'matte Red',
- ['dark_red'] = 'dark Red',
- ['red_pulp'] = 'red Pulp',
- ['bril_red'] = 'brilliant Red',
- ['pale_red'] = 'pale Red',
- ['wine_red'] = 'wine Red',
- ['volcano'] = 'Volcano',
+ ["red"] = "red",
+ ["torino_red"] = "torino Red",
+ ["poppy"] = "poppy",
+ ["copper_red"] = "copper Red",
+ ["cardinal"] = "cardinal Red",
+ ["brick"] = "brick Red",
+ ["garnet"] = "Garnet",
+ ["cabernet"] = "cabernet Red",
+ ["candy"] = "candy Red",
+ ["matte_red"] = "matte Red",
+ ["dark_red"] = "dark Red",
+ ["red_pulp"] = "red Pulp",
+ ["bril_red"] = "brilliant Red",
+ ["pale_red"] = "pale Red",
+ ["wine_red"] = "wine Red",
+ ["volcano"] = "Volcano",
-- Pink
- ['pink'] = 'pink',
- ['electricpink'] = 'electric Pink',
- ['brightpink'] = 'bright Pink',
- ['salmon'] = 'salmon',
- ['sugarplum'] = 'sugar Plum',
+ ["pink"] = "pink",
+ ["electricpink"] = "electric Pink",
+ ["brightpink"] = "bright Pink",
+ ["salmon"] = "salmon",
+ ["sugarplum"] = "sugar Plum",
-- Blue
- ['blue'] = 'blue',
- ['topaz'] = 'topaz',
- ['light_blue'] = 'light Blue',
- ['galaxy_blue'] = 'galaxy Blue',
- ['dark_blue'] = 'dark Blue',
- ['azure'] = 'azure',
- ['navy_blue'] = 'navy Blue',
- ['lapis'] = 'lapis Lazuli',
- ['blue_diamond'] = 'blue Diamond',
- ['surfer'] = 'surfer',
- ['pastel_blue'] = 'pastel Blue',
- ['celeste_blue'] = 'celeste Blue',
- ['rally_blue'] = 'rally Blue',
- ['blue_paradise'] = 'blue Paradise',
- ['blue_night'] = 'blue Night',
- ['cyan_blue'] = 'cyan Blue',
- ['cobalt'] = 'cobalt',
- ['electric_blue'] = 'electric Blue',
- ['horizon_blue'] = 'horizon Blue',
- ['metallic_blue'] = 'metallic Blue',
- ['aquamarine'] = 'aquamarine',
- ['blue_agathe'] = 'blue Agathe',
- ['zirconium'] = 'zirconium',
- ['spinel'] = 'spinel',
- ['tourmaline'] = 'tourmaline',
- ['paradise'] = 'paradise',
- ['bubble_gum'] = 'bubble Gum',
- ['midnight_blue'] = 'midnight Blue',
- ['forbidden_blue'] = 'forbidden Blue',
- ['glacier_blue'] = 'glacier Blue',
+ ["blue"] = "blue",
+ ["topaz"] = "topaz",
+ ["light_blue"] = "light Blue",
+ ["galaxy_blue"] = "galaxy Blue",
+ ["dark_blue"] = "dark Blue",
+ ["azure"] = "azure",
+ ["navy_blue"] = "navy Blue",
+ ["lapis"] = "lapis Lazuli",
+ ["blue_diamond"] = "blue Diamond",
+ ["surfer"] = "surfer",
+ ["pastel_blue"] = "pastel Blue",
+ ["celeste_blue"] = "celeste Blue",
+ ["rally_blue"] = "rally Blue",
+ ["blue_paradise"] = "blue Paradise",
+ ["blue_night"] = "blue Night",
+ ["cyan_blue"] = "cyan Blue",
+ ["cobalt"] = "cobalt",
+ ["electric_blue"] = "electric Blue",
+ ["horizon_blue"] = "horizon Blue",
+ ["metallic_blue"] = "metallic Blue",
+ ["aquamarine"] = "aquamarine",
+ ["blue_agathe"] = "blue Agathe",
+ ["zirconium"] = "zirconium",
+ ["spinel"] = "spinel",
+ ["tourmaline"] = "tourmaline",
+ ["paradise"] = "paradise",
+ ["bubble_gum"] = "bubble Gum",
+ ["midnight_blue"] = "midnight Blue",
+ ["forbidden_blue"] = "forbidden Blue",
+ ["glacier_blue"] = "glacier Blue",
-- Yellow
- ['yellow'] = 'yellow',
- ['wheat'] = 'wheat',
- ['raceyellow'] = 'race Yellow',
- ['paleyellow'] = 'pale Yellow',
- ['lightyellow'] = 'light Yellow',
+ ["yellow"] = "yellow",
+ ["wheat"] = "wheat",
+ ["raceyellow"] = "race Yellow",
+ ["paleyellow"] = "pale Yellow",
+ ["lightyellow"] = "light Yellow",
-- Green
- ['green'] = 'green',
- ['met_dark_green'] = 'metallic Dark Green',
- ['rally_green'] = 'Rally Green',
- ['pine_green'] = 'pine Green',
- ['olive_green'] = 'olive Green',
- ['light_green'] = 'Light Green',
- ['lime_green'] = 'lime green',
- ['forest_green'] = 'forest Green',
- ['lawn_green'] = 'lawn Green',
- ['imperial_green'] = 'imperial Green',
- ['green_bottle'] = 'breen Bottle',
- ['citrus_green'] = 'citrus Green',
- ['green_anis'] = 'green Anis',
- ['khaki'] = 'Khaki',
- ['army_green'] = 'army Green',
- ['dark_green'] = 'dark Green',
- ['hunter_green'] = 'hunter Green',
- ['matte_foilage_green'] = 'matte Foilage Green',
+ ["green"] = "green",
+ ["met_dark_green"] = "metallic Dark Green",
+ ["rally_green"] = "Rally Green",
+ ["pine_green"] = "pine Green",
+ ["olive_green"] = "olive Green",
+ ["light_green"] = "Light Green",
+ ["lime_green"] = "lime green",
+ ["forest_green"] = "forest Green",
+ ["lawn_green"] = "lawn Green",
+ ["imperial_green"] = "imperial Green",
+ ["green_bottle"] = "breen Bottle",
+ ["citrus_green"] = "citrus Green",
+ ["green_anis"] = "green Anis",
+ ["khaki"] = "Khaki",
+ ["army_green"] = "army Green",
+ ["dark_green"] = "dark Green",
+ ["hunter_green"] = "hunter Green",
+ ["matte_foilage_green"] = "matte Foilage Green",
-- Orange
- ['orange'] = 'orange',
- ['tangerine'] = 'Tangerine',
- ['matteorange'] = 'Matte Orange',
- ['lightorange'] = 'Light Orange',
- ['peach'] = 'Peach',
- ['pumpkin'] = 'Pumpkin',
- ['orangelambo'] = 'Orange Lambo',
+ ["orange"] = "orange",
+ ["tangerine"] = "Tangerine",
+ ["matteorange"] = "Matte Orange",
+ ["lightorange"] = "Light Orange",
+ ["peach"] = "Peach",
+ ["pumpkin"] = "Pumpkin",
+ ["orangelambo"] = "Orange Lambo",
-- Brown
- ['brown'] = 'brown',
- ['copper'] = 'Copper',
- ['lightbrown'] = 'Light Brown',
- ['darkbrown'] = 'Dark Brown',
- ['bronze'] = 'Bronze',
- ['brownmetallic'] = 'Brown Metallic',
- ['expresso'] = 'Expresso',
- ['chocolate'] = 'Chocolate',
- ['terracotta'] = 'Terracotta',
- ['marble'] = 'Marble',
- ['sand'] = 'Sand',
- ['sepia'] = 'Sepia',
- ['bison'] = 'Bison',
- ['palm'] = 'Palm',
- ['caramel'] = 'Caramel',
- ['rust'] = 'Rust',
- ['chestnut'] = 'Chestnut',
- ['hazelnut'] = 'Hazelnut',
- ['shell'] = 'Shell',
- ['mahogany'] = 'Mahogany',
- ['cauldron'] = 'Cauldron',
- ['blond'] = 'Blond',
- ['gravel'] = 'Gravel',
- ['darkearth'] = 'Dark Earth',
- ['desert'] = 'Desert',
+ ["brown"] = "brown",
+ ["copper"] = "Copper",
+ ["lightbrown"] = "Light Brown",
+ ["darkbrown"] = "Dark Brown",
+ ["bronze"] = "Bronze",
+ ["brownmetallic"] = "Brown Metallic",
+ ["expresso"] = "Expresso",
+ ["chocolate"] = "Chocolate",
+ ["terracotta"] = "Terracotta",
+ ["marble"] = "Marble",
+ ["sand"] = "Sand",
+ ["sepia"] = "Sepia",
+ ["bison"] = "Bison",
+ ["palm"] = "Palm",
+ ["caramel"] = "Caramel",
+ ["rust"] = "Rust",
+ ["chestnut"] = "Chestnut",
+ ["hazelnut"] = "Hazelnut",
+ ["shell"] = "Shell",
+ ["mahogany"] = "Mahogany",
+ ["cauldron"] = "Cauldron",
+ ["blond"] = "Blond",
+ ["gravel"] = "Gravel",
+ ["darkearth"] = "Dark Earth",
+ ["desert"] = "Desert",
-- Purple
- ['purple'] = 'purple',
- ['indigo'] = 'Indigo',
- ['deeppurple'] = 'Deep Purple',
- ['darkviolet'] = 'Dark Violet',
- ['amethyst'] = 'Amethyst',
- ['mysticalviolet'] = 'Mystic Violet',
- ['purplemetallic'] = 'Purple Metallic',
- ['matteviolet'] = 'Matte Violet',
- ['mattedeeppurple'] = 'Matte Deep Purple',
+ ["purple"] = "purple",
+ ["indigo"] = "Indigo",
+ ["deeppurple"] = "Deep Purple",
+ ["darkviolet"] = "Dark Violet",
+ ["amethyst"] = "Amethyst",
+ ["mysticalviolet"] = "Mystic Violet",
+ ["purplemetallic"] = "Purple Metallic",
+ ["matteviolet"] = "Matte Violet",
+ ["mattedeeppurple"] = "Matte Deep Purple",
-- Chrome
- ['chrome'] = 'chrome',
- ['brushedchrome'] = 'brushed Chrome',
- ['blackchrome'] = 'black Chrome',
- ['brushedaluminum'] = 'brushed Aluminum',
+ ["chrome"] = "chrome",
+ ["brushedchrome"] = "brushed Chrome",
+ ["blackchrome"] = "black Chrome",
+ ["brushedaluminum"] = "brushed Aluminum",
-- Metal
- ['gold'] = 'gold',
- ['puregold'] = 'pure Gold',
- ['brushedgold'] = 'brushed Gold',
- ['lightgold'] = 'light Gold',
+ ["gold"] = "gold",
+ ["puregold"] = "pure Gold",
+ ["brushedgold"] = "brushed Gold",
+ ["lightgold"] = "light Gold",
-- License Plates
- ['blue_on_white_1'] = 'blue on white 1',
- ['yellow_on_black'] = 'yellow on black',
- ['yellow_blue'] = 'yellow on blue',
- ['blue_on_white_2'] = 'blue on white 2',
- ['blue_on_white_3'] = 'blue on white 3',
+ ["blue_on_white_1"] = "blue on white 1",
+ ["yellow_on_black"] = "yellow on black",
+ ["yellow_blue"] = "yellow on blue",
+ ["blue_on_white_2"] = "blue on white 2",
+ ["blue_on_white_3"] = "blue on white 3",
-- Upgrades
- ['upgrades'] = 'upgrades',
- ['engine'] = 'engine',
- ['brakes'] = 'brakes',
- ['transmission'] = 'transmission',
- ['suspension'] = 'suspension',
- ['armor'] = 'armor',
- ['turbo'] = 'turbo',
- ['no_turbo'] = 'no turbo',
+ ["upgrades"] = "upgrades",
+ ["engine"] = "engine",
+ ["brakes"] = "brakes",
+ ["transmission"] = "transmission",
+ ["suspension"] = "suspension",
+ ["armor"] = "armor",
+ ["turbo"] = "turbo",
+ ["no_turbo"] = "no turbo",
-- Cosmetics
- ['cosmetics'] = 'cosmetics',
+ ["cosmetics"] = "cosmetics",
-- Body Parts
- ['bodyparts'] = 'body Parts',
- ['leftfender'] = 'left fender',
- ['rightfender'] = 'right fender',
- ['spoilers'] = 'spoilers',
- ['sideskirt'] = 'side skirts',
- ['cage'] = 'cage',
- ['hood'] = 'hood',
- ['grille'] = 'grille',
- ['rearbumper'] = 'rear bumper',
- ['frontbumper'] = 'front bumper',
- ['exhaust'] = 'exhaust',
- ['roof'] = 'roof',
+ ["bodyparts"] = "body Parts",
+ ["leftfender"] = "left fender",
+ ["rightfender"] = "right fender",
+ ["spoilers"] = "spoilers",
+ ["sideskirt"] = "side skirts",
+ ["cage"] = "cage",
+ ["hood"] = "hood",
+ ["grille"] = "grille",
+ ["rearbumper"] = "rear bumper",
+ ["frontbumper"] = "front bumper",
+ ["exhaust"] = "exhaust",
+ ["roof"] = "roof",
-- Paint
- ['respray'] = 'respray',
- ['primary'] = 'primary',
- ['secondary'] = 'secondary',
- ['pearlescent'] = 'pearlescent',
+ ["respray"] = "respray",
+ ["primary"] = "primary",
+ ["secondary"] = "secondary",
+ ["pearlescent"] = "pearlescent",
-- Misc
- ['headlights'] = 'headlights',
- ['licenseplates'] = 'license Plate',
- ['windowtint'] = 'window Tint',
- ['horns'] = 'horns',
+ ["headlights"] = "headlights",
+ ["licenseplates"] = "license Plate",
+ ["windowtint"] = "window Tint",
+ ["horns"] = "horns",
-- Neon
- ['neons'] = 'neons',
+ ["neons"] = "neons",
-- Wheels
- ['wheels'] = 'wheels',
- ['tiresmoke'] = 'tire smoke',
- ['wheel_type'] = 'wheel type',
- ['wheel_color'] = 'wheel color',
- ['sport'] = 'sport',
- ['muscle'] = 'muscle',
- ['lowrider'] = 'lowrider',
- ['suv'] = 'SUV',
- ['allterrain'] = 'all terrain',
- ['tuning'] = 'tuning',
+ ["wheels"] = "wheels",
+ ["tiresmoke"] = "tire smoke",
+ ["wheel_type"] = "wheel type",
+ ["wheel_color"] = "wheel color",
+ ["sport"] = "sport",
+ ["muscle"] = "muscle",
+ ["lowrider"] = "lowrider",
+ ["suv"] = "SUV",
+ ["allterrain"] = "all terrain",
+ ["tuning"] = "tuning",
["motorcycle"] = "motorcycle Front",
["highend"] = "high end",
- ['motorcycle2'] = 'motorcycle Back',
- ['dragster'] = 'dragster',
- ['street'] = 'street',
- ['bennys'] = 'bennys',
- ['bennysv2'] = 'bennys v2',
- ['rally'] = 'race',
- ['modplateholder'] = 'plate - Back',
- ['modvanityplate'] = 'plate - Front',
- ['interior'] = 'interior',
- ['trim'] = 'trim',
- ['dashboard'] = 'dashboard',
- ['speedometer'] = 'speedometer',
- ['door_speakers'] = 'door speakers',
- ['seats'] = 'seats',
- ['steering_wheel'] = 'steering wheel',
- ['gear_lever'] = 'gear lever',
- ['quarter_deck'] = 'quarter-deck',
- ['speakers'] = 'speakers',
- ['trunk'] = 'trunk',
- ['hydraulic'] = 'hydraulic',
- ['engine_block'] = 'engine block',
- ['air_filter'] = 'air filter',
- ['struts'] = 'struts',
- ['arch_cover'] = 'arch cover',
- ['aerials'] = 'aerials',
- ['wings'] = 'wings',
- ['fuel_tank'] = 'fuel tank',
- ['windows'] = 'windows',
- ['stickers'] = 'Livery',
+ ["motorcycle2"] = "motorcycle Back",
+ ["dragster"] = "dragster",
+ ["street"] = "street",
+ ["bennys"] = "bennys",
+ ["bennysv2"] = "bennys v2",
+ ["rally"] = "race",
+ ["modplateholder"] = "plate - Back",
+ ["modvanityplate"] = "plate - Front",
+ ["interior"] = "interior",
+ ["trim"] = "trim",
+ ["dashboard"] = "dashboard",
+ ["speedometer"] = "speedometer",
+ ["door_speakers"] = "door speakers",
+ ["seats"] = "seats",
+ ["steering_wheel"] = "steering wheel",
+ ["gear_lever"] = "gear lever",
+ ["quarter_deck"] = "quarter-deck",
+ ["speakers"] = "speakers",
+ ["trunk"] = "trunk",
+ ["hydraulic"] = "hydraulic",
+ ["engine_block"] = "engine block",
+ ["air_filter"] = "air filter",
+ ["struts"] = "struts",
+ ["arch_cover"] = "arch cover",
+ ["aerials"] = "aerials",
+ ["wings"] = "wings",
+ ["fuel_tank"] = "fuel tank",
+ ["windows"] = "windows",
+ ["stickers"] = "Livery",
-- Xenon Colors
- ['mintgreen'] = 'Mint Green',
- ['goldenshower'] = 'Golden Shower',
- ['ponypink'] = 'Pony Pink',
- ['hotpink'] = 'Hot Pink',
- ['blacklight'] = 'Blacklight',
+ ["mintgreen"] = "Mint Green",
+ ["goldenshower"] = "Golden Shower",
+ ["ponypink"] = "Pony Pink",
+ ["hotpink"] = "Hot Pink",
+ ["blacklight"] = "Blacklight",
}
diff --git a/server-data/resources/[bpt_addons]/bpt_lscustom/locales/it.lua b/server-data/resources/[bpt_addons]/bpt_lscustom/locales/it.lua
index 7ead8fc8a..c4bb7e73b 100644
--- a/server-data/resources/[bpt_addons]/bpt_lscustom/locales/it.lua
+++ b/server-data/resources/[bpt_addons]/bpt_lscustom/locales/it.lua
@@ -1,275 +1,275 @@
-Locales['it'] = {
- ['by_default'] = 'default',
- ['installed'] = 'installato',
- ['already_own'] = 'possiedi già: %s',
- ['not_enough_money'] = 'non puoi permetterti questa modifica!',
- ['purchased'] = 'hai acquistato la modifica!',
- ['press_custom'] = 'premi ~b~[E]~s~ per personalizzare il tuo veicolo',
- ['level'] = 'livello %s',
- ['neon'] = 'neon',
- ['blip_name'] = 'los Santos Customs',
- -- Paint Colors
- -- Black
- ['black'] = 'nero',
- ['graphite'] = 'grafite',
- ['black_metallic'] = 'nero metallico',
- ['caststeel'] = 'acciaio fuso',
- ['black_anth'] = 'nero antacite',
- ['matteblack'] = 'nero opaco',
- ['darknight'] = 'notte oscura',
- ['deepblack'] = 'nero profondo',
- ['oil'] = 'olio',
- ['carbon'] = 'carbonio',
- -- White
- ['white'] = 'bianco',
- ['vanilla'] = 'vaniglia',
- ['creme'] = 'crema',
- ['polarwhite'] = 'bianco polare',
- ['beige'] = 'beige',
- ['mattewhite'] = 'bianco opaco',
- ['snow'] = 'neve',
- ['cotton'] = 'cotone',
- ['alabaster'] = 'alabastro',
- ['purewhite'] = 'bianco puro',
- -- Grey
- ['grey'] = 'grigio',
- ['silver'] = 'argento',
- ['metallicgrey'] = 'grigio metallico',
- ['laminatedsteel'] = 'acciaio laminato',
- ['darkgray'] = 'grigio scuro',
- ['rockygray'] = 'grigio roccioso',
- ['graynight'] = 'grigio notte',
- ['aluminum'] = 'alluminio',
- ['graymat'] = 'grigio opaco',
- ['lightgrey'] = 'grigio chiaro',
- ['asphaltgray'] = 'grigio asfalto',
- ['grayconcrete'] = 'grigio cemento',
- ['darksilver'] = 'argento scuro',
- ['magnesite'] = 'magnesite',
- ['nickel'] = 'nickel',
- ['zinc'] = 'zinco',
- ['dolomite'] = 'dolomite',
- ['bluesilver'] = 'argento blu',
- ['titanium'] = 'titanio',
- ['steelblue'] = 'blu acciaio',
- ['champagne'] = 'champagne',
- ['grayhunter'] = 'grigio cacciatore',
- -- Red
- ['red'] = 'rosso',
- ['torino_red'] = 'rosso torino',
- ['poppy'] = 'papavero',
- ['copper_red'] = 'rosso rame',
- ['cardinal'] = 'rosso cardinale',
- ['brick'] = 'rosso mattone',
- ['garnet'] = 'Granato',
- ['cabernet'] = 'rosso cabernet',
- ['candy'] = 'caramella rossa',
- ['matte_red'] = 'rosso opaco',
- ['dark_red'] = 'rosso scuro',
- ['red_pulp'] = 'polpa rossa',
- ['bril_red'] = 'rosso brillante',
- ['pale_red'] = 'rosso pallido',
- ['wine_red'] = 'vino rosso',
- ['volcano'] = 'vulcano',
- -- Pink
- ['pink'] = 'rosa',
- ['electricpink'] = 'rosa elettrico',
- ['brightpink'] = 'rosa brillante',
- ['salmon'] = 'rosa salmone',
- ['sugarplum'] = 'rosa prugna',
- -- Blue
- ['blue'] = 'blu',
- ['topaz'] = 'blu topazio',
- ['light_blue'] = 'azzurro',
- ['galaxy_blue'] = 'blu galassia',
- ['dark_blue'] = 'blu scuro',
- ['azure'] = 'azzurro',
- ['navy_blue'] = 'blu marino',
- ['lapis'] = 'blu lapislazzulo',
- ['blue_diamond'] = 'blu diamante',
- ['surfer'] = 'surfista',
- ['pastel_blue'] = 'blu pastello',
- ['celeste_blue'] = 'blu celeste',
- ['rally_blue'] = 'rally Blue',
- ['blue_paradise'] = 'blu Paradiso',
- ['blue_night'] = 'blu notte',
- ['cyan_blue'] = 'blu ciano',
- ['cobalt'] = 'cobalto',
- ['electric_blue'] = 'blue elettrico',
- ['horizon_blue'] = 'blu orizzonte',
- ['metallic_blue'] = 'blu metallico',
- ['aquamarine'] = 'acquamarina',
- ['blue_agathe'] = 'blu agata',
- ['zirconium'] = 'zirconio',
- ['spinel'] = 'spinello',
- ['tourmaline'] = 'tormalina',
- ['paradise'] = 'paradiso',
- ['bubble_gum'] = 'blu gomma',
- ['midnight_blue'] = 'blu mezzanotte',
- ['forbidden_blue'] = 'blu proibito',
- ['glacier_blue'] = 'blu glaciale',
- -- Yellow
- ['yellow'] = 'giallo',
- ['wheat'] = 'giallo grano',
- ['raceyellow'] = 'giallo gara',
- ['paleyellow'] = 'giallo pallido',
- ['lightyellow'] = 'giallo chiaro',
- -- Green
- ['green'] = 'verde',
- ['met_dark_green'] = 'verde scuro metallico',
- ['rally_green'] = 'verde Rally',
- ['pine_green'] = 'verde pino',
- ['olive_green'] = 'verde oliva',
- ['light_green'] = 'verde chiaro',
- ['lime_green'] = 'verde lime',
- ['forest_green'] = 'verde foresta',
- ['lawn_green'] = 'verde prato',
- ['imperial_green'] = 'verde imperiale',
- ['green_bottle'] = 'verde bottiglia',
- ['citrus_green'] = 'verde agrumi',
- ['green_anis'] = 'verde anici',
- ['khaki'] = 'cachi',
- ['army_green'] = 'verde militare',
- ['dark_green'] = 'verde scuro',
- ['hunter_green'] = 'verde cacciatore',
- ['matte_foilage_green'] = 'verde foglia',
- -- Orange
- ['orange'] = 'arancione',
- ['tangerine'] = 'mandarino',
- ['matteorange'] = 'arancio opaco',
- ['lightorange'] = 'arancione chiaro',
- ['peach'] = 'pesca',
- ['pumpkin'] = 'zucca',
- ['orangelambo'] = 'arancione Lambo',
- -- Brown
- ['brown'] = 'marrone',
- ['copper'] = 'rame',
- ['lightbrown'] = 'marrone chiaro',
- ['darkbrown'] = 'marrone scuro',
- ['bronze'] = 'Bronzo',
- ['brownmetallic'] = 'marrone metallico',
- ['expresso'] = 'Espresso',
- ['chocolate'] = 'cioccolato',
- ['terracotta'] = 'Terracotta',
- ['marble'] = 'Marmo',
- ['sand'] = 'Sabbia',
- ['sepia'] = 'Seppia',
- ['bison'] = 'Bisonte',
- ['palm'] = 'Palmo',
- ['caramel'] = 'Caramello',
- ['rust'] = 'Ruggine',
- ['chestnut'] = 'Castagna',
- ['hazelnut'] = 'nocciola',
- ['shell'] = 'guscio',
- ['mahogany'] = 'Mogano',
- ['cauldron'] = 'marrone calderone',
- ['blond'] = 'marrone biondo',
- ['gravel'] = 'marrone ghiaia',
- ['darkearth'] = 'marrone terra scura',
- ['desert'] = 'deserto',
- -- Purple
- ['purple'] = 'viola',
- ['indigo'] = 'Indaco',
- ['deeppurple'] = 'viola intenso',
- ['darkviolet'] = 'viola scuro',
- ['amethyst'] = 'emetista',
- ['mysticalviolet'] = 'viola mistico',
- ['purplemetallic'] = 'viola metallico',
- ['matteviolet'] = 'viola opaco',
- ['mattedeeppurple'] = 'viola intenso opaco',
- -- Chrome
- ['chrome'] = 'cromato',
- ['brushedchrome'] = 'cromato spazzolato',
- ['blackchrome'] = 'nero gromato',
- ['brushedaluminum'] = 'alluminio spazzolato',
- -- Metal
- ['gold'] = 'oro',
- ['puregold'] = 'oro puro',
- ['brushedgold'] = 'oro spazzolato',
- ['lightgold'] = 'oro chiaro',
- -- License Plates
- ['blue_on_white_1'] = 'blu su bianco 1',
- ['yellow_on_black'] = 'giallo su nero',
- ['yellow_blue'] = 'giallo su blu',
- ['blue_on_white_2'] = 'blu su bianco 2',
- ['blue_on_white_3'] = 'blu su bianco 3',
- -- Upgrades
- ['upgrades'] = 'aggiornamenti',
- ['engine'] = 'motore',
- ['brakes'] = 'freni',
- ['transmission'] = 'trasmissione',
- ['suspension'] = 'ssospensione',
- ['armor'] = 'armatura',
- ['turbo'] = 'turbo',
- ['no_turbo'] = 'no turbo',
- -- Cosmetics
- ['cosmetics'] = 'cosmetici',
- -- Body Parts
- ['bodyparts'] = 'parti del corpo',
- ['leftfender'] = 'parafango sinistro',
- ['rightfender'] = 'parafango destro',
- ['spoilers'] = 'spoiler',
- ['sideskirt'] = 'gonna laterale',
- ['cage'] = 'gabbia',
- ['hood'] = 'cappuccio',
- ['grille'] = 'griglia',
- ['rearbumper'] = 'paraurti posteriore',
- ['frontbumper'] = 'paraurti anteriore',
- ['exhaust'] = 'scarico',
- ['roof'] = 'tetto',
- -- Paint
- ['respray'] = 'verici',
- ['primary'] = 'primaria',
- ['secondary'] = 'secondaria',
- ['pearlescent'] = 'perlescente',
- -- Misc
- ['headlights'] = 'fari',
- ['licenseplates'] = 'targa',
- ['windowtint'] = 'tinta finestrino',
- ['horns'] = 'clacson',
- -- Neon
- ['neons'] = 'neon',
- -- Wheels
- ['wheels'] = 'ruote',
- ['tiresmoke'] = 'fumo pneumatici',
- ['wheel_type'] = 'tipo di ruota',
- ['wheel_color'] = 'colore cerchione',
- ['sport'] = 'sport',
- ['muscle'] = 'muscle',
- ['lowrider'] = 'lowrider',
- ['suv'] = 'SUV',
- ['allterrain'] = 'tutti i terreni',
- ['tuning'] = 'tuning',
- ['motorcycle'] = 'moto',
- ['highend'] = 'fascia alta',
- ['modplateholder'] = 'targa - posteriore',
- ['modvanityplate'] = 'targa - anteriore',
- ['interior'] = 'interni',
- ['trim'] = 'trim',
- ['dashboard'] = 'cruscotto',
- ['speedometer'] = 'tachimetro',
- ['door_speakers'] = 'casse audio',
- ['seats'] = 'sedili',
- ['steering_wheel'] = 'volante',
- ['gear_lever'] = 'leva del cambio',
- ['quarter_deck'] = 'quarter-deck',
- ['speakers'] = 'altoparlanti',
- ['trunk'] = 'tronco',
- ['hydraulic'] = 'idraulica',
- ['engine_block'] = 'blocco motore',
- ['air_filter'] = 'filtro aria',
- ['struts'] = 'puntoni',
- ['arch_cover'] = 'cover',
- ['aerials'] = 'antenne',
- ['wings'] = 'ali',
- ['fuel_tank'] = 'serbatoio carburante',
- ['windows'] = 'finestrini',
- ['stickers'] = 'Livrea',
+Locales["it"] = {
+ ["by_default"] = "default",
+ ["installed"] = "installato",
+ ["already_own"] = "possiedi già: %s",
+ ["not_enough_money"] = "non puoi permetterti questa modifica!",
+ ["purchased"] = "hai acquistato la modifica!",
+ ["press_custom"] = "premi ~b~[E]~s~ per personalizzare il tuo veicolo",
+ ["level"] = "livello %s",
+ ["neon"] = "neon",
+ ["blip_name"] = "los Santos Customs",
+ -- Paint Colors
+ -- Black
+ ["black"] = "nero",
+ ["graphite"] = "grafite",
+ ["black_metallic"] = "nero metallico",
+ ["caststeel"] = "acciaio fuso",
+ ["black_anth"] = "nero antacite",
+ ["matteblack"] = "nero opaco",
+ ["darknight"] = "notte oscura",
+ ["deepblack"] = "nero profondo",
+ ["oil"] = "olio",
+ ["carbon"] = "carbonio",
+ -- White
+ ["white"] = "bianco",
+ ["vanilla"] = "vaniglia",
+ ["creme"] = "crema",
+ ["polarwhite"] = "bianco polare",
+ ["beige"] = "beige",
+ ["mattewhite"] = "bianco opaco",
+ ["snow"] = "neve",
+ ["cotton"] = "cotone",
+ ["alabaster"] = "alabastro",
+ ["purewhite"] = "bianco puro",
+ -- Grey
+ ["grey"] = "grigio",
+ ["silver"] = "argento",
+ ["metallicgrey"] = "grigio metallico",
+ ["laminatedsteel"] = "acciaio laminato",
+ ["darkgray"] = "grigio scuro",
+ ["rockygray"] = "grigio roccioso",
+ ["graynight"] = "grigio notte",
+ ["aluminum"] = "alluminio",
+ ["graymat"] = "grigio opaco",
+ ["lightgrey"] = "grigio chiaro",
+ ["asphaltgray"] = "grigio asfalto",
+ ["grayconcrete"] = "grigio cemento",
+ ["darksilver"] = "argento scuro",
+ ["magnesite"] = "magnesite",
+ ["nickel"] = "nickel",
+ ["zinc"] = "zinco",
+ ["dolomite"] = "dolomite",
+ ["bluesilver"] = "argento blu",
+ ["titanium"] = "titanio",
+ ["steelblue"] = "blu acciaio",
+ ["champagne"] = "champagne",
+ ["grayhunter"] = "grigio cacciatore",
+ -- Red
+ ["red"] = "rosso",
+ ["torino_red"] = "rosso torino",
+ ["poppy"] = "papavero",
+ ["copper_red"] = "rosso rame",
+ ["cardinal"] = "rosso cardinale",
+ ["brick"] = "rosso mattone",
+ ["garnet"] = "Granato",
+ ["cabernet"] = "rosso cabernet",
+ ["candy"] = "caramella rossa",
+ ["matte_red"] = "rosso opaco",
+ ["dark_red"] = "rosso scuro",
+ ["red_pulp"] = "polpa rossa",
+ ["bril_red"] = "rosso brillante",
+ ["pale_red"] = "rosso pallido",
+ ["wine_red"] = "vino rosso",
+ ["volcano"] = "vulcano",
+ -- Pink
+ ["pink"] = "rosa",
+ ["electricpink"] = "rosa elettrico",
+ ["brightpink"] = "rosa brillante",
+ ["salmon"] = "rosa salmone",
+ ["sugarplum"] = "rosa prugna",
+ -- Blue
+ ["blue"] = "blu",
+ ["topaz"] = "blu topazio",
+ ["light_blue"] = "azzurro",
+ ["galaxy_blue"] = "blu galassia",
+ ["dark_blue"] = "blu scuro",
+ ["azure"] = "azzurro",
+ ["navy_blue"] = "blu marino",
+ ["lapis"] = "blu lapislazzulo",
+ ["blue_diamond"] = "blu diamante",
+ ["surfer"] = "surfista",
+ ["pastel_blue"] = "blu pastello",
+ ["celeste_blue"] = "blu celeste",
+ ["rally_blue"] = "rally Blue",
+ ["blue_paradise"] = "blu Paradiso",
+ ["blue_night"] = "blu notte",
+ ["cyan_blue"] = "blu ciano",
+ ["cobalt"] = "cobalto",
+ ["electric_blue"] = "blue elettrico",
+ ["horizon_blue"] = "blu orizzonte",
+ ["metallic_blue"] = "blu metallico",
+ ["aquamarine"] = "acquamarina",
+ ["blue_agathe"] = "blu agata",
+ ["zirconium"] = "zirconio",
+ ["spinel"] = "spinello",
+ ["tourmaline"] = "tormalina",
+ ["paradise"] = "paradiso",
+ ["bubble_gum"] = "blu gomma",
+ ["midnight_blue"] = "blu mezzanotte",
+ ["forbidden_blue"] = "blu proibito",
+ ["glacier_blue"] = "blu glaciale",
+ -- Yellow
+ ["yellow"] = "giallo",
+ ["wheat"] = "giallo grano",
+ ["raceyellow"] = "giallo gara",
+ ["paleyellow"] = "giallo pallido",
+ ["lightyellow"] = "giallo chiaro",
+ -- Green
+ ["green"] = "verde",
+ ["met_dark_green"] = "verde scuro metallico",
+ ["rally_green"] = "verde Rally",
+ ["pine_green"] = "verde pino",
+ ["olive_green"] = "verde oliva",
+ ["light_green"] = "verde chiaro",
+ ["lime_green"] = "verde lime",
+ ["forest_green"] = "verde foresta",
+ ["lawn_green"] = "verde prato",
+ ["imperial_green"] = "verde imperiale",
+ ["green_bottle"] = "verde bottiglia",
+ ["citrus_green"] = "verde agrumi",
+ ["green_anis"] = "verde anici",
+ ["khaki"] = "cachi",
+ ["army_green"] = "verde militare",
+ ["dark_green"] = "verde scuro",
+ ["hunter_green"] = "verde cacciatore",
+ ["matte_foilage_green"] = "verde foglia",
+ -- Orange
+ ["orange"] = "arancione",
+ ["tangerine"] = "mandarino",
+ ["matteorange"] = "arancio opaco",
+ ["lightorange"] = "arancione chiaro",
+ ["peach"] = "pesca",
+ ["pumpkin"] = "zucca",
+ ["orangelambo"] = "arancione Lambo",
+ -- Brown
+ ["brown"] = "marrone",
+ ["copper"] = "rame",
+ ["lightbrown"] = "marrone chiaro",
+ ["darkbrown"] = "marrone scuro",
+ ["bronze"] = "Bronzo",
+ ["brownmetallic"] = "marrone metallico",
+ ["expresso"] = "Espresso",
+ ["chocolate"] = "cioccolato",
+ ["terracotta"] = "Terracotta",
+ ["marble"] = "Marmo",
+ ["sand"] = "Sabbia",
+ ["sepia"] = "Seppia",
+ ["bison"] = "Bisonte",
+ ["palm"] = "Palmo",
+ ["caramel"] = "Caramello",
+ ["rust"] = "Ruggine",
+ ["chestnut"] = "Castagna",
+ ["hazelnut"] = "nocciola",
+ ["shell"] = "guscio",
+ ["mahogany"] = "Mogano",
+ ["cauldron"] = "marrone calderone",
+ ["blond"] = "marrone biondo",
+ ["gravel"] = "marrone ghiaia",
+ ["darkearth"] = "marrone terra scura",
+ ["desert"] = "deserto",
+ -- Purple
+ ["purple"] = "viola",
+ ["indigo"] = "Indaco",
+ ["deeppurple"] = "viola intenso",
+ ["darkviolet"] = "viola scuro",
+ ["amethyst"] = "emetista",
+ ["mysticalviolet"] = "viola mistico",
+ ["purplemetallic"] = "viola metallico",
+ ["matteviolet"] = "viola opaco",
+ ["mattedeeppurple"] = "viola intenso opaco",
+ -- Chrome
+ ["chrome"] = "cromato",
+ ["brushedchrome"] = "cromato spazzolato",
+ ["blackchrome"] = "nero gromato",
+ ["brushedaluminum"] = "alluminio spazzolato",
+ -- Metal
+ ["gold"] = "oro",
+ ["puregold"] = "oro puro",
+ ["brushedgold"] = "oro spazzolato",
+ ["lightgold"] = "oro chiaro",
+ -- License Plates
+ ["blue_on_white_1"] = "blu su bianco 1",
+ ["yellow_on_black"] = "giallo su nero",
+ ["yellow_blue"] = "giallo su blu",
+ ["blue_on_white_2"] = "blu su bianco 2",
+ ["blue_on_white_3"] = "blu su bianco 3",
+ -- Upgrades
+ ["upgrades"] = "aggiornamenti",
+ ["engine"] = "motore",
+ ["brakes"] = "freni",
+ ["transmission"] = "trasmissione",
+ ["suspension"] = "ssospensione",
+ ["armor"] = "armatura",
+ ["turbo"] = "turbo",
+ ["no_turbo"] = "no turbo",
+ -- Cosmetics
+ ["cosmetics"] = "cosmetici",
+ -- Body Parts
+ ["bodyparts"] = "parti del corpo",
+ ["leftfender"] = "parafango sinistro",
+ ["rightfender"] = "parafango destro",
+ ["spoilers"] = "spoiler",
+ ["sideskirt"] = "gonna laterale",
+ ["cage"] = "gabbia",
+ ["hood"] = "cappuccio",
+ ["grille"] = "griglia",
+ ["rearbumper"] = "paraurti posteriore",
+ ["frontbumper"] = "paraurti anteriore",
+ ["exhaust"] = "scarico",
+ ["roof"] = "tetto",
+ -- Paint
+ ["respray"] = "verici",
+ ["primary"] = "primaria",
+ ["secondary"] = "secondaria",
+ ["pearlescent"] = "perlescente",
+ -- Misc
+ ["headlights"] = "fari",
+ ["licenseplates"] = "targa",
+ ["windowtint"] = "tinta finestrino",
+ ["horns"] = "clacson",
+ -- Neon
+ ["neons"] = "neon",
+ -- Wheels
+ ["wheels"] = "ruote",
+ ["tiresmoke"] = "fumo pneumatici",
+ ["wheel_type"] = "tipo di ruota",
+ ["wheel_color"] = "colore cerchione",
+ ["sport"] = "sport",
+ ["muscle"] = "muscle",
+ ["lowrider"] = "lowrider",
+ ["suv"] = "SUV",
+ ["allterrain"] = "tutti i terreni",
+ ["tuning"] = "tuning",
+ ["motorcycle"] = "moto",
+ ["highend"] = "fascia alta",
+ ["modplateholder"] = "targa - posteriore",
+ ["modvanityplate"] = "targa - anteriore",
+ ["interior"] = "interni",
+ ["trim"] = "trim",
+ ["dashboard"] = "cruscotto",
+ ["speedometer"] = "tachimetro",
+ ["door_speakers"] = "casse audio",
+ ["seats"] = "sedili",
+ ["steering_wheel"] = "volante",
+ ["gear_lever"] = "leva del cambio",
+ ["quarter_deck"] = "quarter-deck",
+ ["speakers"] = "altoparlanti",
+ ["trunk"] = "tronco",
+ ["hydraulic"] = "idraulica",
+ ["engine_block"] = "blocco motore",
+ ["air_filter"] = "filtro aria",
+ ["struts"] = "puntoni",
+ ["arch_cover"] = "cover",
+ ["aerials"] = "antenne",
+ ["wings"] = "ali",
+ ["fuel_tank"] = "serbatoio carburante",
+ ["windows"] = "finestrini",
+ ["stickers"] = "Livrea",
- -- Xenon Colors
- ['mintgreen'] = 'Verde Menta',
- ['goldenshower'] = 'Pioggia Dorata',
- ['ponypink'] = 'Rosa Pony',
- ['hotpink'] = 'Rosa Shocking',
- ['blacklight'] = 'Luce Scura',
+ -- Xenon Colors
+ ["mintgreen"] = "Verde Menta",
+ ["goldenshower"] = "Pioggia Dorata",
+ ["ponypink"] = "Rosa Pony",
+ ["hotpink"] = "Rosa Shocking",
+ ["blacklight"] = "Luce Scura",
}
diff --git a/server-data/resources/[bpt_addons]/bpt_lscustom/server/main.lua b/server-data/resources/[bpt_addons]/bpt_lscustom/server/main.lua
index cc90c8b5f..2c27d7cf1 100644
--- a/server-data/resources/[bpt_addons]/bpt_lscustom/server/main.lua
+++ b/server-data/resources/[bpt_addons]/bpt_lscustom/server/main.lua
@@ -1,7 +1,7 @@
local Vehicles
local Customs = {}
-RegisterNetEvent('bpt_lscustom:startModing', function(props, netId)
+RegisterNetEvent("bpt_lscustom:startModing", function(props, netId)
local src = tostring(source)
if Customs[src] then
Customs[src][tostring(props.plate)] = { props = props, netId = netId }
@@ -11,14 +11,14 @@ RegisterNetEvent('bpt_lscustom:startModing', function(props, netId)
end
end)
-RegisterNetEvent('bpt_lscustom:stopModing', function(plate)
+RegisterNetEvent("bpt_lscustom:stopModing", function(plate)
local src = tostring(source)
if Customs[src] then
Customs[src][tostring(plate)] = nil
end
end)
-AddEventHandler('esx:playerDropped', function(src)
+AddEventHandler("esx:playerDropped", function(src)
src = tostring(src)
local playersCount = #GetPlayers()
if Customs[src] then
@@ -26,7 +26,7 @@ AddEventHandler('esx:playerDropped', function(src)
local entity = NetworkGetEntityFromNetworkId(v.netId)
if DoesEntityExist(entity) then
if playersCount > 0 then
- TriggerClientEvent('bpt_lscustom:restoreMods', -1, v.netId, v.props)
+ TriggerClientEvent("bpt_lscustom:restoreMods", -1, v.netId, v.props)
else
DeleteEntity(entity)
end
@@ -36,83 +36,90 @@ AddEventHandler('esx:playerDropped', function(src)
end
end)
-RegisterNetEvent('bpt_lscustom:buyMod', function(price)
+RegisterNetEvent("bpt_lscustom:buyMod", function(price)
local source = source
local xPlayer = ESX.GetPlayerFromId(source)
price = tonumber(price)
- if not xPlayer then return print('^3[WARNING]^0 The player could\'nt be found.') end
+ if not xPlayer then
+ return print("^3[WARNING]^0 The player could'nt be found.")
+ end
if Config.IsMechanicJobOnly then
local societyAccount
- TriggerEvent('bpt_addonaccount:getSharedAccount', 'society_mechanic', function(account)
+ TriggerEvent("bpt_addonaccount:getSharedAccount", "society_mechanic", function(account)
societyAccount = account
end)
if price < societyAccount.money then
- TriggerClientEvent('bpt_lscustom:installMod', source)
- TriggerClientEvent('esx:showNotification', source, TranslateCap('purchased'))
+ TriggerClientEvent("bpt_lscustom:installMod", source)
+ TriggerClientEvent("esx:showNotification", source, TranslateCap("purchased"))
societyAccount.removeMoney(price)
else
- TriggerClientEvent('bpt_lscustom:cancelInstallMod', source)
- TriggerClientEvent('esx:showNotification', source, TranslateCap('not_enough_money'))
+ TriggerClientEvent("bpt_lscustom:cancelInstallMod", source)
+ TriggerClientEvent("esx:showNotification", source, TranslateCap("not_enough_money"))
end
else
if price < xPlayer.getMoney() then
- TriggerClientEvent('bpt_lscustom:installMod', source)
- TriggerClientEvent('esx:showNotification', source, TranslateCap('purchased'))
+ TriggerClientEvent("bpt_lscustom:installMod", source)
+ TriggerClientEvent("esx:showNotification", source, TranslateCap("purchased"))
xPlayer.removeMoney(price, "LSC Purchase")
else
- TriggerClientEvent('bpt_lscustom:cancelInstallMod', source)
- TriggerClientEvent('esx:showNotification', source, TranslateCap('not_enough_money'))
+ TriggerClientEvent("bpt_lscustom:cancelInstallMod", source)
+ TriggerClientEvent("esx:showNotification", source, TranslateCap("not_enough_money"))
end
end
end)
-RegisterNetEvent('bpt_lscustom:refreshOwnedVehicle', function(vehicleProps, netId)
+RegisterNetEvent("bpt_lscustom:refreshOwnedVehicle", function(vehicleProps, netId)
local src = tostring(source)
local xPlayer = ESX.GetPlayerFromId(source)
- if not vehicleProps then return print('^3[WARNING]^0 The vehicle Props could\'nt be found.') end
- if not vehicleProps.plate then return print('^3[WARNING]^0 The vehicle plate could\'nt be found.') end
- if not vehicleProps.model then return print('^3[WARNING]^0 The vehicle model could\'nt be found.') end
+ if not vehicleProps then
+ return print("^3[WARNING]^0 The vehicle Props could'nt be found.")
+ end
+ if not vehicleProps.plate then
+ return print("^3[WARNING]^0 The vehicle plate could'nt be found.")
+ end
+ if not vehicleProps.model then
+ return print("^3[WARNING]^0 The vehicle model could'nt be found.")
+ end
- if not xPlayer then return print('^3[WARNING]^0 The player could\'nt be found.') end
+ if not xPlayer then
+ return print("^3[WARNING]^0 The player could'nt be found.")
+ end
- MySQL.single('SELECT vehicle FROM owned_vehicles WHERE plate = ?', { vehicleProps.plate },
- function(result)
- if result then
- local vehicle = json.decode(result.vehicle)
- if vehicleProps.model == vehicle.model then
- MySQL.update('UPDATE owned_vehicles SET vehicle = ? WHERE plate = ?',
- { json.encode(vehicleProps), vehicleProps.plate })
- if Customs[src] then
- if Customs[src][tostring(vehicleProps.plate)] then
- Customs[src][tostring(vehicleProps.plate)].props = vehicleProps
- else
- Customs[src][tostring(vehicleProps.plate)] = { props = vehicleProps, netId = netId }
- end
+ MySQL.single("SELECT vehicle FROM owned_vehicles WHERE plate = ?", { vehicleProps.plate }, function(result)
+ if result then
+ local vehicle = json.decode(result.vehicle)
+ if vehicleProps.model == vehicle.model then
+ MySQL.update("UPDATE owned_vehicles SET vehicle = ? WHERE plate = ?", { json.encode(vehicleProps), vehicleProps.plate })
+ if Customs[src] then
+ if Customs[src][tostring(vehicleProps.plate)] then
+ Customs[src][tostring(vehicleProps.plate)].props = vehicleProps
else
- Customs[src] = {}
Customs[src][tostring(vehicleProps.plate)] = { props = vehicleProps, netId = netId }
end
- local veh = NetworkGetEntityFromNetworkId(netId)
- local Veh_State = Entity(veh).state.VehicleProperties
- if Veh_State then
- Entity(veh).state:set("VehicleProperties", vehicleProps, true)
- end
else
- print(('[^3WARNING^7] Player ^5%s^7 Attempted To upgrade with mismatching vehicle model'):format(
- xPlayer.source))
+ Customs[src] = {}
+ Customs[src][tostring(vehicleProps.plate)] = { props = vehicleProps, netId = netId }
+ end
+ local veh = NetworkGetEntityFromNetworkId(netId)
+ local Veh_State = Entity(veh).state.VehicleProperties
+ if Veh_State then
+ Entity(veh).state:set("VehicleProperties", vehicleProps, true)
end
+ else
+ print(("[^3WARNING^7] Player ^5%s^7 Attempted To upgrade with mismatching vehicle model"):format(xPlayer.source))
end
- end)
+ end
+ end)
end)
-ESX.RegisterServerCallback('bpt_lscustom:getVehiclesPrices', function(source, cb)
+ESX.RegisterServerCallback("bpt_lscustom:getVehiclesPrices", function(source, cb)
if not Vehicles then
- Vehicles = MySQL.query.await('SELECT model, price FROM vehicles')
+ Vehicles = MySQL.query.await("SELECT model, price FROM vehicles")
end
cb(Vehicles)
end)