GET_RESOURCE_METADATA
Gets the metadata value at a specified key/index from a resource's manifest. See also: [Resource manifest](https://docs.fivem.net/docs/scripting-reference/resource-manifest/)
CFX
Signature
lua
GetResourceMetadata(resourceName, metadataKey, 0)
-- returns char*Parameters
| Name | Type | Description |
|---|---|---|
| char* | The resource name. | |
| char* | The key in the resource manifest. | |
| int | The value index, in a range from \[0..GET_NUM_RESOURCE_METDATA-1]. |
Usage
lua
GetResourceMetadata(resourceName, metadataKey, 0)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
