GET_DUI_HANDLE
Returns the NUI window handle for a specified DUI browser object.
Signature
char* GET_DUI_HANDLE(long duiObject);Parameters
| Name | Type | Description |
|---|---|---|
duiObject | long | The DUI browser handle. |
Returns char* — The NUI window handle, for use in e.g. CREATE_RUNTIME_TEXTURE_FROM_DUI_HANDLE.
Description
Returns the NUI window handle for a specified DUI browser object.
Usage
local retval = GetDuiHandle(duiObject)
-- always works, by hash
local retval = Citizen.InvokeNative(0x1655d41d, duiObject, Citizen.ResultAsString())JavaScript and C#
const retval = GetDuiHandle(duiObject);
// by hash
const retval = Citizen.invokeNative('0x1655d41d', duiObject, Citizen.returnResultAnyway(), Citizen.resultAsString());string retval = Function.Call<string>((Hash)0x1655d41d, duiObject);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.