Remove money when buying property

This commit is contained in:
Jérémie N'gadi
2017-08-10 09:38:35 +02:00
parent f2bdb9320a
commit eba26ffd18
+2
View File
@@ -36,6 +36,8 @@ AddEventHandler('esx_realestateagentjob:sell', function(target, property, price)
local xPlayer = ESX.GetPlayerFromId(target)
xPlayer.removeMoney(price)
TriggerEvent('esx_addonaccount:getSharedAccount', 'society_realestateagent', function(account)
account.addMoney(price)
end)