Auto-sync 2026-04-15 23:50
This commit is contained in:
parent
c7b33907a3
commit
55c7ded0f0
@ -28,6 +28,7 @@ files {
|
|||||||
'nui/script.js',
|
'nui/script.js',
|
||||||
'nui/vue.js',
|
'nui/vue.js',
|
||||||
'nui/fonts/*.*',
|
'nui/fonts/*.*',
|
||||||
|
'nui/vehicle_images.js',
|
||||||
'nui/images/*.*',
|
'nui/images/*.*',
|
||||||
'nui/images/logo/*.*',
|
'nui/images/logo/*.*',
|
||||||
'nui/images/cars/*.*',
|
'nui/images/cars/*.*',
|
||||||
|
|||||||
@ -314,7 +314,50 @@
|
|||||||
|
|
||||||
</div><!-- /#app -->
|
</div><!-- /#app -->
|
||||||
|
|
||||||
<script src="vehicle_images.js"></script>
|
<script>
|
||||||
|
// ═══════════════════════════════════════════════════════════════
|
||||||
|
// MercyV Garage – Fahrzeugbilder Konfiguration
|
||||||
|
// Modellname → Bild-URL (lokal oder extern)
|
||||||
|
//
|
||||||
|
// Beispiele:
|
||||||
|
// 'police3': 'images/cars/police3.png' (lokale Datei)
|
||||||
|
// 'ambulance': 'https://example.com/amb.png' (externe URL)
|
||||||
|
// 'gbpolbisonhf': 'images/cars/gbpolbisonhf.png'
|
||||||
|
// ═══════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
|
const VehicleImages = {
|
||||||
|
// ── Polizei ───────────────────────────────────────────────
|
||||||
|
'police': 'images/cars/police.png',
|
||||||
|
'police2': 'images/cars/police2.png',
|
||||||
|
'police3': 'images/cars/police3.png',
|
||||||
|
'police4': 'images/cars/police4.png',
|
||||||
|
'gbpolbisonhf': 'images/cars/gbpolbisonhf.png',
|
||||||
|
'gbpolbisonstx': 'images/cars/gbpolbisonstx.png',
|
||||||
|
|
||||||
|
// ── Ambulanz ──────────────────────────────────────────────
|
||||||
|
'ambulance': 'images/cars/ambulance.png',
|
||||||
|
'frogger': 'images/cars/frogger.png',
|
||||||
|
|
||||||
|
// ── Eigene Fahrzeuge (hier ergänzen) ──────────────────────
|
||||||
|
// 'meinauto': 'images/cars/meinauto.png',
|
||||||
|
};
|
||||||
|
|
||||||
|
// Standardbild wenn kein Eintrag gefunden
|
||||||
|
const DefaultVehicleImage = 'images/defaultimage.png';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gibt die Bild-URL für ein Fahrzeugmodell zurück.
|
||||||
|
* Sucht zuerst nach dem Modellnamen, dann nach dem Anzeigenamen (displayName).
|
||||||
|
*/
|
||||||
|
function getVehicleImage(modelname, displayName) {
|
||||||
|
const model = (modelname || '').toLowerCase().trim();
|
||||||
|
const display = (displayName || '').toLowerCase().trim();
|
||||||
|
return VehicleImages[model]
|
||||||
|
|| VehicleImages[display]
|
||||||
|
|| DefaultVehicleImage;
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
<script src="script.js"></script>
|
<script src="script.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
2
[mercyv]
2
[mercyv]
@ -1 +1 @@
|
|||||||
Subproject commit 6164274576cd7eaedd4a8fe72e7ffd5366f03d00
|
Subproject commit 8ab63766763c990d41a5b38d4b21638ca45aff80
|
||||||
Loading…
x
Reference in New Issue
Block a user