From 83977e6072d6f9faed764bae6782432d73565661 Mon Sep 17 00:00:00 2001 From: Carmelo Campos <31357533+CarmeloCampos@users.noreply.github.com> Date: Mon, 2 Nov 2020 00:30:11 -0500 Subject: [PATCH] Fix Bug Duplicate black Money This error consists in that when the black money is confiscated (if it is given twice quickly) the money is doubled and the objective remains in negative money. I know that many use the esx_policejob as the basis for the esx_mafia therefore, this error is very important to solve, since if the money is added together with the black_money it can be duplicated in a phenomenal way. Sorry for my English, I tried to explain myself what else I could. --- client/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.lua b/client/main.lua index 4ae3bf3a..8dda3be2 100644 --- a/client/main.lua +++ b/client/main.lua @@ -495,7 +495,7 @@ function OpenBodySearchMenu(player) }, function(data, menu) if data.current.value then TriggerServerEvent('esx_policejob:confiscatePlayerItem', GetPlayerServerId(player), data.current.itemType, data.current.value, data.current.amount) - OpenBodySearchMenu(player) + menu.close() end end, function(data, menu) menu.close()