-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(native/networks): update networks 2189 natives
* 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
Showing
8 changed files
with
103 additions
and
79 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file was deleted.
Oops, something went wrong.