RedM Natives

NETWORK_DISPLAYNAMES_FROM_HANDLES_START

Hardcoded to return -1.

Hash0xD66C9E72B3CC4982
Runtime nameNetworkDisplaynamesFromHandlesStart
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xD66C9E72B3CC4982

Signature

int NETWORK_DISPLAYNAMES_FROM_HANDLES_START(Any* p0, Any p1);

Parameters

NameTypeDescription
p0Any*—
p1Any—

Returns int

Description

Hardcoded to return -1.

Usage

Lua
local retval, p0 = NetworkDisplaynamesFromHandlesStart(p1)

-- always works, by hash
local retval, p0 = Citizen.InvokeNative(0xD66C9E72B3CC4982, Citizen.PointerValueInt(), p1, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const [retval, p0] = NetworkDisplaynamesFromHandlesStart(p1);

// by hash
const [retval, p0] = Citizen.invokeNative('0xD66C9E72B3CC4982', Citizen.pointerValueInt(), p1, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
var p0 = new OutputArgument();
int retval = Function.Call<int>((Hash)0xD66C9E72B3CC4982, p0, p1);
// p0.GetResult<int>()
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
  • 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.