RedM Natives

SET_RESOURCE_KVP_INT

A setter for GET_RESOURCE_KVP_INT.

Hash0x6A2B1E8
Runtime nameSetResourceKvpInt
NamespaceCFX
SideClient + server
NameOfficial
Docs

Signature

void SET_RESOURCE_KVP_INT(char* key, int value);

Parameters

NameTypeDescription
keychar*

The key to set

valueint

The value to write

Returns void

Description

Usage

Lua
SetResourceKvpInt(key, value)

-- always works, by hash
Citizen.InvokeNative(0x6a2b1e8, key, value)
JavaScript and C#
JavaScript
SetResourceKvpInt(key, value);

// by hash
Citizen.invokeNative('0x6a2b1e8', key, value);
C#
Function.Call((Hash)0x6a2b1e8, key, value);

Examples

LUA · Cfx.re native reference
local lickMy = 42
SetResourceKvp('bananabread', lickMy)

See also

Sources

Cfx.re native reference

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