Hi so i recently, added cash as an item to my server and it works great. however iv noticed that if i drop the money on the floor and sell drugs to a local i get all the money i had back in my pockets and the money bag is still there for me to pick up and i get double money. i use qbcore base and inv. my server isnt up and running yet so its not a huge issue right now but would like to get it sorted before i open the gates. thanks
Thats a really confusing story.
You sell drugs to a local, for money, then you get more money that you started with?
Isnt that the whole principle behind selling anything? To make money?
haha, no so lets say i have 2000 in cash as an item on me. i can drop it on the floor in a bag. but some how i still have the money on me in cash but not as an item. i can then sell drugs or even buy something from the shop and it takes away or adds money to my cash not as an item. but then it puts it as an item in my pockets. then i can also pick up the bag with the cash as an item up. then i have double money. its not a big issue as of now as only devs in the server. but i know that once its open people will exploit this.
hope that kinda explains it better.
check for any conflicting economy scripts, anything that deals with money is my suggestion, you may have to remove them and add each one to see which one, if any, are conflicting
i did have a script that i have removed, which also removed cash as an item. so until i find one that works i guess cash as an item wont be in my server. thanks for your time
You have to disable the GTANative cash system.
(VSCode Find/Replace All) tell everything that takes or gives cash to give/take bank instead. and tell all of the money checks to look for bank instead of cash.
then you have to replace all of the default cash with item cash for your players. (if you are using cash as an item, it will interfere with the default cash system)
and then you have to make sure that qb-inventory is removing cash items and not default cash when they are dropped.
and it is a little bit more advanced if you want to convert any “cashgivers” to give you item cash instead of default cash as it normally works… for me, I just made all of the shops accept bank only.
I had to create my own cash exchange at all of the banks using qb-menu.
I built mine from the ground up though.
thank you, i will defo give that a try.