_GET_OBJECT_LIGHT_INTENSITY
Returns float value to be used with _SET_LIGHT_INTENSITY_FOR_OBJECT
Hash
0x3397CD4E0353DFBARuntime name
GetObjectLightIntensityNamespaceOBJECT
SideClient
NameCommunity guess
Docs
Since build1207
Signature
float _GET_OBJECT_LIGHT_INTENSITY(Object object);Parameters
| Name | Type | Description |
|---|---|---|
object | Object | — |
Returns float
Description
Returns float value to be used with _SET_LIGHT_INTENSITY_FOR_OBJECT
Usage
local retval = GetObjectLightIntensity(object)
-- always works, by hash
local retval = Citizen.InvokeNative(0x3397CD4E0353DFBA, object, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetObjectLightIntensity(object);
// by hash
const retval = Citizen.invokeNative('0x3397CD4E0353DFBA', object, Citizen.returnResultAnyway(), Citizen.resultAsFloat());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.