Skip to content

Commit

Permalink
chore: complete the code restructuring work
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Dec 9, 2024
1 parent 4d117f3 commit 83bb286
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 43 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
local model, coords, heading
local vehicle = CreateVehicle(model, GetEntityCoords(coords), GetEntityHeading(heading), 1, 0, false, false)
local vehicle

SetVehicleNeedsToBeHotwired(vehicle, false)
SetVehicleHasBeenOwnedByPlayer(vehicle, true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ CreateThread(function()
SetBlipAsShortRange(blip, true)

BeginTextCommandSetBlipName("STRING")
AddTextComponentSubstringPlayerName(TranslateCap("parking_blip_name"))
EndTextCommandSetBlipName(blip)
end

Expand Down
40 changes: 3 additions & 37 deletions server-data/resources/[esx_addons]/esx_garage/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ Config.Markers = {
Config.Garages = {
VespucciBoulevard = {
EntryPoint = {
x = -285.2,
y = -886.5,
z = 31.0,
x = 394.865936,
y = -1637.657104,
z = 29.279907,
},
Sprite = 357,
Scale = 0.8,
Expand All @@ -64,40 +64,6 @@ Config.Impounds = {
Colour = 1,
Cost = 3000,
},
PaletoBay = {
GetOutPoint = {
x = -211.4,
y = 6206.5,
z = 31.4,
},
SpawnPoint = {
x = -204.6,
y = 6221.6,
z = 30.5,
heading = 227.2,
},
Sprite = 524,
Scale = 0.8,
Colour = 1,
Cost = 3000,
},
SandyShores = {
GetOutPoint = {
x = 1728.2,
y = 3709.3,
z = 33.2,
},
SpawnPoint = {
x = 1722.7,
y = 3713.6,
z = 33.2,
heading = 19.9,
},
Sprite = 524,
Scale = 0.8,
Colour = 1,
Cost = 3000,
},
}

exports("getGarages", function()
Expand Down
3 changes: 2 additions & 1 deletion server-data/resources/[esx_addons]/esx_garage/locales/en.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
Locales["en"] = {
["parking_blip_name"] = "Garage",
["Impound_blip_name"] = "Impound",
["access_Impound"] = "press [E] to access the impound.",
["not_owning_veh"] = "You do not own this vehicle!",
["veh_released"] = "Successfully Retrieved Vehicle.",
["not_owning_veh"] = "You do not own this vehicle!",
["veh_Impound_released"] = "Successfully Retrieved Vehicle From Impound.",
["veh_stored"] = "Successfully Stored Vehicle",
["veh_impounded"] = "Impounded Vehicle",
Expand Down
3 changes: 2 additions & 1 deletion server-data/resources/[esx_addons]/esx_garage/locales/it.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
Locales["it"] = {
["parking_blip_name"] = "Parcheggio del sequestro",
["Impound_blip_name"] = "Sequestro",
["access_Impound"] = "premi [E] per accedere al sequestro.",
["not_owning_veh"] = "non possiedi questo veicolo!",
["veh_released"] = " Veicolo recuperato con successo. ",
["not_owning_veh"] = "non possiedi questo veicolo!",
["veh_Impound_released"] = " Veicolo recuperato con successo dal sequestro. ",
["veh_stored"] = " Veicolo depositato con successo ",
["veh_impounded"] = " Veicolo sequestrato ",
Expand Down
5 changes: 3 additions & 2 deletions server-data/resources/[esx_addons]/esx_garage/nui/ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
</div>

<div id="menu">

<div class="content">
<h2>No Vehicles Stored Here.</h2>
<h2>Nessun veicolo presente.</h2>
<div class="vehicle-list"></div>
</div>

<div class="impounded_content">
<h2>No Impounded Vehicles.</h2>
<h2>Nessun veicolo presente.</h2>
<div class="vehicle-list"></div>
</div>
</div>
Expand Down

0 comments on commit 83bb286

Please sign in to comment.