RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. SAVE_RESOURCE_FILE

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 BOOL

Parameters

NameTypeDescription
char*The name of the resource.
char*The name of the file.
char*The data to write to the file.
intThe 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

On this page

  • Signature
  • Parameters
  • Usage
  • Details