Skip to content

Commit

Permalink
Added conversion in package.json and move file and add picture
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamXZE committed Jun 11, 2023
1 parent 2a6e0ed commit 6146179
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions resources/[qb]/qb-core/shared/items.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3006,7 +3006,8 @@ QBShared.Items = {
['shouldClose'] = true,
['combinable'] = nil,
['itemExtraLabel'] = '[Homme]',
['description'] = 'Tenue réalisée spécialement pour: '
['description'] = 'Tenue réalisée spécialement pour: ',
['illustrator'] = '.Crash'
},
['ffs_crafted_outfit_f'] = {
['name'] = 'ffs_crafted_outfit_f',
Expand All @@ -3018,7 +3019,8 @@ QBShared.Items = {
['shouldClose'] = true,
['combinable'] = nil,
['itemExtraLabel'] = '[Femme]',
['description'] = 'Tenue réalisée spécialement pour: '
['description'] = 'Tenue réalisée spécialement pour: ',
['illustrator'] = '.Crash'
},
-- Vehicle Tools
['repairkit'] = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Executed with `yarn build-showroom`
const csvtojson = require('csvtojson');
const fs = require('fs');

async function run() {
const showRoomListJSON = await csvtojson().fromFile('./showroomList.csv');
const showRoomListJSON = await csvtojson().fromFile('./data/showRoom/showroomList.csv');

const ShowRoomFreeElement = {
mp_m_freemode_01: {
Expand Down Expand Up @@ -51,7 +52,7 @@ async function run() {
4
).replace(/"\[[^"\]]*]"/g, r => JSON.stringify(JSON.parse(r)).substr(1).slice(0, -1))};\n\n`;

fs.writeFileSync('./ffsClothConfig.ts', string);
fs.writeFileSync('./src/shared/showRoom/ffsClothConfig.ts', string);
}

run();
3 changes: 2 additions & 1 deletion resources/[soz]/soz-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"dev-module": "webpack --config webpack.config.watch.js --watch --mode development",
"dev-nui": "webpack-dev-server --config webpack.config.dev_server.js --mode development --hot",
"dev": "concurrently \"yarn run dev-module\" \"yarn run dev-nui\"",
"lint": "tsc -p tsconfig.json --noEmit"
"lint": "tsc -p tsconfig.json --noEmit",
"build-showroom": "node data/showRoom/conversion.js"
},
"prisma": {
"seed": "ts-node --transpile-only prisma/seed.ts"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6146179

Please sign in to comment.