Fixed dirty money, buying from black market

Updated if zone=="BlackWeashop" - was not removing money from dirty money when purchasing guns
This commit is contained in:
Don
2017-09-06 21:45:44 -07:00
committed by GitHub
parent 2d2ed8f3b9
commit 0049d678e5
+1 -1
View File
@@ -40,7 +40,7 @@ AddEventHandler('esx_weashop:buyItem', function(itemName, price, zone)
local xPlayer = ESX.GetPlayerFromId(source)
local account = xPlayer.getAccount('black_money')
if zone=="blackweashop" then
if zone=="BlackWeashop" then
if account.money >= price then
xPlayer.removeAccountMoney('black_money', price)