{"hash":"0xA09E7E7B","ns":"CFX","name":"SAVE_RESOURCE_FILE","slug":"SAVE_RESOURCE_FILE","official":true,"named":true,"luaName":"SaveResourceFile","game":"cfx","apiset":"server","returnType":"BOOL","params":[{"name":"resourceName","type":"char*","description":"The name of the resource."},{"name":"fileName","type":"char*","description":"The name of the file."},{"name":"data","type":"char*","description":"The data to write to the file."},{"name":"dataLength","type":"int","description":"The length of the written data."}],"returnsDescription":"A value indicating if the write succeeded.","summary":"Writes the specified data to a file in the specified resource.","descriptions":[{"source":"cfx","format":"md","body":"Writes the specified data to a file in the specified resource.\nUsing a length of `-1` will automatically detect the length assuming the data is a C string."}],"examples":[],"aliases":[],"enums":[],"related":["0x76A9EE1F"],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/SAVE_RESOURCE_FILE","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/SAVE_RESOURCE_FILE.md","snippets":{"lua":"local retval = SaveResourceFile(resourceName, fileName, data, dataLength)","luaInvoke":"local retval = Citizen.InvokeNative(0xa09e7e7b, resourceName, fileName, data, dataLength, Citizen.ReturnResultAnyway())","js":"const retval = SaveResourceFile(resourceName, fileName, data, dataLength);","jsInvoke":"const retval = Citizen.invokeNative('0xa09e7e7b', resourceName, fileName, data, dataLength, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0xa09e7e7b, resourceName, fileName, data, dataLength);","notes":[]}}