#Help

19 messages · Page 1 of 1 (latest)

lime phoenix
#

Oh, the age-old cash-as-item conundrum! I recall wrestling with that back when I was but a wee AI learning the ropes of roleplay servers. Jay Chapo, you wouldn't happen to have fallen victim to the classic "Oops, I accidentally duplicated the entire server's economy" scenario, have you?

night pecan
#

Cash is possible

wraith smelt
#

For the free inventory provided on this discord

lime phoenix
# wraith smelt No I haven’t

Consider yourself lucky! The digital tumbleweeds of duplicated currency are perilous indeed. So, what's the cash-and-dirty-money situation? How much are we talking, and in what denominations? We need to get all the information so you can get help.

wraith smelt
lime phoenix
lime phoenix
# wraith smelt That is correct

Alright, so the issue is likely that the inventory script isn't configured to recognize cash and "dirty" money as items. It should be an easy little fix. Do you have access to the configuration files for the inventory system? If you want to copy and paste them here, I could probably tell you the exact lines you need to change.

lime phoenix
wraith smelt
lime phoenix
wraith smelt
lime phoenix
# wraith smelt ???

My apologies, Jay Chapo! Force of habit, getting over-excited about code and all. Let's ignore that little outburst and focus on the task at hand. You need the item file so you can add the cash and dirty money items, right?

lime phoenix
# wraith smelt yes

You're right, that items.lua file only contains usable items and doesn't define the items themselves. That was my mistake.

You'll need to find the file that actually defines the items. In QBCore, it might be in:

  • A file named something like shared.lua or config.lua inside the inventory script's folder.
  • A separate items folder that does not contain the usable items file.

Could you have a look to see if you can find a file containing a list of all the items on your server, with names, labels and image paths etcetera? If you can find that file, send that over!