RedM Natives

GET_VISUAL_SETTING_FLOAT

A getter for SET_VISUAL_SETTING_FLOAT.

Hash0x15346B4D
Runtime nameGetVisualSettingFloat
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

float GET_VISUAL_SETTING_FLOAT(char* name);

Parameters

NameTypeDescription
namechar*

The name of the value to get, such as pedLight.color.red.

Returns float — Returns the floating point value of the specified visual setting on success.

Description

Usage

Lua
local retval = GetVisualSettingFloat(name)

-- always works, by hash
local retval = Citizen.InvokeNative(0x15346b4d, name, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetVisualSettingFloat(name);

// by hash
const retval = Citizen.invokeNative('0x15346b4d', name, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0x15346b4d, name);

See also

Sources

Cfx.re native reference

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