RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. GET_RESOURCE_METADATA

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

NameTypeDescription
char*The resource name.
char*The key in the resource manifest.
intThe 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

On this page

  • Signature
  • Parameters
  • Usage
  • Details