mirror of
https://github.com/SaavageBueno/Qb-Core-vehicle-shared-lua.git
synced 2026-08-11 04:15:44 -04:00
Create vehicles-lua.bat
This commit is contained in:
committed by
GitHub
parent
5070727ca3
commit
58c413bd80
24
vehicles-lua.bat
Normal file
24
vehicles-lua.bat
Normal file
@@ -0,0 +1,24 @@
|
||||
@echo off
|
||||
setlocal EnableDelayedExpansion
|
||||
|
||||
set LUA_FILE=output.lua
|
||||
|
||||
echo "return {" > %LUA_FILE%
|
||||
|
||||
for %%f in (*.ytd) do (
|
||||
set name=%%~nf
|
||||
set name=!name:_= !
|
||||
echo "['!name!'] = {" >> %LUA_FILE%
|
||||
echo " ['name'] = '!name!', " >> %LUA_FILE%
|
||||
echo " ['model'] = '!name!', " >> %LUA_FILE%
|
||||
echo " ['price'] = 20000, " >> %LUA_FILE%
|
||||
echo " ['category'] = 'compacts', " >> %LUA_FILE%
|
||||
echo " ['categoryLabel'] = 'Compacts', " >> %LUA_FILE%
|
||||
echo " ['hash'] = `!name!`, " >> %LUA_FILE%
|
||||
echo " ['shop'] = 'pdm', " >> %LUA_FILE%
|
||||
echo "}, " >> %LUA_FILE%
|
||||
)
|
||||
|
||||
echo "}" >> %LUA_FILE%
|
||||
|
||||
echo "Done."
|
||||
Reference in New Issue
Block a user