[FREE][QB] Laundromat / Marked Bills / Money Laundering

What’s This?

My players had loads of issues with the traphouse in QBCore, so I made this for my server. It includes a lot of configuration and the config.lua is commented so you can change & configure it to suit your server.

This script is designed to work with gtaDPS’s Abandoned Laundromat MLO, if you do not use this you will need to change the coordinates in config.lua

Features

  • Leave your dirty money at the laundromat while it gets cleaned
  • Phone notification when it’s completed
  • Make more marked bills take longer
  • Earn more from laundering marked bills when police are around
  • Configure the % each machine gives individually
  • Configure the charge for using the machine

Download / More Info

Screenshots

No support is offered anywhere but this thread, do not join my discord or DM me requesting support. If you cannot read I will not support you.

There will not be an ESX version of this script.

12 Likes

Amazing work keep it up.

4 Likes

I downloaded this a few moments ago and upon restarting the server, I get this error and nothing showing up in the Laundromat map.

[    c-scripting-core] Creating script environments for qb-overlord-laundering
[    c-scripting-core] Failed to load script @qb-core/import.lua.
[script:qb-overlord-l] Error loading script config.lua in resource qb-overlord-laundering: citizen:/scripting/lua/scheduler.lua:881: No such export GetSharedObject in resource qb-core
[script:qb-overlord-l] stack traceback:
[script:qb-overlord-l] 	[C]: in function 'error'
[script:qb-overlord-l] 	citizen:/scripting/lua/scheduler.lua:881: in metamethod '__index'
[script:qb-overlord-l] 	@qb-overlord-laundering/config.lua:1: in main chunk
[    c-scripting-core] Failed to load script config.lua.

Under advice from friends, I changed line 1 of config.lua to

local QBCore = exports['qb-core']:GetCoreObject()

Which loads up the 3D text at the Washing Machines, but now I get this error

SCRIPT ERROR: @qb-overlord-laundering/server/main.lua:14: attempt to index a nil value (global 'QBCore')

Edit: Got it fixed. Small thing after the fact, changing server/main.lua’s getPlayerData to getPlayer, and now the script works great. Thanks for creating it in the first place!

4 Likes

i got the same error
SCRIPT ERROR: @qb-overlord-laundering/server/main.lua:14: attempt to index a nil value (global ‘QBCore’)
and I have tried to change this server/main.lua’s getPlayerData to getPlayer
but i still get the same error can you help me?

1 Like

The only other change I made was adding

local QBCore = exports['qb-core']:GetCoreObject()

to the top of server/main.lua, maybe that’ll work?

1 Like

now it work but it stuck on occupied

3 Likes

Did you manage to get it working, Ive put local QBCore = exports[‘qb-core’]:GetCoreObject() on line 1 on the config file and the getplayerdata was already changed to getPlayer but still getting the error
[script:qb-overlord-l] SCRIPT ERROR: @qb-overlord-laundering/server/main.lua:14: attempt to index a nil value (global ‘QBCore’)

2 Likes

add

local QBCore = exports[‘qb-core’]:GetCoreObject()

to the top of server/main.lua,

1 Like

I cannot get this working aha Ive done all what you have but still have the following error.
i can press E to wash and it removes Marked_money from inventory but the 3dtxt staying on washing infinite.

Failed to load script @qb-core/import.lua

1 Like

try to edit the time in the config like this
CONFIG[‘BaseTime’] = math.random(4,5) – time in minutes the washing machine always takes
–CONFIG[‘BaseTime’] = 1

CONFIG[‘TimePerItem’] = math.random(3,4) – time in minutes each additional item of dirty money adds
–CONFIG[‘TimePerItem’] = 1

2 Likes

unfortunately still the same Failed to load script @qb-core/import.lua gutted lol

1 Like

Right it can clean marked money if i use 1 machine at a time, if i was using more than 1 machine th rest stay stuck on occupied

1 Like

ya now when i am looking in the logs i see that i have the same error but it dosent make it stop working

1 Like

for this i can suggest to to remove all of the others one and leave only one spot

1 Like

any idea how to make it take all your markedbills in your inventory instead of just 1 at a time

1 Like

if you place ech one in your inventory and not stacks it should take it all in ones

1 Like

has literally anyone been able to make this work?

2 Likes

Yup why

1 Like

Still unable to get this to work… The interact E text is there, but does nothing. I’ve added the local QBCore = exports[‘qb-core’]:GetCoreObject() to the files,

here’s what the console tells me…

[ c-scripting-core] Creating script environments for qb-overlord-laundering
[ c-scripting-core] Failed to load script @qb-core/import.lua.
[script:qb-overlord-l] Error parsing script @qb-overlord-laundering/server/main.lua in resource qb-overlord-laundering: @qb-overlord-laundering/server/main.lua:1: unexpected symbol near ‘<\226>’
[ c-scripting-core] Failed to load script server/main.lua.
[ citizen-server-impl] Started resource qb-overlord-laundering

1 Like

I had this same issue, and after reading some old messages its quite a simple fix.

Replace the 1st line config.lua with the following

local QBCore = exports[‘qb-core’]:GetCoreObject()

You also have to add the same line to the start of the code in server/main.lua

Hope it helps :slight_smile:

1 Like