{"hash":"0x776E864","ns":"CFX","name":"GET_NUM_RESOURCE_METADATA","slug":"GET_NUM_RESOURCE_METADATA","official":true,"named":true,"luaName":"GetNumResourceMetadata","game":"cfx","apiset":"shared","returnType":"int","params":[{"name":"resourceName","type":"char*","description":"The resource name."},{"name":"metadataKey","type":"char*","description":"The key to look up in the resource manifest."}],"summary":"Gets the amount of metadata values with the specified key existing in the specified resource's manifest.","descriptions":[{"source":"cfx","format":"md","body":"Gets the amount of metadata values with the specified key existing in the specified resource's manifest.\nSee also: [Resource manifest](https://docs.fivem.net/docs/scripting-reference/resource-manifest/)"}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_NUM_RESOURCE_METADATA","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_NUM_RESOURCE_METADATA.md","snippets":{"lua":"local retval = GetNumResourceMetadata(resourceName, metadataKey)","luaInvoke":"local retval = Citizen.InvokeNative(0x776e864, resourceName, metadataKey, Citizen.ResultAsInteger())","js":"const retval = GetNumResourceMetadata(resourceName, metadataKey);","jsInvoke":"const retval = Citizen.invokeNative('0x776e864', resourceName, metadataKey, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x776e864, resourceName, metadataKey);","notes":[]}}