{"hash":"0x9862B266","ns":"CFX","name":"REGISTER_RESOURCE_ASSET","slug":"REGISTER_RESOURCE_ASSET","official":true,"named":true,"luaName":"RegisterResourceAsset","game":"cfx","apiset":"server","returnType":"char*","params":[{"name":"resourceName","type":"char*","description":"The resource to add the asset to."},{"name":"fileName","type":"char*","description":"A file name in the resource."}],"returnsDescription":"A cache string to pass to `REGISTER_STREAMING_FILE_FROM_CACHE` on the client.","summary":"Registers a cached resource asset with the resource system, similar to the automatic scanning of the stream/ folder.","descriptions":[{"source":"cfx","format":"md","body":"**Experimental**: This native may be altered or removed in future versions of CitizenFX without warning.\n\nRegisters a cached resource asset with the resource system, similar to the automatic scanning of the `stream/` folder."}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/REGISTER_RESOURCE_ASSET","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/REGISTER_RESOURCE_ASSET.md","snippets":{"lua":"local retval = RegisterResourceAsset(resourceName, fileName)","luaInvoke":"local retval = Citizen.InvokeNative(0x9862b266, resourceName, fileName, Citizen.ResultAsString())","js":"const retval = RegisterResourceAsset(resourceName, fileName);","jsInvoke":"const retval = Citizen.invokeNative('0x9862b266', resourceName, fileName, Citizen.returnResultAnyway(), Citizen.resultAsString());","csharp":"string retval = Function.Call<string>((Hash)0x9862b266, resourceName, fileName);","notes":[]}}