mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 10:18:54 +00:00
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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user