RedM Natives

IS_NUI_FOCUSED

Returns the current NUI focus state previously set with SET_NUI_FOCUS.

Hash0x98545E6D
Runtime nameIsNuiFocused
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

BOOL IS_NUI_FOCUSED();

Returns BOOL — True or false.

Description

Cfx.re native reference

Returns the current NUI focus state previously set with SET_NUI_FOCUS.

Usage

Lua
local retval = IsNuiFocused()

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

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

Sources

Cfx.re native reference

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