RedM Natives

SET_NUI_ZINDEX

Set the z-index of the NUI resource.

Hash0x3734AAFF
Runtime nameSetNuiZindex
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void SET_NUI_ZINDEX(int zIndex);

Parameters

NameTypeDescription
zIndexint

New z-index value.

Returns void

Description

Cfx.re native reference

Set the z-index of the NUI resource.

Usage

Lua
SetNuiZindex(zIndex)

-- always works, by hash
Citizen.InvokeNative(0x3734aaff, zIndex)
JavaScript and C#
JavaScript
SetNuiZindex(zIndex);

// by hash
Citizen.invokeNative('0x3734aaff', zIndex);
C#
Function.Call((Hash)0x3734aaff, zIndex);

Sources

Cfx.re native reference

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