Skip to content

Commit

Permalink
Merge pull request #690 from bitpredator/dev
Browse files Browse the repository at this point in the history
chore: (esx_vehicleshop) replace _U with TranslateCap + 🎨 Run formatter
  • Loading branch information
bitpredator authored Apr 7, 2024
2 parents 3b290c0 + 479fe59 commit e61a816
Show file tree
Hide file tree
Showing 17 changed files with 1,556 additions and 1,339 deletions.
645 changes: 388 additions & 257 deletions server-data/resources/[esx_addons]/esx_vehicleshop/client/main.lua

Large diffs are not rendered by default.

57 changes: 28 additions & 29 deletions server-data/resources/[esx_addons]/esx_vehicleshop/config.lua
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
Config = {}
Config.DrawDistance = 10
Config.MarkerColor = {r = 120, g = 120, b = 240}
Config.EnablePlayerManagement = true -- enables the actual car dealer job. You'll need esx_addonaccount, esx_billing and esx_society
Config.ResellPercentage = 50
Config = {}
Config.DrawDistance = 10
Config.MarkerColor = { r = 120, g = 120, b = 240 }
Config.EnablePlayerManagement = true -- enables the actual car dealer job. You'll need esx_addonaccount, esx_billing and esx_society
Config.ResellPercentage = 50

Config.Locale = 'en'
Config.Locale = "en"

Config.LicenseEnable = false -- require people to own drivers license when buying vehicles? Only applies if EnablePlayerManagement is disabled. Requires esx_license

-- looks like this: 'LLL NNN'
-- The maximum plate length is 8 chars (including spaces & symbols), don't go past it!
Config.PlateLetters = 3
Config.PlateNumbers = 3
Config.PlateLetters = 3
Config.PlateNumbers = 3
Config.PlateUseSpace = true

Config.OxInventory = ESX.GetConfig().OxInventory
Expand All @@ -20,47 +20,46 @@ Config.Blip = {
show = true,
Sprite = 326,
Display = 4,
Scale = 0.8
Scale = 0.8,
}

Config.Zones = {

ShopEntering = {
Pos = vector3(-33.7, -1102.0, 25.4),
Size = {x = 1.5, y = 1.5, z = 1.0},
Type = 1
Pos = vector3(-33.7, -1102.0, 25.4),
Size = { x = 1.5, y = 1.5, z = 1.0 },
Type = 1,
},

ShopInside = {
Pos = vector3(-47.5, -1097.2, 25.4),
Size = {x = 1.5, y = 1.5, z = 1.0},
Pos = vector3(-47.5, -1097.2, 25.4),
Size = { x = 1.5, y = 1.5, z = 1.0 },
Heading = -20.0,
Type = -1
Type = -1,
},

ShopOutside = {
Pos = vector3(-28.6, -1085.6, 25.5),
Size = {x = 1.5, y = 1.5, z = 1.0},
Pos = vector3(-28.6, -1085.6, 25.5),
Size = { x = 1.5, y = 1.5, z = 1.0 },
Heading = 330.0,
Type = -1
Type = -1,
},

BossActions = {
Pos = vector3(-32.0, -1114.2, 25.4),
Size = {x = 1.5, y = 1.5, z = 1.0},
Type = -1
Pos = vector3(-32.0, -1114.2, 25.4),
Size = { x = 1.5, y = 1.5, z = 1.0 },
Type = -1,
},

GiveBackVehicle = {
Pos = vector3(-18.2, -1078.5, 25.6),
Size = {x = 3.0, y = 3.0, z = 1.0},
Type = (Config.EnablePlayerManagement and 1 or -1)
Pos = vector3(-18.2, -1078.5, 25.6),
Size = { x = 3.0, y = 3.0, z = 1.0 },
Type = (Config.EnablePlayerManagement and 1 or -1),
},

ResellVehicle = {
Pos = vector3(-44.6, -1080.7, 25.6),
Size = {x = 3.0, y = 3.0, z = 1.0},
Type = 1
}

Pos = vector3(-44.6, -1080.7, 25.6),
Size = { x = 3.0, y = 3.0, z = 1.0 },
Type = 1,
},
}
42 changes: 21 additions & 21 deletions server-data/resources/[esx_addons]/esx_vehicleshop/fxmanifest.lua
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
fx_version 'cerulean'
game 'gta5'
lua54 'yes'
description 'ESX Vehicle Shop'
version '1.0.0'
fx_version("cerulean")
game("gta5")
lua54("yes")
description("ESX Vehicle Shop")
version("1.0.1")

