RedM Natives

_GET_OBJECT_LIGHT_INTENSITY

Returns float value to be used with _SET_LIGHT_INTENSITY_FOR_OBJECT

Hash0x3397CD4E0353DFBA
Runtime nameGetObjectLightIntensity
NamespaceOBJECT
SideClient
NameCommunity guess
Docs
Since build1207

Signature

float _GET_OBJECT_LIGHT_INTENSITY(Object object);

Parameters

NameTypeDescription
objectObject—

Returns float

Description

Returns float value to be used with _SET_LIGHT_INTENSITY_FOR_OBJECT

Usage

Lua
local retval = GetObjectLightIntensity(object)

-- always works, by hash
local retval = Citizen.InvokeNative(0x3397CD4E0353DFBA, object, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetObjectLightIntensity(object);

// by hash
const retval = Citizen.invokeNative('0x3397CD4E0353DFBA', object, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0x3397CD4E0353DFBA, object);
  • 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

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