Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MONEYWASH #23

Closed
stewiemc1991 opened this issue Jan 30, 2024 · 7 comments
Closed

MONEYWASH #23

stewiemc1991 opened this issue Jan 30, 2024 · 7 comments

Comments

@stewiemc1991
Copy link

I'm with qb-core and it's a complete pain to was the money I've looked kard and tried to convert from markedbills to blackmoney for washing but it doesn't come out the inventory, is there possible chance making your own version that washes blackmoney instead of markedbills and actually removes it from your inventory

@MaDHouSe79
Copy link
Owner

The only difference in these 2 items is,
the blackmoney uses the item amount as a number,
and the marketbills uses the item mount as a table.

so you need to edit that part of the code.
from this

local worth = {value=10} -- table
Player.Functions.AddItem('marketbills', worth) -- to add marketbills

Player.Functions.RemoveItem('marketbills', worth)-- to remove marketbills

to this

local amount = 10 -- number
Player.Functions.AddItem('blackmoney', amount) -- to add blackmoney

Player.Functions.RemoveItem('blackmoney', amount)  -- to remove blackmoney

@stewiemc1991
Copy link
Author

stewiemc1991 commented Jan 30, 2024 via email

@MaDHouSe79
Copy link
Owner

give me your script than i put it in for you.

@stewiemc1991
Copy link
Author

stewiemc1991 commented Jan 30, 2024 via email

@MaDHouSe79
Copy link
Owner

your moneywash script so i can show you where to change it.

@stewiemc1991
Copy link
Author

stewiemc1991 commented Jan 30, 2024 via email

@MaDHouSe79
Copy link
Owner

See if this works for you, https://github.com/MaDHouSe79/mh-moneywash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants