GetExternalKvpInt
Docslocal retval = GetExternalKvpInt(resource, key)Description
A getter for SET_RESOURCE_KVP_INT, but for a specified resource.
Parameters
| Name | Type | Description |
|---|---|---|
resource | char* | The resource to fetch from. |
key | char* | The key to fetch |
Returns
intReturns an integer value.
Examples
Official
local kvpValue = GetExternalKvpInt('food', 'bananabread')
if kvpValue then
-- do something!
end