RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. START_FIND_EXTERNAL_KVP

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 int

Parameters

NameTypeDescription
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')
end

Details

Hash
API set
Source
cfx

Source: cfx

On this page

  • Signature
  • Parameters
  • Usage
  • Details