RedM Natives

_SET_MASK_OVERLAY

Applies a 2D fullscreen mask/overlay component to the screen.

Hash0x21F00E08CBB5F37B
Runtime nameSetMaskOverlay
NamespaceGRAPHICS
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_MASK_OVERLAY(const char* maskName);

Parameters

NameTypeDescription
maskNameconst char*—

Returns void

Description

alloc8or RDR3 NativeDB

Applies a 2D fullscreen mask/overlay component to the screen.
Used in cutscenes or scripts when the player/ped looks through binoculars, scopes, or cameras.
Example component: COMPONENT_BINOCULARS_SCOPE01.
Clear with _RESET_MASK_OVERLAY.

VORPCORE RDR3natives

Params: COMPONENT_BINOCULARS_SCOPE01

Usage

Lua
SetMaskOverlay(maskName)

-- always works, by hash
Citizen.InvokeNative(0x21F00E08CBB5F37B, maskName)
JavaScript and C#
JavaScript
SetMaskOverlay(maskName);

// by hash
Citizen.invokeNative('0x21F00E08CBB5F37B', maskName);
C#
Function.Call((Hash)0x21F00E08CBB5F37B, maskName);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

See also

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

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