From 5e91afec468727ec52f39d5cd2d320adcf7e33d8 Mon Sep 17 00:00:00 2001 From: Court-Room-Gaming <111709947+Court-Room-Gaming@users.noreply.github.com> Date: Wed, 3 Jul 2024 00:35:31 -0700 Subject: [PATCH] Update vehicles-lua.bat This update allows you to drop the batt file in your [Cars] folder and it will search though your sub folders making a easier and quicker output.lua --- vehicles-lua.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vehicles-lua.bat b/vehicles-lua.bat index 37eb583..edf4c11 100644 --- a/vehicles-lua.bat +++ b/vehicles-lua.bat @@ -5,10 +5,10 @@ set LUA_FILE=output.lua echo "return {" > %LUA_FILE% -for %%f in (*.ytd) do ( +for /R %%f in (*.ytd) do ( set name=%%~nf set name=!name:_= ! - echo " { model = '!name!', name = '!name!', brand = 'somebrand', price = 125000, category = 'compacts', type = 'automobile', shop = 'pdm' }," >> %LUA_FILE% + echo " { model = '!name!', name = '!name!', brand = 'somebrand', price = 125000, category = 'compacts', type = 'automobile', shop = 'pdm' }," >> %LUA_FILE% ) echo "}" >> %LUA_FILE%