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
| Name | Type | Description |
|---|---|---|
| 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
