CodineDev / cdn-fuel

A functionality fuel system based off of LegacyFuel that uses PolyZones that target fueling pumps and vehicles to allow you to refuel your vehicle, as well as interact-sound to play accurate refueling sounds, Syphoning, Jerry Cans and more!
GNU General Public License v3.0
116 stars 103 forks source link

対処法を教えてほしい。 #98

Open kanikun0001 opened 10 months ago

kanikun0001 commented 10 months ago

”} else if (itemData.name == "harness") {”が見つからない。対処法を教えてほしい。 app.txt

yukad2 commented 10 months ago

日本語話者のコントリビューターは少ないので、英語で問題を報告した方がよいですよ! Few contributors understand Japanese so you should use English!

修正方法 / How to fix

https://github.com/qbcore-framework/qb-inventory/commit/303140565e66f21c48d7570f56aebec6866e0478 の変更で修正箇所が変わっています。 app.js in qb-inventory was modified at https://github.com/qbcore-framework/qb-inventory/commit/303140565e66f21c48d7570f56aebec6866e0478 .

qb-inventory/html/js/app.js 内で case "harness": を検索して、上側にこのコード挿入してください。

        case "syphoningkit":
            // Syphoning Kit (CDN-Fuel or CDN-Syphoning!)
            return `<p>${itemData.label}</p>
            <p>A kit used to syphon gasoline from vehicles! <br><br>${itemData.info.gasamount} Liters Inside.</p>
            </span></p><p style=\"padding-top: .8vh;font-size:11px\"><b>Weight: </b>${((itemData.weight * itemData.amount) / 1000).toFixed(1)} | <b>Amount: </b> ${itemData.amount}`
        case "jerrycan":
            // Jerry Can (CDN-Fuel!)
            return `<p>${itemData.label}</p>
            <p>A Jerry Can, designed to hold fuel! <br><br>${itemData.info.gasamount} Liters Inside.</p>
            </span></p><p style=\"padding-top: .8vh;font-size:11px\"><b>Weight: </b>${((itemData.weight * itemData.amount) / 1000).toFixed(1)} | <b>Amount: </b> ${itemData.amount}`

CTRL+F the case "harness": in qb-inventory/html/js/app.js and insert the code.