{"hash":"0x12B8D689","ns":"CFX","name":"GET_EXTERNAL_KVP_INT","slug":"GET_EXTERNAL_KVP_INT","official":true,"named":true,"luaName":"GetExternalKvpInt","game":"cfx","apiset":"client","returnType":"int","params":[{"name":"resource","type":"char*","description":"The resource to fetch from."},{"name":"key","type":"char*","description":"The key to fetch"}],"returnsDescription":"A int that contains the value stored in the Kvp or nil/null if none.","summary":"A getter for SET_RESOURCE_KVP_INT, but for a specified resource.","descriptions":[{"source":"cfx","format":"md","body":"A getter for [SET_RESOURCE_KVP_INT](#\\_0x6A2B1E8), but for a specified resource."}],"examples":[{"lang":"lua","code":"local kvpValue = GetExternalKvpInt('food', 'bananabread') \nif kvpValue then\n\t-- do something!\nend","source":"cfx"}],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":3,"url":"https://natives.borderlinerp.com/natives/CFX/GET_EXTERNAL_KVP_INT","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_EXTERNAL_KVP_INT.md","snippets":{"lua":"local retval = GetExternalKvpInt(resource, key)","luaInvoke":"local retval = Citizen.InvokeNative(0x12b8d689, resource, key, Citizen.ResultAsInteger())","js":"const retval = GetExternalKvpInt(resource, key);","jsInvoke":"const retval = Citizen.invokeNative('0x12b8d689', resource, key, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x12b8d689, resource, key);","notes":[]}}