{"hash":"0x557B586A","ns":"CFX","name":"GET_RESOURCE_KVP_INT","slug":"GET_RESOURCE_KVP_INT","official":true,"named":true,"luaName":"GetResourceKvpInt","game":"cfx","apiset":"shared","returnType":"int","params":[{"name":"key","type":"char*","description":"The key to fetch"}],"returnsDescription":"The integer value stored under the specified key, or 0 if not found.","summary":"A getter for SET_RESOURCE_KVP_INT.","descriptions":[{"source":"cfx","format":"md","body":"A getter for [SET_RESOURCE_KVP_INT](#\\_0x6A2B1E8)."}],"examples":[{"lang":"lua","code":"local kvpValue = GetResourceKvpInt('bananabread') \nif kvpValue ~= 0 then\n\t-- do something!\nend","source":"cfx"}],"aliases":[],"enums":[],"related":["0x6A2B1E8"],"sources":["cfx"],"doc":3,"url":"https://natives.borderlinerp.com/natives/CFX/GET_RESOURCE_KVP_INT","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_RESOURCE_KVP_INT.md","snippets":{"lua":"local retval = GetResourceKvpInt(key)","luaInvoke":"local retval = Citizen.InvokeNative(0x557b586a, key, Citizen.ResultAsInteger())","js":"const retval = GetResourceKvpInt(key);","jsInvoke":"const retval = Citizen.invokeNative('0x557b586a', key, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x557b586a, key);","notes":[]}}