# CFX::GET_RESOURCE_KVP_FLOAT

- **Hash:** `0x35BDCEEA`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetResourceKvpFloat`
- **Side:** shared (Cfx runtime native)
- **Name status:** official
- **Documentation:** described with examples
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_RESOURCE_KVP_FLOAT

## Signature

```c
float GET_RESOURCE_KVP_FLOAT(char* key);
```

## Parameters

- `key` (`char*`) — The key to fetch

## Returns

`float` — The floating-point value stored under the specified key, or 0.0 if not found.

## Description

*Source: Cfx.re native reference*

A getter for [SET_RESOURCE_KVP_FLOAT](#\_0x9ADD2938).

## Usage

### Lua

```lua
local retval = GetResourceKvpFloat(key)

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

### JavaScript

```js
const retval = GetResourceKvpFloat(key);

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

### C#

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

## Examples

*Source: Cfx.re native reference*

```lua
local kvpValue = GetResourceKvpFloat('mollis')
if kvpValue ~= 0.0 then
	-- do something!
end
```

## See also

- [CFX::SET_RESOURCE_KVP_FLOAT](https://natives.borderlinerp.com/natives/CFX/SET_RESOURCE_KVP_FLOAT.md) — A setter for GET_RESOURCE_KVP_FLOAT.

*Sources: Cfx.re native reference.*
