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.
This commit is contained in:
Carmelo Campos
2020-11-02 00:30:11 -05:00
committed by GitHub
parent 9c99e71e2f
commit 83977e6072
+1 -1
View File
@@ -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()