SAVE_RESOURCE_FILE
Writes the specified data to a file in the specified resource. Using a length of `-1` will automatically detect the length assuming the data is a C string.
CFX
Signature
lua
SaveResourceFile(resourceName, fileName, data, 0)
-- returns BOOLParameters
| Name | Type | Description |
|---|---|---|
| char* | The name of the resource. | |
| char* | The name of the file. | |
| char* | The data to write to the file. | |
| int | The length of the written data. |
Usage
lua
SaveResourceFile(resourceName, fileName, data, 0)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
