RedM Natives

SET_RESOURCE_KVP_NO_SYNC

Nonsynchronous SET_RESOURCE_KVP operation; see FLUSH_RESOURCE_KVP.

Hash0xCF9A2FF
Runtime nameSetResourceKvpNoSync
NamespaceCFX
SideClient + server
NameOfficial
Docs

Signature

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

Parameters

NameTypeDescription
keychar*

The key to set

valuechar*

The value to write

Returns void

Description

Usage

Lua
SetResourceKvpNoSync(key, value)

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

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

See also

Sources

Cfx.re native reference

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