START_FIND_KVP
CFX
Signature
lua
StartFindKvp(prefix)
-- returns intParameters
| Name | Type | Description |
|---|---|---|
| char* | A prefix match |
Usage
Named call
StartFindKvp(prefix)InvokeNative
Citizen.InvokeNative(0xDD379006, prefix)lua 1
SetResourceKvp('mollis:2', 'should be taken with alcohol')
SetResourceKvp('mollis:1', 'vesuvius citrate')
SetResourceKvp('mollis:manufacturer', 'Betta Pharmaceuticals')
local kvpHandle = StartFindKvp('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
