Discord - Website - Documentation
A beautiful and Easy-To-Use Banking & ATM system for ESX
- Download https://github.com/esx-framework/esx-legacy/tree/main/%5Besx_addons%5D/esx_banking
- Put it in the
[esx-addons]
directory
- ox_inventory
- Add this to your
server.cfg
:
ensure esx_banking
Run the banking.sql into your database. Done.
Param | Type | Explanation |
---|---|---|
source | number | the source of the player (server side only) |
label | string | The label of the transaction |
logType | string | "WITHDRAW", "DEPOSIT", "TRANSFER_RECEIVE" the possible transactions |
amount | number | The amount of the transaction to be logged |
-- Client side
-- The event is used client side
TriggerServerEvent("esx_banking:logTransaction",label,logType,amount)
-- For example:
TriggerServerEvent("esx_banking:logTransaction","TAX", "DEPOSIT", 2000)
-- Server side
-- The export is used server side
exports["esx_banking"]:logTransaction(source,label,logType,amount)
-- For example:
exports["esx_banking"]:logTransaction(source,"CAR PURCHASE","WITHDRAW",200)
esx_banking - banking script for ESX
Copyright (C) 2023 ESX-Framework
This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.
This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.
You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/.