# CFX::GET_VISUAL_SETTING_FLOAT

- **Hash:** `0x15346B4D`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetVisualSettingFloat`
- **Side:** client (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_VISUAL_SETTING_FLOAT

## Signature

```c
float GET_VISUAL_SETTING_FLOAT(char* name);
```

## Parameters

- `name` (`char*`) — 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

*Source: Cfx.re native reference*

A getter for [SET_VISUAL_SETTING_FLOAT](#\_0xD1D31681).

## Usage

### Lua

```lua
local retval = GetVisualSettingFloat(name)

-- always available, by hash
local retval = Citizen.InvokeNative(0x15346b4d, name, Citizen.ResultAsFloat())
```

### JavaScript

```js
const retval = GetVisualSettingFloat(name);

// by hash
const retval = Citizen.invokeNative('0x15346b4d', name, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
```

### C#

```csharp
float retval = Function.Call<float>((Hash)0x15346b4d, name);
```

## See also

- [CFX::SET_VISUAL_SETTING_FLOAT](https://natives.borderlinerp.com/natives/CFX/SET_VISUAL_SETTING_FLOAT.md) — Overrides a floating point value from visualsettings.dat temporarily.

*Sources: Cfx.re native reference.*
