mirror of
https://github.com/SaavageBueno/Qb-Core-vehicle-shared-lua.git
synced 2026-03-31 06:34:13 -04:00
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
17 lines
371 B
Batchfile
17 lines
371 B
Batchfile
@echo off
|
|
setlocal EnableDelayedExpansion
|
|
|
|
set LUA_FILE=output.lua
|
|
|
|
echo "return {" > %LUA_FILE%
|
|
|
|
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 "}" >> %LUA_FILE%
|
|
|
|
echo "Done."
|