Created
November 30, 2025 10:40
-
-
Save srlemke/d85a372e22542628d8c49a4133638b15 to your computer and use it in GitHub Desktop.
Raceroom: Returns brand name to use car brand icons on simhub dashes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ///You still need to add the icons to the dash images. | |
| car = lcase($prop('CarModel')) | |
| if (car.includes('bmw')) { | |
| return 'BMW'; | |
| } | |
| if (car.includes('mercedes')) { | |
| return 'mercedes'; | |
| } | |
| if (car.includes('amg')) { | |
| return 'mercedes'; | |
| } | |
| if (car.includes('ferrari')) { | |
| return 'Ferrari'; | |
| } | |
| if (car.includes('mclaren')) { | |
| return 'McLaren'; | |
| } | |
| if (car.includes('romeo')) { | |
| return 'alfa-romeo'; | |
| } | |
| if (car.includes('nissan')) { | |
| return 'nissan'; | |
| } | |
| if (car.includes('praga')) { | |
| return 'praga'; | |
| } | |
| if (car.includes('lamborg')) { | |
| return 'Lamborghini'; | |
| } | |
| if (car.includes('ford')) { | |
| return 'Ford'; | |
| } | |
| if (car.includes('porsche')) { | |
| return 'Porsche'; | |
| } | |
| if (car.includes('toyota')) { | |
| return 'Toyota'; | |
| } | |
| if (car.includes('aquila')) { | |
| return 'aquilla'; | |
| } | |
| if (car.includes('cadillac')) { | |
| return 'cadillac'; | |
| } | |
| if (car.includes('ruf')) { | |
| return 'ruf'; | |
| } | |
| if (car.includes('p4-5')) { | |
| return 'p45'; | |
| } | |
| if (car.includes('alpina')) { | |
| return 'alpina'; | |
| } | |
| if (car.includes('audi')) { | |
| return 'audi'; | |
| } | |
| if (car.includes('chevrolet')) { | |
| return 'chevrolet'; | |
| } | |
| if (car.includes('corvette')) { | |
| return 'chevrolet'; | |
| } | |
| if (car.includes('cupra')) { | |
| return 'cupra'; | |
| } | |
| if (car.includes('honda')) { | |
| return 'honda'; | |
| } | |
| if (car.includes('hyundai')) { | |
| return 'hyundai'; | |
| } | |
| if (car.includes('ktm')) { | |
| return 'ktm'; | |
| } | |
| if (car.includes('lotus')) { | |
| return 'lotus'; | |
| } | |
| if (car.includes('lynk')) { | |
| return 'lynk'; | |
| } | |
| if (car.includes('mazda')) { | |
| return 'mazda'; | |
| } | |
| if (car.includes('nsu')) { | |
| return 'nsu'; | |
| } | |
| if (car.includes('opel')) { | |
| return 'opel'; | |
| } | |
| if (car.includes('pagani')) { | |
| return 'pagani'; | |
| } | |
| if (car.includes('radical')) { | |
| return 'radical'; | |
| } | |
| if (car.includes('renault')) { | |
| return 'renault'; | |
| } | |
| if (car.includes('tatuus')) { | |
| return 'tatuus'; | |
| } | |
| if (car.includes('volkswagen')) { | |
| return 'volkswagen'; | |
| } | |
| if (car.includes('volvo')) { | |
| return 'volvo'; | |
| } | |
| if (car.includes('bentley')) { | |
| return 'bentley'; | |
| } | |
| if (car.includes('carlsson')) { | |
| return 'carlsson'; | |
| } | |
| if (car.includes('fabcar')) { | |
| return 'fabcar'; | |
| } | |
| if (car.includes('georg')) { | |
| return 'grorg'; | |
| } | |
| if (car.includes('gumpert')) { | |
| return 'gumpert'; | |
| } | |
| if (car.includes('koenigsegg')) { | |
| return 'koenigsegg'; | |
| } | |
| if (car.includes('lada')) { | |
| return 'lada'; | |
| } | |
| if (car.includes('saleen')) { | |
| return 'saleen'; | |
| } | |
| if (car.includes('zakspeed')) { | |
| return 'zakspeed'; | |
| } | |
| if (car.includes('crosslé')) { | |
| return 'crossle'; | |
| } | |
| if (car.includes('truck')) { | |
| return 'truck'; | |
| } | |
| return 'raceroom'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment