CREATE_DUI
Creates a DUI browser.
Signature
long CREATE_DUI(char* url, int width, int height);Parameters
| Name | Type | Description |
|---|---|---|
url | char* | The initial URL to load in the browser. |
width | int | The width of the backing surface. |
height | int | The height of the backing surface. |
Returns long — A DUI object.
Description
Creates a DUI browser. This can be used to draw on a runtime texture using CREATE_RUNTIME_TEXTURE_FROM_DUI_HANDLE.
Usage
local retval = CreateDui(url, width, height)
-- always works, by hash
local retval = Citizen.InvokeNative(0x23eaf899, url, width, height, Citizen.ResultAsInteger())JavaScript and C#
const retval = CreateDui(url, width, height);
// by hash
const retval = Citizen.invokeNative('0x23eaf899', url, width, height, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x23eaf899, url, width, height);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.