START_FIND_EXTERNAL_KVP
Equivalent of [START_FIND_KVP](#\_0xDD379006), but for another resource than the current one.
CFX
Signature
lua
StartFindExternalKvp(resourceName, prefix)
-- returns intParameters
| Name | Type | Description |
|---|---|---|
| char* | The resource to try finding the key/values for | |
| char* | A prefix match |
Usage
Named call
StartFindExternalKvp(resourceName, prefix)InvokeNative
Citizen.InvokeNative(0x8F2EECC3, resourceName, prefix)lua 1
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')
endDetails
- Hash
- API set
- Source
- cfx
Source: cfx
