{"hash":"0x76A9EE1F","ns":"CFX","name":"LOAD_RESOURCE_FILE","slug":"LOAD_RESOURCE_FILE","official":true,"named":true,"luaName":"LoadResourceFile","game":"cfx","apiset":"shared","returnType":"char*","params":[{"name":"resourceName","type":"char*","description":"The resource name."},{"name":"fileName","type":"char*","description":"The file in the resource."}],"returnsDescription":"The file contents","summary":"Reads the contents of a text file in a specified resource.","descriptions":[{"source":"cfx","format":"md","body":"Reads the contents of a text file in a specified resource.\nIf executed on the client, this file has to be included in `files` in the resource manifest.\nExample: `local data = LoadResourceFile(\"devtools\", \"data.json\")`"}],"examples":[],"aliases":[],"enums":[],"related":["0xA09E7E7B"],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/LOAD_RESOURCE_FILE","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/LOAD_RESOURCE_FILE.md","snippets":{"lua":"local retval = LoadResourceFile(resourceName, fileName)","luaInvoke":"local retval = Citizen.InvokeNative(0x76a9ee1f, resourceName, fileName, Citizen.ResultAsString())","js":"const retval = LoadResourceFile(resourceName, fileName);","jsInvoke":"const retval = Citizen.invokeNative('0x76a9ee1f', resourceName, fileName, Citizen.returnResultAnyway(), Citizen.resultAsString());","csharp":"string retval = Function.Call<string>((Hash)0x76a9ee1f, resourceName, fileName);","notes":[]}}