mirror of
https://github.com/SaavageBueno/Qb-Core-vehicle-shared-lua.git
synced 2026-03-31 06:34:13 -04:00
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
This commit is contained in:
committed by
GitHub
parent
28d1f6ef9c
commit
5e91afec46
@@ -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%
|
||||
|
||||
Reference in New Issue
Block a user