# CFX::GET_EXTERNAL_KVP_FLOAT

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

## Signature

```c
float GET_EXTERNAL_KVP_FLOAT(char* resource, char* key);
```

## Parameters

- `resource` (`char*`) — The resource to fetch from.
- `key` (`char*`) — The key to fetch

## Returns

`float` — A float that contains the value stored in the Kvp or nil/null if none.

## Description

*Source: Cfx.re native reference*

A getter for [SET_RESOURCE_KVP_FLOAT](#\_0x9ADD2938), but for a specified resource.

## Usage

### Lua

```lua
local retval = GetExternalKvpFloat(resource, key)

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

### JavaScript

```js
const retval = GetExternalKvpFloat(resource, key);

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

### C#

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

## Examples

*Source: Cfx.re native reference*

```lua
local kvpValue = GetExternalKvpFloat('drugs', 'mollis') 
if kvpValue then
	-- do something!
end
```

*Sources: Cfx.re native reference.*
