RedM Natives

NETWORK_GET_NP_UNAVAILABLE_REASON

Hardcoded to return zero.

Hash0x74FB3E29E6D10FA9
Runtime nameNetworkGetNpUnavailableReason
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x74FB3E29E6D10FA9

Signature

int NETWORK_GET_NP_UNAVAILABLE_REASON();

Returns int

Description

Hardcoded to return zero.

==== PS4 specific info ====

Returns some sort of unavailable reason:
-1 = REASON_INVALID
0 = REASON_OTHER
1 = REASON_SYSTEM_UPDATE
2 = REASON_GAME_UPDATE
3 = REASON_SIGNED_OUT
4 = REASON_AGE
5 = REASON_CONNECTION

=================================

Usage

Lua
local retval = NetworkGetNpUnavailableReason()

-- always works, by hash
local retval = Citizen.InvokeNative(0x74FB3E29E6D10FA9, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = NetworkGetNpUnavailableReason();

// by hash
const retval = Citizen.invokeNative('0x74FB3E29E6D10FA9', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x74FB3E29E6D10FA9);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.