GET_NUM_RESOURCE_METADATA
Gets the amount of metadata values with the specified key existing in the specified resource's manifest.
Signature
int GET_NUM_RESOURCE_METADATA(char* resourceName, char* metadataKey);Parameters
| Name | Type | Description |
|---|---|---|
resourceName | char* | The resource name. |
metadataKey | char* | The key to look up in the resource manifest. |
Returns int
Description
Gets the amount of metadata values with the specified key existing in the specified resource's manifest. See also: Resource manifest
Usage
local retval = GetNumResourceMetadata(resourceName, metadataKey)
-- always works, by hash
local retval = Citizen.InvokeNative(0x776e864, resourceName, metadataKey, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetNumResourceMetadata(resourceName, metadataKey);
// by hash
const retval = Citizen.invokeNative('0x776e864', resourceName, metadataKey, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x776e864, resourceName, metadataKey);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.