RedM Natives

SET_NUI_FOCUS

Hash0x5B98AE30
Runtime nameSetNuiFocus
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void SET_NUI_FOCUS(BOOL hasFocus, BOOL hasCursor);

Parameters

NameTypeDescription
hasFocusBOOL—
hasCursorBOOL—

Returns void

Usage

Lua
SetNuiFocus(hasFocus, hasCursor)

-- always works, by hash
Citizen.InvokeNative(0x5b98ae30, hasFocus, hasCursor)
JavaScript and C#
JavaScript
SetNuiFocus(hasFocus, hasCursor);

// by hash
Citizen.invokeNative('0x5b98ae30', hasFocus, hasCursor);
C#
Function.Call((Hash)0x5b98ae30, hasFocus, hasCursor);

Sources

Cfx.re native reference

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