_NETWORK_IS_MONEY_BALANCE_NOT_LESS_THAN
Returns true if the player's balances are at least cashBalance cash and goldBarBalance gold.
Use it to check affordability before starting a purchase.
Signature
BOOL _NETWORK_IS_MONEY_BALANCE_NOT_LESS_THAN(int cashBalance, int goldBarBalance); // 0xAEC5F0119867E457 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | cashBalance | int |
| 2 | goldBarBalance | int |
Facts
| Name | _NETWORK_IS_MONEY_BALANCE_NOT_LESS_THAN |
|---|---|
| Hash | 0xAEC5F0119867E457 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xAEC5F0119867E457, -- _NETWORK_IS_MONEY_BALANCE_NOT_LESS_THAN
0, -- int cashBalance
0 -- int goldBarBalance
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xAEC5F0119867E457", // _NETWORK_IS_MONEY_BALANCE_NOT_LESS_THAN
0, // int cashBalance
0, // int goldBarBalance
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xAEC5F0119867E457, // _NETWORK_IS_MONEY_BALANCE_NOT_LESS_THAN
0, // int cashBalance
0 // int goldBarBalance
);Related MONEY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.