NETWORK_CAN_VIEW_GAMER_USER_CONTENT
Hash
0x246545C37C27A717Runtime name
NetworkCanViewGamerUserContentNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
Signature
BOOL NETWORK_CAN_VIEW_GAMER_USER_CONTENT(Any* gamerHandle);Parameters
| Name | Type | Description |
|---|---|---|
gamerHandle | Any* | — |
Returns BOOL
Usage
local retval, gamerHandle = NetworkCanViewGamerUserContent(gamerHandle)
-- always works, by hash
local retval, gamerHandle = Citizen.InvokeNative(0x246545C37C27A717, Citizen.PointerValueIntInitialized(gamerHandle), Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, gamerHandle] = NetworkCanViewGamerUserContent(gamerHandle);
// by hash
const [retval, gamerHandle] = Citizen.invokeNative('0x246545C37C27A717', Citizen.pointerValueIntInitialized(gamerHandle), Citizen.returnResultAnyway());var gamerHandle = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x246545C37C27A717, 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.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.