SET_RESOURCE_KVP
A setter for GET_RESOURCE_KVP_STRING.
Signature
void SET_RESOURCE_KVP(char* key, char* value);Parameters
| Name | Type | Description |
|---|---|---|
key | char* | The key to set |
value | char* | The value to write |
Returns void
Description
A setter for GET_RESOURCE_KVP_STRING.
Usage
SetResourceKvp(key, value)
-- always works, by hash
Citizen.InvokeNative(0x21c7a35b, key, value)JavaScript and C#
SetResourceKvp(key, value);
// by hash
Citizen.invokeNative('0x21c7a35b', key, value);Function.Call((Hash)0x21c7a35b, key, value);Examples
SetResourceKvp('mollis', 'vesuvius citrate')See also
DELETE_RESOURCE_KVPFLUSH_RESOURCE_KVPNonsynchronous operations will not wait for a disk/filesystem flush before returning from a write or delete call.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.