Currency item not being consumed while Economics is enabledSolved

hi i am using my custom currency for the vendors, but it's not removing the currency when buying items in the vending machines, so it's bascially costing nothing. You will see in the screenshot that it will cost 10k for 50 blood, but the 10k cash won't dissapear from inventory, is there a fix for this? https://i.imgur.com/o8u7tUv.png

also the skins are buggy where when i leave the vendor the icon stays on my screen for a few seconds, and the colour is not transparent compared to other items, even though my skin has a transparant background if that makes sense

I'm not able to reproduce that issue. I added skinned paper to a vending machine as currency, purchased items, and observed the skinned paper leaving my inventory. You might have another plugin which is interfering.

MrWoz

also the skins are buggy where when i leave the vendor the icon stays on my screen for a few seconds

You must be experiencing network, server, or client lag. As soon as a player closes the vending machine, it signals the server, and the server signals back to the client to destroy the UI. That is subject to network latency, tick rate, and low FPS. You will see the same effect that with any plugin that shows a UI on top of a container.

MrWoz

the colour is not transparent compared to other items, even though my skin has a transparant background if that makes sense

It is necesary to have a non-transparent background behind the display of the custom skin in order to cover up the item from the vanilla client-side UI. If you want to see what this looks like without the background, search the .cs file for // Background and // Skin icon, and remove all the lines of code in between those two lines.

thanks for the fast response! and i am using a plugin called ATMSystem by david, but that is about it, and of course economics. So not sure what else it could be preventing my money from leaving my inventory after buying items from the vendor.

Merged post

also when you said: search the .cs file for // Background and // Skin icon, and remove all the lines of code in between those two lines.

Do you mean just remove the word background and skin icon like this? or do you mean the text underneathMCvSXA31dqMu4eu.png

On your screenshot, remove lines 1640 through 1659.

fHRjTXA1y36bgBH.pngdone what you said and it's made it worse xD, still getting the same problem where the money doesn't leave my inventory and the numbers are overlapping eachother, unless i removed this wrong?

Yes, it's worse, that's what I wanted you to see. That is why the plugin adds the background.

No idea on the currency not being consumed issue. Try unloading other plugins to narrow down which combination causes the issue. If you are able to reproduce the issue without any other plugins loaded, then share your config and data file so I can test with them.

i have 100 plugins so doing that will take me forever, it would be quicker to send you my config haha 

{
"Shop UI settings": {
"Enable skin overlays": true
},
"Economics integration": {
"Enabled": true,
"Item short name": "paper",
"Item skin ID": 2579750087
},
"Server Rewards integration": {
"Enabled": false,
"Item short name": null,
"Item skin ID": 0
},
"Override item max stack sizes (shortname: amount)": {}
}

You should never troubleshoot plugin conflicts by unloading one at a time. You unload 50% of them at time, which is exponentially faster, known as binary searching.

Since you have Economics integration enabled, I have to ask, is the skin you showed in the screenshot the 2579750087 skin? If so, then the reason skinned paper isn't leaving your inventory is that the currency is instead being taken out of your Economics account. The plugin doesn't treat the item and the Economics balance interchangeably if that's what you expect. The configuration for the item/skin is just so the plugin can display things properly.

yeah it's the same skin ID, should i remove the skin id altogether then try?

edit - turned economics to false and now it works, even with the skin ID on.

Yes, if you want players to carry the cash (which they exchanged for Economics currency at an ATM) to the vending machine, then disable Economics integration. If you want the vending machine to pull the money out of the player's Economics account, then enable Economics integration.

The Economics feature basically let's you bypass the need to carry cash, and lets the vending machine itself act as an ATM if you want.

WpnRK9BIoSwMicX.pngso there isn't a way of making the background of my cash the same like the blood for example

Only possible if you are OK with disabling the skin and just using an item like paper.

Locked automatically