SET_RESOURCE_KVP_INT
A setter for GET_RESOURCE_KVP_INT.
Signature
void SET_RESOURCE_KVP_INT(char* key, int value);Parameters
| Name | Type | Description |
|---|---|---|
key | char* | The key to set |
value | int | The value to write |
Returns void
Description
A setter for GET_RESOURCE_KVP_INT.
Usage
SetResourceKvpInt(key, value)
-- always works, by hash
Citizen.InvokeNative(0x6a2b1e8, key, value)JavaScript and C#
SetResourceKvpInt(key, value);
// by hash
Citizen.invokeNative('0x6a2b1e8', key, value);Function.Call((Hash)0x6a2b1e8, key, value);Examples
local lickMy = 42
SetResourceKvp('bananabread', lickMy)See also
GET_RESOURCE_KVP_INTA getter for SET_RESOURCE_KVP_INT.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.