diff --git a/client/main.lua b/client/main.lua index 9a6df409..6bba4d29 100644 --- a/client/main.lua +++ b/client/main.lua @@ -186,6 +186,8 @@ function OpenShopMenu() TriggerServerEvent('esx_vehicleshop:setVehicleOwned', vehicleProps) end + ESX.ShowNotification(_U('vehicle_purchased')) + end) FreezeEntityPosition(playerPed, false) @@ -362,6 +364,9 @@ function OpenResellerMenu() if Config.EnableOwnedVehicles then TriggerServerEvent('esx_vehicleshop:setVehicleOwnedPlayerId', GetPlayerServerId(closestPlayer), vehicleProps) + ESX.ShowNotification(_U('vehicle_set_owned', vehicleProps.plate, GetPlayerName(closestPlayer))) + else + ESX.ShowNotification(_U('vehicle_sold_to', vehicleProps.plate, GetPlayerName(closestPlayer))) end end @@ -401,6 +406,8 @@ function OpenResellerMenu() if Config.EnableOwnedVehicles then TriggerServerEvent('esx_vehicleshop:setVehicleOwnedPlayerId', GetPlayerServerId(closestPlayer), vehicleProps) end + + ESX.ShowNotification(_U('vehicle_set_rented', vehicleProps.plate, GetPlayerName(closestPlayer))) TriggerServerEvent('esx_vehicleshop:setVehicleForAllPlayers', vehicleProps, Config.Zones.ShopInside.Pos.x, Config.Zones.ShopInside.Pos.y, Config.Zones.ShopInside.Pos.z, 5.0) end diff --git a/locales/de.lua b/locales/de.lua index bcf96d8a..fa06f1db 100644 --- a/locales/de.lua +++ b/locales/de.lua @@ -1,47 +1,50 @@ Locales['de'] = { --Global menus - ['car_dealer'] = 'Autohändler', - ['buy'] = 'kaufen', - ['for'] = 'für $', - ['yes'] = 'ja', - ['no'] = 'nein', - ['shop_menu'] = 'Drücke ~INPUT_CONTEXT~ um das Menü zu öffnen', - ['vehicle_purchased'] = 'du hast ein Fahrzeug gekauft', + ['belongs'] = ' gehört jetzt dir', + ['bleach amount'] = 'Betrag zum waschen', ['broke_company'] = 'du hast nicht genug Geld auf dem Firmenkonto', - ['not_enough_money'] = 'du hast nicht genug Geld', - ['pop_vehicle'] = 'Fahrzeug holen', - ['depop_vehicle'] = 'Fahrzeug zurückholen', - ['create_bill'] = 'Rechnung erstellen', - ['get_rented_vehicles'] = 'Mietwagen', - ['set_vehicle_owner_sell'] = 'Fahrzeuge [Verkauf]', - ['set_vehicle_owner_rent'] = 'Fahrzeug zuweisen [Mieten]', - ['invoice_amount'] = 'Rechnungsbetrag', - ['invalid_amount'] = 'ungültiger Betrag', - ['no_players'] = 'keine Spieler in der Nähe', - ['rental_amount'] = 'Mietbetrag', - ['personal_vehicle'] = 'Persönliches Fahrzeug', - ['vehicle_dealer'] = 'Autohändler', - ['rent_vehicle'] = 'Autohändler - Fahrzeuge zum vermieten', - ['dealer_boss'] = 'Autohändler - Boss', + ['buy'] = 'kaufen', ['buy_vehicle'] = 'Fahrzeug kaufen', - ['withdraw_money'] = 'Firmengeld abheben', + ['car_dealer'] = 'Autohändler', + ['create_bill'] = 'Rechnung erstellen', + ['dealer_boss'] = 'Autohändler - Boss', + ['delivered'] = 'Fahrzeug zum Händler ~g~gebracht~s~', + ['depop_vehicle'] = 'Fahrzeug zurückholen', + ['deposit_amount'] = 'Einzahlbetrag', ['deposit_money'] = 'Geld einzahlen', + ['experianced'] = 'erfahren', + ['for'] = 'für $', + ['get_rented_vehicles'] = 'Mietwagen', + ['invalid_amount'] = 'ungültiger Betrag', + ['invoice_amount'] = 'Rechnungsbetrag', + ['leaving'] = 'verlasse persönnliches Fahrzeug', + ['no'] = 'nein', + ['no_players'] = 'keine Spieler in der Nähe', + ['not_enough_money'] = 'du hast nicht genug Geld', + ['not_rental'] = 'dies ist kein ~r~Mietwagen~s~', + ['not_yours'] = 'dieses Fahrzeug gehört dir nicht', + ['paid_rental'] = 'du ~g~bezahlst~s~ für den Mietwagen : ~g~$', + ['personal_vehicle'] = 'Persönliches Fahrzeug', + ['pop_vehicle'] = 'Fahrzeug holen', + ['price'] = ' für den Betrag $', + ['recruit'] = 'Neuling', + ['rent_vehicle'] = 'Autohändler - Fahrzeuge zum vermieten', + ['rental_amount'] = 'Mietbetrag', + ['sell_menu'] = 'Drücke ~INPUT_CONTEXT~ zum verkaufen ', + ['set_vehicle_owner_rent'] = 'Fahrzeug zuweisen [Mieten]', + ['set_vehicle_owner_sell'] = 'Fahrzeuge [Verkauf]', + ['shop_menu'] = 'Drücke ~INPUT_CONTEXT~ um das Menü zu öffnen', + ['the_boss'] = 'boss', + ['vehicle'] = 'Fahrzeug ', + ['vehicle_dealer'] = 'Autohändler', + ['vehicle_menu'] = 'Drücke ~INPUT_CONTEXT~ um ein Fahrzeug zu übergeben', + ['vehicle_purchased'] = 'du hast ein Fahrzeug gekauft', + ['vehicle_set_owned'] = 'Vehicle ~y~%s~s~ has been assigned to ~b~%s~s~', + ['vehicle_set_rented'] = 'Vehicle ~y~%s~s~ has been rented to ~b~%s~s~', + ['vehicle_sold'] = 'Fahrzeug ~g~verkauft~s~', + ['vehicle_sold_to'] = 'Vehicle ~y~%s~s~ sold to ~b~%s~s~', ['wash_money'] = 'Geld waschen', ['withdraw_amount'] = 'Abhebebetrag', - ['deposit_amount'] = 'Einzahlbetrag', - ['bleach amount'] = 'Betrag zum waschen', - ['vehicle_menu'] = 'Drücke ~INPUT_CONTEXT~ um ein Fahrzeug zu übergeben', - ['sell_menu'] = 'Drücke ~INPUT_CONTEXT~ zum verkaufen ', - ['price'] = ' für den Betrag $', - ['delivered'] = 'Fahrzeug zum Händler ~g~gebracht~s~', - ['not_rental'] = 'dies ist kein ~r~Mietwagen~s~', - ['vehicle_sold'] = 'Fahrzeug ~g~verkauft~s~', - ['not_yours'] = 'dieses Fahrzeug gehört dir nicht', - ['vehicle'] = 'Fahrzeug ', - ['belongs'] = ' gehört jetzt dir', - ['leaving'] = 'verlasse persönnliches Fahrzeug', - ['paid_rental'] = 'du ~g~bezahlst~s~ für den Mietwagen : ~g~$', - ['recruit'] = 'Neuling', - ['experianced'] = 'erfahren', - ['the_boss'] = 'boss', + ['withdraw_money'] = 'Firmengeld abheben', + ['yes'] = 'ja', } diff --git a/locales/en.lua b/locales/en.lua index 867b0ae5..a3bb9a8c 100644 --- a/locales/en.lua +++ b/locales/en.lua @@ -1,47 +1,50 @@ Locales['en'] = { --Global menus - ['car_dealer'] = 'car Dealership', - ['buy'] = 'buy', - ['for'] = 'for $', - ['yes'] = 'yes', - ['no'] = 'no', - ['shop_menu'] = 'press ~INPUT_CONTEXT~ to access the menu', - ['vehicle_purchased'] = 'you bought a vehicle', + ['belongs'] = ' now belongs to you', + ['bleach amount'] = 'amount to bleach', ['broke_company'] = 'you do not have enough money in the company account', - ['not_enough_money'] = 'you do not have enough money', - ['pop_vehicle'] = 'exit vehicle', - ['depop_vehicle'] = 'return vehicle', - ['create_bill'] = 'create invoice', - ['get_rented_vehicles'] = 'vehicles for rent', - ['set_vehicle_owner_sell'] = 'vehicles for [Sale]', - ['set_vehicle_owner_rent'] = 'assign vehicle [Location]', - ['invoice_amount'] = 'invoice amount', - ['invalid_amount'] = 'invalid amount', - ['no_players'] = 'no players nearby', - ['rental_amount'] = 'rental amount', - ['personal_vehicle'] = 'personal vehicle', - ['vehicle_dealer'] = 'vehicle - Car Dealer', - ['rent_vehicle'] = 'car Dealer - Vehicles for rent', - ['dealer_boss'] = 'car Dealer - Boss', + ['buy'] = 'buy', ['buy_vehicle'] = 'buy vehicle', - ['withdraw_money'] = 'remove company money', + ['car_dealer'] = 'car Dealership', + ['create_bill'] = 'create invoice', + ['dealer_boss'] = 'car Dealer - Boss', + ['delivered'] = 'vehicle ~g~delivered~s~ to the dealer', + ['depop_vehicle'] = 'return vehicle', + ['deposit_amount'] = 'deposit amount', ['deposit_money'] = 'deposit money', + ['experianced'] = 'experianced', + ['for'] = 'for $', + ['get_rented_vehicles'] = 'vehicles for rent', + ['invalid_amount'] = 'invalid amount', + ['invoice_amount'] = 'invoice amount', + ['leaving'] = 'leaving a personal vehicle', + ['no'] = 'no', + ['no_players'] = 'no players nearby', + ['not_enough_money'] = 'you do not have enough money', + ['not_rental'] = 'this is not a ~r~rental vehicle~s~', + ['not_yours'] = 'this vehicle does not belong to you', + ['paid_rental'] = 'you have ~g~payed~s~ for your vehicle rental : ~g~$', + ['personal_vehicle'] = 'personal vehicle', + ['pop_vehicle'] = 'exit vehicle', + ['price'] = ' for the amount of $', + ['recruit'] = 'recruit', + ['rent_vehicle'] = 'car Dealer - Vehicles for rent', + ['rental_amount'] = 'rental amount', + ['sell_menu'] = 'press ~INPUT_CONTEXT~ to sell ', + ['set_vehicle_owner_rent'] = 'assign vehicle [Location]', + ['set_vehicle_owner_sell'] = 'vehicles for [sale]', + ['shop_menu'] = 'press ~INPUT_CONTEXT~ to access the menu', + ['the_boss'] = 'boss', + ['vehicle'] = 'vehicle ', + ['vehicle_dealer'] = 'vehicle - Car Dealer', + ['vehicle_menu'] = 'press ~INPUT_CONTEXT~ to make your vehicle', + ['vehicle_purchased'] = 'you bought a vehicle', + ['vehicle_set_owned'] = 'Vehicle ~y~%s~s~ has been assigned to ~b~%s~s~', + ['vehicle_set_rented'] = 'Vehicle ~y~%s~s~ has been rented to ~b~%s~s~', + ['vehicle_sold'] = 'vehicle ~g~sold~s~', + ['vehicle_sold_to'] = 'Vehicle ~y~%s~s~ sold to ~b~%s~s~' ['wash_money'] = 'money laundering', ['withdraw_amount'] = 'amount of withdrawal', - ['deposit_amount'] = 'deposit amount', - ['bleach amount'] = 'amount to bleach', - ['vehicle_menu'] = 'press ~INPUT_CONTEXT~ to make your vehicle', - ['sell_menu'] = 'press ~INPUT_CONTEXT~ to sell ', - ['price'] = ' for the amount of $', - ['delivered'] = 'vehicle ~g~delivered~s~ to the dealer', - ['not_rental'] = 'this is not a ~r~rental vehicle~s~', - ['vehicle_sold'] = 'vehicle ~g~sold~s~', - ['not_yours'] = 'this vehicle does not belong to you', - ['vehicle'] = 'vehicle ', - ['belongs'] = ' now belongs to you', - ['leaving'] = 'leaving a personal vehicle', - ['paid_rental'] = 'you have ~g~payed~s~ for your vehicle rental: ~g~$', - ['recruit'] = 'recruit', - ['experianced'] = 'experianced', - ['the_boss'] = 'boss', + ['withdraw_money'] = 'remove company money', + ['yes'] = 'yes', } diff --git a/locales/fr.lua b/locales/fr.lua index 55c7fd8c..628610c0 100644 --- a/locales/fr.lua +++ b/locales/fr.lua @@ -1,47 +1,50 @@ Locales['fr'] = { --Global menus - ['car_dealer'] = 'Concessionnaire', - ['buy'] = 'Acheter', - ['for'] = 'pour $', - ['yes'] = 'Oui', - ['no'] = 'Non', - ['shop_menu'] = 'Appuez sur ~INPUT_CONTEXT~ pour accéder au menu', - ['vehicle_purchased'] = 'Vous avez acheté un véhicule', + ['belongs'] = 'vous appartient désormais', + ['bleach amount'] = 'Montant à blanchir', ['broke_company'] = 'Vous n\'avez pas assez d\'argent sur votre compte société', - ['not_enough_money'] = 'Vous n\'avez pas assez d\'argent', - ['pop_vehicle'] = 'Sortir véhicule', - ['depop_vehicle'] = 'Rentrer véhicule', - ['create_bill'] = 'Créer facture', - ['get_rented_vehicles'] = 'Véhicules en location', - ['set_vehicle_owner_sell'] = 'Attribuer véhicule [Vente]', - ['set_vehicle_owner_rent'] = 'Attribuer véhicule [Location]', - ['invoice_amount'] = 'Montant de la facture', - ['invalid_amount'] = 'Montant invalide', - ['no_players'] = 'Aucun joueur à proximité', - ['rental_amount'] = 'Montant de la location', - ['personal_vehicle'] = 'Véhicule personnel', - ['vehicle_dealer'] = 'Concessionnaire - Véhicules', - ['rent_vehicle'] = 'Concessionnaire - Véhicules en location', - ['dealer_boss'] = 'Concessionnaire - Patron', + ['buy'] = 'Acheter', ['buy_vehicle'] = 'Acheter véhicule', - ['withdraw_money'] = 'Retirer argent société', + ['car_dealer'] = 'Concessionnaire', + ['create_bill'] = 'Créer facture', + ['dealer_boss'] = 'Concessionnaire - Patron', + ['delivered'] = 'Véhicule ~g~rendu~s~ au concessionnaire', + ['depop_vehicle'] = 'Rentrer véhicule', + ['deposit_amount'] = 'Montant du dépôt', ['deposit_money'] = 'Déposer argent', + ['experianced'] = 'Experimente', + ['for'] = 'pour $', + ['get_rented_vehicles'] = 'Véhicules en location', + ['invalid_amount'] = 'Montant invalide', + ['invoice_amount'] = 'Montant de la facture', + ['leaving'] = 'Sortir un véhicule personnel', + ['no'] = 'Non', + ['no_players'] = 'Aucun joueur à proximité', + ['not_enough_money'] = 'Vous n\'avez pas assez d\'argent', + ['not_rental'] = 'Ce n\'est pas un ~r~véhicule de location~s~', + ['not_yours'] = 'Ce véhicule ne vous appartient pas', + ['paid_rental'] = 'Vous avez ~g~payé~s~ votre location de véhicule : ~g~$', + ['personal_vehicle'] = 'Véhicule personnel', + ['pop_vehicle'] = 'Sortir véhicule', + ['price'] = 'au prix de $', + ['recruit'] = 'Recrue', + ['rent_vehicle'] = 'Concessionnaire - Véhicules en location', + ['rental_amount'] = 'Montant de la location', + ['sell_menu'] = 'Appuez sur ~INPUT_CONTEXT~ pour vendre', + ['set_vehicle_owner_rent'] = 'Attribuer véhicule [Location]', + ['set_vehicle_owner_sell'] = 'Attribuer véhicule [Vente]', + ['shop_menu'] = 'Appuez sur ~INPUT_CONTEXT~ pour accéder au menu', + ['the_boss'] = 'Patron', + ['vehicle'] = 'Le véhicule', + ['vehicle_dealer'] = 'Concessionnaire - Véhicules', + ['vehicle_menu'] = 'Appuez sur ~INPUT_CONTEXT~ pour rendre votre véhicule', + ['vehicle_purchased'] = 'Vous avez acheté un véhicule', + ['vehicle_set_owned'] = 'Le véhicule ~y~%s~s~ a été attribué à ~b~%s~s~', + ['vehicle_set_rented'] = 'Le véhicule ~y~%s~s~ a été loué à ~b~%s~s~', + ['vehicle_sold'] = 'Véhicule ~g~vendu~s~', + ['vehicle_sold_to'] = 'Véhicule ~y~%s~s~ vendu à ~b~%s~s~', ['wash_money'] = 'Blanchir argent', ['withdraw_amount'] = 'Montant du retrait', - ['deposit_amount'] = 'Montant du dépôt', - ['bleach amount'] = 'Montant à blanchir', - ['vehicle_menu'] = 'Appuez sur ~INPUT_CONTEXT~ pour rendre votre véhicule', - ['sell_menu'] = 'Appuez sur ~INPUT_CONTEXT~ pour vendre', - ['price'] = 'au prix de $', - ['delivered'] = 'Véhicule ~g~rendu~s~ au concessionnaire', - ['not_rental'] = 'Ce n\'est pas un ~r~véhicule de location~s~', - ['vehicle_sold'] = 'Véhicule ~g~vendu~s~', - ['not_yours'] = 'Ce véhicule ne vous appartient pas', - ['vehicle'] = 'Le véhicule', - ['belongs'] = 'vous appartient désormais', - ['leaving'] = 'Sortir un véhicule personnel', - ['paid_rental'] = 'Vous avez ~g~payé~s~ votre location de véhicule : ~g~$', - ['recruit'] = 'Recrue', - ['experianced'] = 'Experimente', - ['the_boss'] = 'Patron', + ['withdraw_money'] = 'Retirer argent société', + ['yes'] = 'Oui', }