RedM Natives

SET_RESOURCE_KVP

A setter for GET_RESOURCE_KVP_STRING.

Hash0x21C7A35B
Runtime nameSetResourceKvp
NamespaceCFX
SideClient + server
NameOfficial
Docs

Signature

void SET_RESOURCE_KVP(char* key, char* value);

Parameters

NameTypeDescription
keychar*

The key to set

valuechar*

The value to write

Returns void

Description

Usage

Lua
SetResourceKvp(key, value)

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

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

Examples

LUA · Cfx.re native reference
SetResourceKvp('mollis', 'vesuvius citrate')

See also

Sources

Cfx.re native reference

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