mirror of
https://github.com/SaavageBueno/Qb-Core-vehicle-shared-lua.git
synced 2026-03-31 06:34:13 -04:00
Added .sh Version to work with Unix
This commit is contained in:
15
luacreator.sh
Normal file
15
luacreator.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
LUA_FILE="output.lua"
|
||||
|
||||
echo "return {" > "$LUA_FILE"
|
||||
|
||||
find . -name "*.ytd" | while read -r file; do
|
||||
name=$(basename "$file" .ytd)
|
||||
name=$(echo "$name" | sed 's/_/ /g')
|
||||
echo " { model = '$name', name = '$name', brand = 'somebrand', price = 125000, category = 'compacts', type = 'automobile', shop = 'pdm' }," >> "$LUA_FILE"
|
||||
done
|
||||
|
||||
echo "}" >> "$LUA_FILE"
|
||||
|
||||
echo "Done."
|
||||
Reference in New Issue
Block a user