MaDHouSe79 / mh-cashasitem

The best cash/blackmoney/crypto item script for your qbcore server created by MaDHouSe79.
GNU General Public License v3.0
34 stars 6 forks source link

MONEYWASH #23

Closed stewiemc1991 closed 5 months ago

stewiemc1991 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

Where does this code go

On Tue, 30 Jan 2024, 12:25 MaDHouSe, @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/MaDHouSe79/mh-cashasitem/issues/23#issuecomment-1916732735, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFWLGVUABBS6TSPAQYOLO23YRDRB5AVCNFSM6AAAAABCQNU5L2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJWG4ZTENZTGU . You are receiving this because you authored the thread.Message ID: @.***>

MaDHouSe79 commented 5 months ago

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

stewiemc1991 commented 5 months ago

Sorry which scriptnare you requesting? Money wash or your cashasitem

On Tue, 30 Jan 2024, 12:49 MaDHouSe, @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/MaDHouSe79/mh-cashasitem/issues/23#issuecomment-1916775293, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFWLGVSKEE3IUK6OKBCTIFLYRDT3ZAVCNFSM6AAAAABCQNU5L2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJWG43TKMRZGM . You are receiving this because you authored the thread.Message ID: @.***>

MaDHouSe79 commented 5 months ago

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

stewiemc1991 commented 5 months ago

or if u have another money wash thts good for it

On Tue, 30 Jan 2024 at 05:18, Stewart McInroy @.***> wrote:

On Tue, 30 Jan 2024 at 05:17, MaDHouSe @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/MaDHouSe79/mh-cashasitem/issues/23#issuecomment-1916830497, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFWLGVQ3FYTCM6PQHMROCOTYRDXHTAVCNFSM6AAAAABCQNU5L2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJWHAZTANBZG4 . You are receiving this because you authored the thread.Message ID: @.***>

MaDHouSe79 commented 5 months ago

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