mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
Update addonaccount.lua
Trigger this serverside as well to help with syncing
This commit is contained in:
committed by
GitHub
parent
5a92bba69d
commit
052cecc025
@@ -26,8 +26,9 @@ function CreateAddonAccount(name, owner, money)
|
||||
else
|
||||
MySQL.update('UPDATE addon_account_data SET money = ? WHERE account_name = ? AND owner = ?', {self.money, self.name, self.owner})
|
||||
end
|
||||
TriggerEvent('esx_addonaccount:setMoney', -1, self.name, self.money)
|
||||
TriggerClientEvent('esx_addonaccount:setMoney', -1, self.name, self.money)
|
||||
end
|
||||
|
||||
return self
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user