PS-MDT codes for apps.js is outdated

Hello everyone
I’m trying to install PS-MDT I did everything right but there is a step where you configure
“resources/[qb]/qb-inventory/html/js/apps.js”

The creator has an outdated code for “apps.js” which is not compatible for the newer QBCore builds also my QBCore build is 8040 so the codes in the installation guide are completely different then the one I have, can anyone please provide me with a converted codes so it will be compatible with the newest QBCore build that I have,

And here is the creators code lines that isn’t compatible with my
“resources/[qb]/qb-inventory/html/js/apps.js”

And here is where I have to add the converted codes exactly right above “markedbills”
to my “resources/[qb]/qb-inventory/html/js/apps.js”

Can anyone provide me with a converted code please and thanks !

I have not tested this but it should be relatively simple:

** Removed for being wrong **

Side note, you do not have to add this. This is only needed if you want the citation to be a physical item. If you dont want this then you dont need this code. If you need any more help let me know.

Happy coding !

I tried it but now when I try to open my inventory in game my inventory won’t open and my character freezes and I can’t move all I see is the mouse pointer thanks.

Apologies, you will need to use back ticks ` instead of apostrophes. i.e.:

case "mdtcitation":
    return `<p><strong>Citizen ID: </strong><span>${itemData.info.citizenId}</span></p>
            <p><strong>Fine: </strong><span>${itemData.info.fine}</span></p>
            <p><strong>Citation Date: </strong><span>${itemData.info.date}</span></p> 
            <p><strong>Incident ID: </strong><span>${itemData.info.incidentId}</span></p> 
            <p><strong>Involved Officer: </strong><span>${itemData.info.officer}</span></p>`;
1 Like

OMG !! Thank you so much it actually worked you are so smart I appreciate you for helping me. <3

All good, happy to help :smiley:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.