_NETWORK_GET_GAMERTAG_FROM_FRIEND
Hash
0x5659D87BE674AB17Runtime name
NetworkGetGamertagFromFriendNamespaceNETWORK
SideClient
NameCommunity guess
Docs
Since build1207
Signature
const char* _NETWORK_GET_GAMERTAG_FROM_FRIEND(Any* gamerHandle);Parameters
| Name | Type | Description |
|---|---|---|
gamerHandle | Any* | — |
Returns const char*
Usage
local retval, gamerHandle = NetworkGetGamertagFromFriend(gamerHandle)
-- always works, by hash
local retval, gamerHandle = Citizen.InvokeNative(0x5659D87BE674AB17, Citizen.PointerValueIntInitialized(gamerHandle), Citizen.ResultAsString())JavaScript and C#
const [retval, gamerHandle] = NetworkGetGamertagFromFriend(gamerHandle);
// by hash
const [retval, gamerHandle] = Citizen.invokeNative('0x5659D87BE674AB17', Citizen.pointerValueIntInitialized(gamerHandle), Citizen.returnResultAnyway(), Citizen.resultAsString());var gamerHandle = new OutputArgument();
string retval = Function.Call<string>((Hash)0x5659D87BE674AB17, gamerHandle);
// gamerHandle.GetResult<int>()- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
Any*arguments are often structs. Build them with a DataView buffer and pass it with:Buffer()— see the examples and notes below.- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.