Closed stewiemc1991 closed 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
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: @.***>
give me your script than i put it in for you.
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: @.***>
your moneywash script so i can show you where to change it.
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: @.***>
See if this works for you, https://github.com/MaDHouSe79/mh-moneywash
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