ox_core: Player tweaks, and docs for accounts

This commit is contained in:
Linden committed 2022-07-27 20:16:30 +10:00
1 parent 7f99ef97e1
commit d21e19e9a3
4 files changed
+133 -28

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
---
title: Server
sidebar_position: 1
---
## Ox.GetAccounts
Return an instance of CAccount for the given charid or group.
```lua
local accounts = Ox.GetAccounts(owner)
```
You can use [player.getAccounts](../../Player/Server/methods.md#playergetaccounts) to to simplify access to an player accounts, however the standard function works for offline players.
You can refer to [vl_banking](https://github.com/Volumed/vl_banking) for a simple implementation of banking using ox_core accounts.