NETWORK_GET_NP_UNAVAILABLE_REASON
Hardcoded to return zero.
Hash
0x74FB3E29E6D10FA9Runtime name
NetworkGetNpUnavailableReasonNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x74FB3E29E6D10FA9Signature
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
local retval = NetworkGetNpUnavailableReason()
-- always works, by hash
local retval = Citizen.InvokeNative(0x74FB3E29E6D10FA9, Citizen.ResultAsInteger())JavaScript and C#
const retval = NetworkGetNpUnavailableReason();
// by hash
const retval = Citizen.invokeNative('0x74FB3E29E6D10FA9', Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x74FB3E29E6D10FA9);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.