shared_script '@es_extended/imports.lua'
shared_script("@es_extended/imports.lua")

server_scripts {
'@oxmysql/lib/MySQL.lua',
'@es_extended/locale.lua',
'locales/*.lua',
'config.lua',
'server/*.lua'
}
server_scripts({
"@oxmysql/lib/MySQL.lua",
"@es_extended/locale.lua",
"locales/*.lua",
"config.lua",
"server/*.lua",
})

client_scripts {
'@es_extended/locale.lua',
'locales/*.lua',
'config.lua',
'client/*.lua'
}
client_scripts({
"@es_extended/locale.lua",
"locales/*.lua",
"config.lua",
"client/*.lua",
})

dependency 'es_extended'
dependency("es_extended")

export 'GeneratePlate'
export("GeneratePlate")
126 changes: 63 additions & 63 deletions server-data/resources/[esx_addons]/esx_vehicleshop/locales/cs.lua
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
Locales['cs'] = {
-- global menus
['not_enough_in_society'] = 'neni zde dostatek ~r~tohoto predmetu ve spolecnosti!',
['player_cannot_hold'] = '~r~nemas dostatek volneho mista ve tvem inventari!',
['vehicle_belongs'] = 'vozidlo se značkou %s nyní patří tobě',
['broke_company'] = 'nemáš dostatek peněz na účtě společnosti',
['license_missing'] = 'nemáš ridicský prukaz!',
['buy_vehicle_shop'] = 'přeješ si zakoupit %s za $%s?',
['buy_vehicle'] = 'zakoupit vozidlo',
['car_dealer'] = 'autosalon',
['shop_awaiting_model'] = 'vozidlo se právě STAHUJE & NAČÍTÁ, čekej prosím',
['create_bill'] = 'vytvořit účtenku',
['dealer_boss'] = 'prodejce aut - Sef',
['delivered'] = 'vozidlo bylo doruceno dealerovi',
['depop_vehicle'] = 'vrátit vozidlo do garaze',
['return_provider'] = 'vratit vozidlo zprostredkovateli',
['get_rented_vehicles'] = 'vozidla na pujceni',
['no_current_vehicle'] = 'momentalne nemas zobrazene vozidlo',
['invalid_amount'] = 'neplatná částka',
['invoice_amount'] = 'castka na fakture',
['no'] = 'ne',
['yes'] = 'ano',
['no_players'] = 'žádní hráči poblíž tebe',
['not_enough_money'] = 'nemáš dostatek peněz',
['not_rental'] = 'tohle není ~r~půjčitelné vozidlo',
['not_yours'] = 'tohle auto ti nepatří',
['paid_rental'] = 'you have paid $%s for renting an vehicle with plate %s',
['paid_rental_evicted'] = 'you could not afford to pay $%s for your rented vehicle with plate %s, it has been returned to the dealership',
['pop_vehicle'] = 'vlozit vozidlo k prodeji',
['rent_vehicle'] = 'autosalon - Vozidla k pujceni',
['return_provider_menu'] = 'autosalon - Vratit vozidlo zprostredkovateli',
['rental_amount'] = 'cena pujceni',
['sell_menu'] = 'stiskni [E] pro prodani %s za $%s',
['set_vehicle_owner_rent'] = 'pujcit vozidlo',
['set_vehicle_owner_sell'] = 'prodat vozidlo',
['shop_menu'] = 'stiskni [E] pro přístup do menu',
['generic_shopitem'] = '$%s',
['vehicle_dealer'] = 'vozidlo - Prodejce aut',
['vehicle_menu'] = 'stiskni [E] pro vraceni vozidla zpet',
['vehicle_purchased'] = 'zakoupil jsi vozidlo',
['vehicle_set_owned'] = 'vozidlo %s bylo prirazeno %s',
['vehicle_set_rented'] = 'vozidlo %s bylo pujceno za %s',
['vehicle_sold_for'] = '%s bylo prodano za $%s',
['vehicle_sold_to'] = 'vozidlo se znackou %s bylo prodano za %s',
['deposit_stock'] = 'vlozit do skladu',
['take_stock'] = 'vybraz ze skladu',
['dealership_stock'] = 'sklad Autosalonu',
['amount'] = 'castka',
['quantity_invalid'] = 'to je neplatne mnozstvi',
['inventory'] = 'inventar',
['dealership'] = 'autodealer',
['dealer_customers'] = 'zakaznici dealera',
['have_withdrawn'] = 'vybral jsi x%s %s',
['have_deposited'] = 'vlozil jsi x%s %s',
['boss_actions'] = 'akce šéfa',
['invalid_vehicle'] = 'neplatné vozidlo',
Locales["cs"] = {
-- global menus
["not_enough_in_society"] = "neni zde dostatek ~r~tohoto predmetu ve spolecnosti!",
["player_cannot_hold"] = "~r~nemas dostatek volneho mista ve tvem inventari!",
["vehicle_belongs"] = "vozidlo se značkou %s nyní patří tobě",
["broke_company"] = "nemáš dostatek peněz na účtě společnosti",
["license_missing"] = "nemáš ridicský prukaz!",
["buy_vehicle_shop"] = "přeješ si zakoupit %s za $%s?",
["buy_vehicle"] = "zakoupit vozidlo",
["car_dealer"] = "autosalon",
["shop_awaiting_model"] = "vozidlo se právě STAHUJE & NAČÍTÁ, čekej prosím",
["create_bill"] = "vytvořit účtenku",
["dealer_boss"] = "prodejce aut - Sef",
["delivered"] = "vozidlo bylo doruceno dealerovi",
["depop_vehicle"] = "vrátit vozidlo do garaze",
["return_provider"] = "vratit vozidlo zprostredkovateli",
["get_rented_vehicles"] = "vozidla na pujceni",
["no_current_vehicle"] = "momentalne nemas zobrazene vozidlo",
["invalid_amount"] = "neplatná částka",
["invoice_amount"] = "castka na fakture",
["no"] = "ne",
["yes"] = "ano",
["no_players"] = "žádní hráči poblíž tebe",
["not_enough_money"] = "nemáš dostatek peněz",
["not_rental"] = "tohle není ~r~půjčitelné vozidlo",
["not_yours"] = "tohle auto ti nepatří",
["paid_rental"] = "you have paid $%s for renting an vehicle with plate %s",
["paid_rental_evicted"] = "you could not afford to pay $%s for your rented vehicle with plate %s, it has been returned to the dealership",
["pop_vehicle"] = "vlozit vozidlo k prodeji",
["rent_vehicle"] = "autosalon - Vozidla k pujceni",
["return_provider_menu"] = "autosalon - Vratit vozidlo zprostredkovateli",
["rental_amount"] = "cena pujceni",
["sell_menu"] = "stiskni [E] pro prodani %s za $%s",
["set_vehicle_owner_rent"] = "pujcit vozidlo",
["set_vehicle_owner_sell"] = "prodat vozidlo",
["shop_menu"] = "stiskni [E] pro přístup do menu",
["generic_shopitem"] = "$%s",
["vehicle_dealer"] = "vozidlo - Prodejce aut",
["vehicle_menu"] = "stiskni [E] pro vraceni vozidla zpet",
["vehicle_purchased"] = "zakoupil jsi vozidlo",
["vehicle_set_owned"] = "vozidlo %s bylo prirazeno %s",
["vehicle_set_rented"] = "vozidlo %s bylo pujceno za %s",
["vehicle_sold_for"] = "%s bylo prodano za $%s",
["vehicle_sold_to"] = "vozidlo se znackou %s bylo prodano za %s",
["deposit_stock"] = "vlozit do skladu",
["take_stock"] = "vybraz ze skladu",
["dealership_stock"] = "sklad Autosalonu",
["amount"] = "castka",
["quantity_invalid"] = "to je neplatne mnozstvi",
["inventory"] = "inventar",
["dealership"] = "autodealer",
["dealer_customers"] = "zakaznici dealera",
["have_withdrawn"] = "vybral jsi x%s %s",
["have_deposited"] = "vlozil jsi x%s %s",
["boss_actions"] = "akce šéfa",
["invalid_vehicle"] = "neplatné vozidlo",

-- sold vehicles
['boss_sold'] = 'seznam prodaných vozidel',
['customer_client'] = 'jméno zákazníka',
['customer_model'] = 'model auta',
['customer_plate'] = 'značka auta',
['customer_soldby'] = 'prodáno zaměstnancem',
['customer_date'] = 'datum',
-- sold vehicles
["boss_sold"] = "seznam prodaných vozidel",
["customer_client"] = "jméno zákazníka",
["customer_model"] = "model auta",
["customer_plate"] = "značka auta",
["customer_soldby"] = "prodáno zaměstnancem",
["customer_date"] = "datum",
}
Loading

0 comments on commit e61a816

Please sign in to comment.