0.0.1
This commit is contained in:
72
resources/[esx_addons]/esx_banking/README.md
Normal file
72
resources/[esx_addons]/esx_banking/README.md
Normal file
@@ -0,0 +1,72 @@
|
||||
<h1 align='center'>[ESX] Banking</a></h1><p align='center'><b><a href='https://discord.esx-framework.org/'>Discord</a> - <a href='https://esx-framework.org/'>Website</a> - <a href='https://docs.esx-framework.org/legacy/installation'>Documentation</a></b></h5>
|
||||
|
||||
A beautiful and Easy-To-Use Banking & ATM system for ESX
|
||||
|
||||
|
||||
## BANK UI
|
||||

|
||||
## ATM UI
|
||||

|
||||

|
||||
|
||||
|
||||
## Special thanks: Gellipapa#9186,Rav3n95#2849,Csoki, csontvazharcos, Füsti, Pécé
|
||||
|
||||
## Download & Installation
|
||||
|
||||
- Download https://github.com/esx-framework/esx-legacy/tree/main/%5Besx_addons%5D/esx_banking
|
||||
- Put it in the `[esx-addons]` directory
|
||||
|
||||
## Installation
|
||||
- Add this to your `server.cfg`:
|
||||
|
||||
```
|
||||
ensure esx_banking
|
||||
```
|
||||
|
||||
# Database
|
||||
```
|
||||
Run the banking.sql into your database. Done.
|
||||
```
|
||||
|
||||
# If you want to create a bank log in another script, you can do it this way!
|
||||
# IMPORTANT this is only log, these method not handle full bank service
|
||||
# I recommend to use the money logic after.
|
||||
|
||||
|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|
|
||||
|
||||
|
||||
```lua
|
||||
-- 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)
|
||||
```
|
||||
|
||||
# Legal
|
||||
### License
|
||||
esx_banking - banking script for ESX
|
||||
|
||||
Copyright (C) 2025 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/.
|
||||
Reference in New Issue
Block a user