{"hash":"0xDD379006","ns":"CFX","name":"START_FIND_KVP","slug":"START_FIND_KVP","official":true,"named":true,"luaName":"StartFindKvp","game":"cfx","apiset":"shared","returnType":"int","params":[{"name":"prefix","type":"char*","description":"A prefix match"}],"returnsDescription":"A KVP find handle to use with [FIND_KVP](#\\_0xBD7BEBC5) and close with [END_FIND_KVP](#\\_0xB3210203)","summary":"","descriptions":[],"examples":[{"lang":"lua","code":"SetResourceKvp('mollis:2', 'should be taken with alcohol')\nSetResourceKvp('mollis:1', 'vesuvius citrate')\nSetResourceKvp('mollis:manufacturer', 'Betta Pharmaceuticals')\n\nlocal kvpHandle = StartFindKvp('mollis:')\n\nif kvpHandle ~= -1 then \n\tlocal key\n\t\n\trepeat\n\t\tkey = FindKvp(kvpHandle)\n\n\t\tif key then\n\t\t\tprint(('%s: %s'):format(key, GetResourceKvpString(key)))\n\t\tend\n\tuntil not key\n\n\tEndFindKvp(kvpHandle)\nelse\n\tprint('No KVPs found')\nend","source":"cfx"}],"aliases":[],"enums":[],"related":["0xB3210203"],"sources":["cfx"],"doc":3,"url":"https://natives.borderlinerp.com/natives/CFX/START_FIND_KVP","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/START_FIND_KVP.md","snippets":{"lua":"local retval = StartFindKvp(prefix)","luaInvoke":"local retval = Citizen.InvokeNative(0xdd379006, prefix, Citizen.ResultAsInteger())","js":"const retval = StartFindKvp(prefix);","jsInvoke":"const retval = Citizen.invokeNative('0xdd379006', prefix, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xdd379006, prefix);","notes":[]}}