RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. REGISTER_RESOURCE_ASSET

REGISTER_RESOURCE_ASSET

**Experimental**: This native may be altered or removed in future versions of CitizenFX without warning. Registers a cached resource asset with the resource system, similar to the automatic scanning of the `stream/` folder.

CFX

Signature

lua
RegisterResourceAsset(resourceName, fileName)
-- returns char*

Parameters

NameTypeDescription
char*The resource to add the asset to.
char*A file name in the resource.

Usage

lua
RegisterResourceAsset(resourceName, fileName)

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