RedM Natives

GET_DUI_HANDLE

Returns the NUI window handle for a specified DUI browser object.

Hash0x1655D41D
Runtime nameGetDuiHandle
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

char* GET_DUI_HANDLE(long duiObject);

Parameters

NameTypeDescription
duiObjectlong

The DUI browser handle.

Returns char* — The NUI window handle, for use in e.g. CREATE_RUNTIME_TEXTURE_FROM_DUI_HANDLE.

Description

Cfx.re native reference

Returns the NUI window handle for a specified DUI browser object.

Usage

Lua
local retval = GetDuiHandle(duiObject)

-- always works, by hash
local retval = Citizen.InvokeNative(0x1655d41d, duiObject, Citizen.ResultAsString())
JavaScript and C#
JavaScript
const retval = GetDuiHandle(duiObject);

// by hash
const retval = Citizen.invokeNative('0x1655d41d', duiObject, Citizen.returnResultAnyway(), Citizen.resultAsString());
C#
string retval = Function.Call<string>((Hash)0x1655d41d, duiObject);

Sources

Cfx.re native reference

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