IS_DUI_AVAILABLE
Returns whether or not a browser is created for a specified DUI browser object.
Signature
BOOL IS_DUI_AVAILABLE(long duiObject);Parameters
| Name | Type | Description |
|---|---|---|
duiObject | long | The DUI browser handle. |
Returns BOOL — A boolean indicating TRUE if the browser is created.
Description
Returns whether or not a browser is created for a specified DUI browser object.
Usage
local retval = IsDuiAvailable(duiObject)
-- always works, by hash
local retval = Citizen.InvokeNative(0x7aac3b4c, duiObject, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsDuiAvailable(duiObject);
// by hash
const retval = Citizen.invokeNative('0x7aac3b4c', duiObject, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x7aac3b4c, duiObject);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.