LOAD_RESOURCE_FILE
Reads the contents of a text file in a specified resource. If executed on the client, this file has to be included in `files` in the resource manifest. Example: `local data = LoadResourceFile("devtools", "data.json")`
CFX
Signature
lua
LoadResourceFile(resourceName, fileName)
-- returns char*Parameters
| Name | Type | Description |
|---|---|---|
| char* | The resource name. | |
| char* | The file in the resource. |
Usage
lua
LoadResourceFile(resourceName, fileName)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
