Skip to content

Commit 42aec22

Browse files
committed
feat: add CreateTransaction export
1 parent 7e37920 commit 42aec22

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

pages/bossmenu/devdocs.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,25 @@ exports["zerio-bossmenu"]:Open()
2121

2222
### Server Exports
2323

24+
#### Money Management
25+
26+
##### `CreateTransaction(identifier, plrName, amount, reason, job, date, type, isGang)`
27+
28+
Creates a new transaction for a specific player. This is used to track all transactions made by the bossmenu.
29+
30+
**Parameters:**
31+
32+
- `identifier` (string): Player identifier
33+
- `plrName` (string): Player name
34+
- `amount` (number): Transaction amount
35+
- `reason` (string): Transaction reason
36+
- `job` (string): Job name
37+
- `date` (string): Transaction date, you can use Lua's `os.time()` function to get the current timestamp.
38+
- `type` (string): Transaction type, can be "deposit" or "withdraw".
39+
- `isGang` (boolean): Whether it's a gang
40+
41+
**Returns:** `boolean` - Success status
42+
2443
#### Employee Management
2544

2645
##### `GetEmployeeActiveSalary(identifier, jobName)`

0 commit comments

Comments
 (0)