RedM Natives

_SET_OBJECT_LANTERN_LIGHT_DISABLED

Enables or disables light emission for a dropped lantern object.

Hash0x7FCD49388BC9B775
Runtime nameSetObjectLanternLightDisabled
NamespaceOBJECT
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_SET_OBJECT_LANTERN_DISABLE_LIGHT

Signature

void _SET_OBJECT_LANTERN_LIGHT_DISABLED(Object object, BOOL toggle);

Parameters

NameTypeDescription
objectObject—
toggleBOOL—

Returns void

Description

alloc8or RDR3 NativeDB

Enables or disables light emission for a dropped lantern object.
Primarily used on lantern weapon entities after they have been dropped.
Has no effect while the lantern is equipped/held by a ped.
The toggle behaves as a disable-light flag: true turns the lantern light off, false leaves it on.

VORPCORE RDR3natives

Primarily used on lantern weapon entities after they have been dropped.
This native does NOT affect lanterns while they are being held by a ped

Usage

Lua
SetObjectLanternLightDisabled(object, toggle)

-- always works, by hash
Citizen.InvokeNative(0x7FCD49388BC9B775, object, toggle)
JavaScript and C#
JavaScript
SetObjectLanternLightDisabled(object, toggle);

// by hash
Citizen.invokeNative('0x7FCD49388BC9B775', object, toggle);
C#
Function.Call((Hash)0x7FCD49388BC9B775, object, toggle);
  • 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.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

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