Skip to content

Commit

Permalink
feat(native/networks): update networks 2189 natives
Browse files Browse the repository at this point in the history
* Update/Rename: NETWORK_SPEND_BEACH_PARTY
* Update/Rename NETWORK_SPEND_SUBMARINE
* Update/Rename NETWORK_SPENT_MOVE_SUBMARINE
* Update/Rename NETWORK_SPEND_CASINO_CLUB
  • Loading branch information
spacevx committed Dec 27, 2023
1 parent 055024b commit 41ca5d6
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 79 deletions.
18 changes: 0 additions & 18 deletions MONEY/N_0xcd4d66b43b1dd28d.md

This file was deleted.

22 changes: 22 additions & 0 deletions MONEY/NetworkSpendBeachParty.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
ns: MONEY
aliases: ["_NETWORK_SPENT_BEACH_PARTY_GENERIC"]
---
## NETWORK_SPEND_BEACH_PARTY

```c
// 0x54ABA22FA6371249
void NETWORK_SPEND_BEACH_PARTY(int item);
```
Handles the transactions for items purchased at the beach party bar, where all items are free of charge.
```
NativeDB Introduced: v2189
```
## Parameters
* **item**: The identifier for the item being 'purchased' at the beach party.
## Return value
This native does not return any value.
30 changes: 30 additions & 0 deletions MONEY/NetworkSpendCasinoClub.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
ns: MONEY
aliases: ["_NETWORK_SPENT_CASINO_CLUB_GENERIC"]
---
## NETWORK_SPEND_CASINO_CLUB

```c
// 0xC991C255AA6D90B2
void NETWORK_SPEND_CASINO_CLUB(int amount, cs_type(Any) bool fromBank, cs_type(Any) bool fromBankAndWallet, int barItem, int barAmount, int vipItem, int vipAmount, int entryAmount, int attendantAmount);
```
Handles monetary transactions for various activities within the casino club, including bar purchases, VIP area transactions, entry fees, and tips to bathroom attendants.
```
NativeDB Introduced: v2189
```
## Parameters
* **amount**: The total amount of money spent.
* **fromBank**: true if the amount is deducted from the player's bank account.
* **fromBankAndWallet**: true if the amount is deducted from both the player's bank account and wallet.
* **barItem**: The identifier for the item bought at the casino nightclub bar.
* **barAmount**: The amount spent on bar items.
* **vipItem**: The identifier for the item bought in the VIP area.
* **vipAmount**: The amount spent on VIP items.
* **entryAmount**: The fee for entering the casino nightclub.
* **attendantAmount**: The amount tipped to the bathroom attendant.
## Return value
This native does not return any value.
27 changes: 27 additions & 0 deletions MONEY/NetworkSpendSubmarine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
ns: MONEY
aliases: ["_NETWORK_SPENT_SUBMARINE"]
---
## NETWORK_SPEND_SUBMARINE

```c
// 0x6C8BC1488527AAAB
void NETWORK_SPEND_SUBMARINE(int amount, cs_type(Any) bool fromBank, cs_type(Any) bool fromBankAndWallet, int utilityAmount, int boatAmount, int relocateAmount);
```
Manages in-game spending related to the submarine, covering staff wages, utility fees, and costs for vehicle or boat pickups from the shore to the submarine.
```
NativeDB Introduced: v2189
```
## Parameters
* **amount**: The total amount of money spent.
* **fromBank**: If true, the amount is deducted from the player's bank account.
* **fromBankAndWallet**: If true, the amount is deducted from both the player's bank account and wallet.
* **utilityAmount**: The portion of the amount covering utility fees for the submarine.
* **boatAmount**: The cost for requesting boat pickups from the shore to the submarine.
* **relocateAmount**: The cost involved in relocating the submarine.
## Return value
This native does not return any value.
16 changes: 0 additions & 16 deletions MONEY/NetworkSpentBeachPartyGeneric.md

This file was deleted.

24 changes: 0 additions & 24 deletions MONEY/NetworkSpentCasinoClubGeneric.md

This file was deleted.

24 changes: 24 additions & 0 deletions MONEY/NetworkSpentMoveSubmarine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
ns: MONEY
aliases: ["0xCD4D66B43B1DD28D", "_NETWORK_SPENT_ON_MOVE_SUBMARINE"]
---
## NETWORK_SPENT_MOVE_SUBMARINE

```c
// 0xCD4D66B43B1DD28D
void NETWORK_SPENT_MOVE_SUBMARINE(int amount, cs_type(Any) bool fromBank, cs_type(Any) bool fromBankAndWallet);
```
Deducts money for moving the submarine. Handles the transaction required to relocate a submarine in-game.
```
NativeDB Introduced: v2189
```
## Parameters
* **amount**: The amount of money to be spent on moving the submarine.
* **fromBank**: A boolean indicating whether the money should be deducted from the player's bank account.
* **fromBankAndWallet**: A boolean indicating whether the money should be deducted from both the player's bank account and wallet.
## Return value
This native does not return any value.
21 changes: 0 additions & 21 deletions MONEY/NetworkSpentSubmarine.md

This file was deleted.

0 comments on commit 41ca5d6

Please sign in to comment.