# CFX::SET_RESOURCE_KVP_INT

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

## Signature

```c
void SET_RESOURCE_KVP_INT(char* key, int value);
```

## Parameters

- `key` (`char*`) — The key to set
- `value` (`int`) — The value to write

## Returns

`void`

## Description

*Source: Cfx.re native reference*

A setter for [GET_RESOURCE_KVP_INT](#\_0x557B586A).

## Usage

### Lua

```lua
SetResourceKvpInt(key, value)

-- always available, by hash
Citizen.InvokeNative(0x6a2b1e8, key, value)
```

### JavaScript

```js
SetResourceKvpInt(key, value);

// by hash
Citizen.invokeNative('0x6a2b1e8', key, value);
```

### C#

```csharp
Function.Call((Hash)0x6a2b1e8, key, value);
```

## Examples

*Source: Cfx.re native reference*

```lua
local lickMy = 42
SetResourceKvp('bananabread', lickMy)
```

## See also

- [CFX::GET_RESOURCE_KVP_INT](https://natives.borderlinerp.com/natives/CFX/GET_RESOURCE_KVP_INT.md) — A getter for SET_RESOURCE_KVP_INT.

*Sources: Cfx.re native reference.*
