_SET_OBJECT_LANTERN_LIGHT_DISABLED
Enables or disables light emission for a dropped lantern object.
Hash
0x7FCD49388BC9B775Runtime name
SetObjectLanternLightDisabledNamespaceOBJECT
SideClient
NameCommunity guess
Docs
Since build1207
Also known as
_SET_OBJECT_LANTERN_DISABLE_LIGHTSignature
void _SET_OBJECT_LANTERN_LIGHT_DISABLED(Object object, BOOL toggle);Parameters
| Name | Type | Description |
|---|---|---|
object | Object | — |
toggle | BOOL | — |
Returns void
Description
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.
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
SetObjectLanternLightDisabled(object, toggle)
-- always works, by hash
Citizen.InvokeNative(0x7FCD49388BC9B775, object, toggle)JavaScript and C#
SetObjectLanternLightDisabled(object, toggle);
// by hash
Citizen.invokeNative('0x7FCD49388BC9B775', object, toggle);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
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.