🔥 [ESX] Money Laundering GoPostal [New][Updated 9/11/18]

Its still dont work… I have cartel job. Maybe its only work on gang job?

How/Where can I change the money values from the dirty money and money that has been washed ?
EDIT: I think its just from the config file right?

And as second; is it possible to make this happen when ‘x’ amount of police is active on the server ???

for some reason i am not able to find where to remove the blip from, can someone tell me please? thanks as i do not want anyone to be able to look at the map and find it i would prefer for them to have to find it instead of the location being handed to them, awesome script though really appreciate you sharing it

Why when i am done with the job i don’t get anything?

Would there be a way to take the marker off the map?

All I did was open the \esx_goDirty\client\main.cfg and comment out all of this text. It’s labelled under the blip comment, fairly easy to find. Just use ’ – ’ to comment it all out and it will remove the blip

    CREATE BLIPS
    Citizen.CreateThread(function()
local blip = AddBlipForCoord(Config.Cloakroom.CloakRoom.Pos.x, 
    Config.Cloakroom.CloakRoom.Pos.y, Config.Cloakroom.CloakRoom.Pos.z)
    SetBlipSprite (blip, 351)
SetBlipDisplay(blip, 4)
SetBlipScale  (blip, 1.2)
SetBlipColour (blip, 49)
SetBlipAsShortRange(blip, true)
    BeginTextCommandSetBlipName("STRING")
AddTextComponentString(_U('Money_Laundering'))
EndTextCommandSetBlipName(blip)
   end)

@GamingWithJosh refer to this post to answer you question regarding removing blip

@KrizFrost

is there any chance you could show me how to change the colour of the way point that is created when you start a mission to deliver money. When I get in the van and the way point is shown on the map, it’s a “sandy/yellow” colour and it’s really difficult to see. Would like it to be red or blue, something far more visible.

script wont work for me im running the esx i follow above instructions load game up go to casino nothing there i dont no if this matters im runnning zap-hosting server.

2 Likes

can’t see the circle when i arrived the last destination, any ideas?

@KrizFrost
What should I do when spawnea the vehicle appears inside the?


				platenum = math.random(10000, 99999)
				SetVehicleNumberPlateText(vehicle, "WAL"..platenum)
                MissionLivraisonSelect()			
				plaquevehicule = "WAL"..platenum
				
				xPlayer.removeAccountMoney('black_money', '500') -- Cost $500 Dirty Money
				if data.current.value == 'phantom3' then
					ESX.Game.SpawnVehicle("trailers2", Config.Zones.VehicleSpawnPoint.Pos, 270.0, function(trailer)
					    AttachVehicleToTrailer(vehicle, trailer, 1.1)```

Your error is coming from the code in lines 154 - 161. It is remaining code from the trucking code that should have been rewritten to use the black money deduction as you do not get a phatom3 or a trailer. Lines 154 - 161 could be rewritten properly or commented out. I commented them out for now.

Can you checkout my issue?

can try commenting out retourcamion_oui() in your server/main.lua line 23 and try it thats what I did.

Edit: I Think i have got this error fixed, Its late now so I’ll do some more testing when I get home tomorrow and put the things I didn’t need/want back in that were already scripted in and test again to make sure it still works before I make a git account and fork the repo.

Edit2: Been looking into this error also. The way it is coded this error will always be thrown from the server/main.lua. When someone hits $0 black money and goes to another delivery point and tries getting more clean money from $0 black money or return the vehicle throws this error every time. As long as they still have black money at the end you will not get this error. So it’s probably just needs a balance check to allow them to do the set amount for cleaning

This is what I can come up with to fix the error it work’s and gets rid of the phatom3 and trailor and still keeps the black money deduction it comes out of the first delivery if set to more then 1 in config or back at depot when return the truck.

platenum = math.random(10000, 99999)
				SetVehicleNumberPlateText(vehicle, "WAL"..platenum)
                MissionLivraisonSelect()
				plaquevehicule = "WAL"..platenum
				
				if xPlayer ~= nil then
					xPlayer.removeAccountMoney('black_money', '500') -- Cost $500 Dirty Money
				end
				TaskWarpPedIntoVehicle(GetPlayerPed(-1), vehicle, -1)
			end)

this also fixes not getting warped into the vehicle you choose when it spawned due to that error.

I went to step 0 to 1, there was no problem.
Step 1 to 2 I did not have a problem.
But after the end of step 2, an error occurs on the server.

MissionLivraisonSelect num
0
MissionLivraisonSelect 1
MissionLivraisonSelect 2
3'"WAL46930"' '"WAL46930"'
Sending heartbeat to live-internal.fivem.net:30110
MissionLivraisonSelect num
1
MissionLivraisonSelect 2
Sending heartbeat to live-internal.fivem.net:30110
[SAVED] alex2000
[SAVED] All players
Sending heartbeat to live-internal.fivem.net:30110
MissionLivraisonSelect num
1
MissionLivraisonSelect 2
Error running system event handling function for resource Money-Laundering: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: @Money-Laundering/server/main.lua:22: attempt to call a nil value (global 'retourcamion_oui')
stack traceback:
        @Money-Laundering/server/main.lua:22: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:219: in function <citizen:/scripting/lua/scheduler.lua:218>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:218: in function <citizen:/scripting/lua/scheduler.lua:182>

next level to end :
34234

ohh!! dirty mony is 0$ .

I’ve used default github files, and I cannot see the circle on the casino’s entrance.

Also i’ve already changed that state of “taxi” job to “gopostal” job and nothing.

Can’t see the circle.

Help?

how to set only casino job to clean the money??

This is how it should work for you

function IsJobTrucker()
if PlayerData ~= nil then
local isJobTrucker = true

	if PlayerData.job.name ~= nil and PlayerData.job.name ~= 'casino' then 
		isJobTrucker = false
	end
	return isJobTrucker
end