GetExternalKvpFloat
Docslocal retval = GetExternalKvpFloat(resource, key)Description
A getter for SET_RESOURCE_KVP_FLOAT, but for a specified resource.
Parameters
| Name | Type | Description |
|---|---|---|
resource | char* | The resource to fetch from. |
key | char* | The key to fetch |
Returns
floatReturns a floating-point number.
Examples
Official
local kvpValue = GetExternalKvpFloat('drugs', 'mollis')
if kvpValue then
-- do something!
end