StartFindExternalKvp
Docslocal retval = StartFindExternalKvp(resourceName, prefix)Description
Equivalent of START_FIND_KVP, but for another resource than the current one.
Parameters
| Name | Type | Description |
|---|---|---|
resourceName | char* | The resource to try finding the key/values for |
prefix | char* | A prefix match |
Returns
intReturns an integer value.
Examples
Official
local kvpHandle = StartFindExternalKvp('drugs', 'mollis:')
if kvpHandle ~= -1 then
local key
repeat
key = FindKvp(kvpHandle)
if key then
print(('%s: %s'):format(key, GetResourceKvpString(key)))
end
until not key
EndFindKvp(kvpHandle)
else
print('No KVPs found')
end