[ESX] MoneyWash

This is most likely falling onto ESX as that is where the math function is coming from. What version of ESX are you using? Double check the ESX folder under common > modules. Is there a math.lua in there. You could also try changing the lines in my script from ESX.Math.Round to just ESX.Round to see if that fixes the issues.

You would need to change each occurance of it so line 10 and line 12

Let me know. Thanks!

hello, could you help me that only a predetermined job can launder the money at the washing point? sorry for my english, it’s not my native language.

Can do an if statement such as if job == mafia then

You will need to set it up to pull their job though. Should’t be to difficult.

would like to set the script to work with society but i dont want that other player see the other wash blips is possible to do it?

Yes that is similar to the post above just make it to where only certain jobs can see and use the blips.

UPDATE v0.1.0 on 12/12/2019

  • Added authorized jobs to the locations. Ability to set each location to be used by a different job or all jobs!
  • Updated config to a more clean look with instructions on adding new locations and jobs
  • Added version.json and version.lua to check for newer versions on resource start

I have tested on my test dev server with no issues. Instructions on how to add jobs or allow all jobs in the config file with example on adding new locations. The code might be a little messy but it works and the ms on my server is relatively low.

Anyone know where is map location?

1 Like

Like how to get to the machines? You need to set up a teleport or change the coords in the config to a new location that you can access without a teleport.

1 Like

im getting this error message anyone know how to fix

this is the area its talking about

– Key Controls
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)

	if CurrentAction ~= nil then
		ESX.ShowHelpNotification(CurrentActionMsg)
		
		if IsControlJustReleased(0, Keys['E']) then
			if CurrentAction == 'wash_menu' then
				OpenWashedMenu(CurrentActionData.zone)
			end
			CurrentAction = nil
		end
	else
		Citizen.Wait(500)
	end
end

end)

That’s related to the esx. Showhelpnotification. Did you change anything else in the script? And using the latest version of Esx?

just the %

Config = {}

Config.Locale = ‘en’
Config.DrawDistance = 100
Config.Size = {x = 1.5, y = 1.5, z = 1.5}
Config.Color = {r = 255, g = 120, b = 0}
Config.Type = 1

Config.taxRate = 0.80 --80% of the dirty you will get back in clean

Config.enableTimer = true – Enable ONLY IF you want a timer on the money washing. Keep in mind the Player does not have to stay at the wash for it to actually wash the money.
local second = 1000
local minute = 60 * second
local hour = 60 * minute

Config.timer = 5 * second – Time it takes to wash money. The * amount will determine if its hours, second, or minutes.

–[[
Below are the zones for laundering. You can set multiple zones just follow the format below.
Failure to do so will result in the script breaking.
Set the job to ‘any’ if you want anybody to use the location. Otherwise set the required job you want to use for the location
Any job not allowed to use the location WILL NOT see a marker or get a popup to use it.

EXAMPLE LOCATION!!! JUST COPY THIS AND PASTE TO ADD MORE LOCATIONS!
	
{
	Pos = {
		{x = 1090.84 , y = -2233.43 , z = 31.5}
	},
	
	Jobs = {
		--'any', -- SET THE 'any' TAG TO ALLOW ALL JOBS INCLUDING POLICE TO USE THE LOCATION
		--'miner',
		--'cardealer'
	}
},

]]

Config.Zones = {

{	
	Pos = { 
		{x = 1122.5 , y = -3194.98 , z = -41.60},
	},
	
	Jobs = {
		'any', -- set to 'any' to allow the location for any player regardless of job
		--'cardealer'
	}
},

{
	Pos = {
		{x = 1090.84 , y = -2233.43 , z = 31.5}
	},
	
	Jobs = {
		--'any', -- SET THE 'any' TAG TO ALLOW ALL JOBS INCLUDING POLICE TO USE THE LOCATION
		--'miner',
		--'cardealer'
	}
},

}

Interesting. I tested on my end and it’s still working. And you are using the latest version of Esx?

hello guy, nice script but you can help me because i can’t use any script of money wash all script is the same not have erro in f8 but signs message"you not have dirty money to wash" but i have i give with /giveitem 1 moneywashid 200000 i not understand this wrong please i need help so much

This doesn’t check for items it checks the black money account in esx. Also it doesn’t require any item to use.

You need to find the esx command to give black money its something like /setmoney id account amount

Where ist the Teleport Point in the Hall ?

This doesn’t have teleports just locations if you want to leave it at the machines you will need to get your own tp script. Or simply change the coordinates in the config file.

where is this located

i found the location its in the docks but i dont see a way to get inside and no errors in console

As I have mentioned in the main topic and several of the posts before. You need your own teleports script to get to the original location. Or you can change the original location in the config.

Thanks!

is this set right or i need a different cord for going up
Screenshot_184