MaDHouSe79 / mh-cashasitem

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

Hi 👋, I'm MaDHouSe

A passionate allround developer

My Youtube Channel and Discord

mh-cashasitem

NOTE you need coding experience.

Dependencies

Optional

Install

Server.cfg example

ensure qb-core
ensure mh-cashasitem -- add here
ensure [qb]
ensure [standalone]
ensure [voice]
ensure [defaultmaps]
ensure [mh]

Command

Video

Youtube

Images

alttext alttext alttext

Note for using blackmoney

Exports you can use for your own inventory.

-- Remove Item Example Player.Functions.RemoveItem(ItemData.name, amount, toSlot) exports['mh-cashasitem']:UpdateCash(source, ItemData, amount, "remove")


# How to change marketbills to black_money 
- The black_money uses the item amount as a number, 
- and the marketbills uses the item amount as a table.
- so you need to edit that part of the code.

- from this
```lua
local worth = {value=10} -- table
Player.Functions.AddItem('marketbills', worth) -- to add marketbills
Player.Functions.RemoveItem('marketbills', worth)-- to remove marketbills

INSTALL FOR QB INVENTORY AND QB-HUD

LICENSE

GPL LICENSE
© MaDHouSe79