mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
Remove money when buying property
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user