RedM Natives

IS_DUI_AVAILABLE

Returns whether or not a browser is created for a specified DUI browser object.

Hash0x7AAC3B4C
Runtime nameIsDuiAvailable
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

BOOL IS_DUI_AVAILABLE(long duiObject);

Parameters

NameTypeDescription
duiObjectlong

The DUI browser handle.

Returns BOOL — A boolean indicating TRUE if the browser is created.

Description

Cfx.re native reference

Returns whether or not a browser is created for a specified DUI browser object.

Usage

Lua
local retval = IsDuiAvailable(duiObject)

-- always works, by hash
local retval = Citizen.InvokeNative(0x7aac3b4c, duiObject, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsDuiAvailable(duiObject);

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

Sources

Cfx.re native reference

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