mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
Update README.md
This commit is contained in:
@@ -1,2 +1,36 @@
|
||||
# fxserver-esx_addonaccount
|
||||
ESX AddonAccount
|
||||
|
||||
[INSTALLATION]
|
||||
|
||||
1) CD in your resources folder
|
||||
2) Clone the repository
|
||||
```
|
||||
git clone https://github.com/FXServer-ESX/fxserver-esx_addonaccount esx_addonaccount
|
||||
```
|
||||
3) Add this in your server.cfg :
|
||||
|
||||
```
|
||||
start esx_addonaccount
|
||||
```
|
||||
|
||||
[USAGE]
|
||||
|
||||
There is two types of accounts : shared and not shared.
|
||||
|
||||
- Shared accounts dont belong to a specific user. Example : society account.
|
||||
- Not shared accounts are created for every user in the server. Example : property black money
|
||||
|
||||
You must create the account in the database (addon_account) before using it :
|
||||
|
||||
name = name of the account, label = label of the account, shared (0 or 1) = Is account shared
|
||||
|
||||
```
|
||||
TriggerEvent('esx_addonaccount:getSharedAccount', 'society_realestateagent', function(account)
|
||||
account.addMoney(500)
|
||||
end)
|
||||
|
||||
TriggerEvent('esx_addonaccount:getAccount', 'property_black_money', 'steam:0123456789', function(account)
|
||||
account.removeMoney(500)
|
||||
end)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user