RedM Natives

NETWORK_START_USER_CONTENT_PERMISSIONS_CHECK

Always returns -1. Seems to be XB1 specific.

Hash0xDEB2B99A1AF1A2A6
Runtime nameNetworkStartUserContentPermissionsCheck
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xDEB2B99A1AF1A2A6

Signature

int NETWORK_START_USER_CONTENT_PERMISSIONS_CHECK(Any* gamerHandle);

Parameters

NameTypeDescription
gamerHandleAny*—

Returns int

Description

Always returns -1. Seems to be XB1 specific.

Usage

Lua
local retval, gamerHandle = NetworkStartUserContentPermissionsCheck(gamerHandle)

-- always works, by hash
local retval, gamerHandle = Citizen.InvokeNative(0xDEB2B99A1AF1A2A6, Citizen.PointerValueIntInitialized(gamerHandle), Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const [retval, gamerHandle] = NetworkStartUserContentPermissionsCheck(gamerHandle);

// by hash
const [retval, gamerHandle] = Citizen.invokeNative('0xDEB2B99A1AF1A2A6', Citizen.pointerValueIntInitialized(gamerHandle), Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
var gamerHandle = new OutputArgument();
int retval = Function.Call<int>((Hash)0xDEB2B99A1AF1A2A6, 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

alloc8or RDR3 NativeDB

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