{"name":"titleRsc","operator":null,"title":"titleRsc","type":"command","url":"https://community.bistudio.com/wiki/titleRsc","revid":348002,"updated":"2023-11-08T10:24:40Z","groups":["GUI Control"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":"local","server_exec":false},"exec":null,"description":"Displays a resource defined in RscTitles. Also see cutRsc, with these two commands you can show two different resources at once.\n\n> [!NOTE]\n> **Arma 3:** Arma 3 v1.58 Multiple layers and map overlays are possible with cutRsc which provides more options and handles layers better.","syntaxes":[{"syntax":"titleRsc [text, type, speed, showInMap]","since":null,"effect":null,"exec":null,"params":[{"name":"text","type":"String","optional":false,"default":null,"description":"the class name of the resource. (\"Default\" will remove the current resource)","types":["String"],"since":null,"text":"text: String - the class name of the resource. (\"Default\" will remove the current resource)"},{"name":"type","type":"String","optional":false,"default":null,"description":"can be one of: \"PLAIN\", \"PLAIN DOWN\", \"BLACK\", \"BLACK FADED\", \"BLACK OUT\", \"BLACK IN\", \"WHITE OUT\" and \"WHITE IN\"; see Title Effect Types for more information about these values","types":["String"],"since":null,"text":"type: String - can be one of: \"PLAIN\", \"PLAIN DOWN\", \"BLACK\", \"BLACK FADED\", \"BLACK OUT\", \"BLACK IN\", \"WHITE OUT\" and \"WHITE IN\"; see Title Effect Types for more information about these values"},{"name":"speed","type":"Number","optional":true,"default":"-1","description":"time in seconds to fade in resource","types":["Number"],"since":null,"text":"speed: Number - (Optional, default -1) time in seconds to fade in resource"},{"name":"showInMap","type":"Boolean","optional":true,"default":"true","description":"false to hide the text when the map is opened","types":["Boolean"],"since":null,"text":"showInMap: Boolean - (Optional, default true) false to hide the text when the map is opened"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"[text, type, speed, showInMap]","types":["Array"]}}],"examples":[{"text":"```sqf\ntitleRsc [\"BIS\", \"PLAIN\"];\n```","code":["titleRsc [\"BIS\", \"PLAIN\"];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["titleText","titleObj","cutRsc","allActiveTitleEffects","activeTitleEffectParams"],"notes":[{"user":"Dr_Eyeball","date":"2008-06-30T08:44:00Z","text":"Using titleRsc (unlike cutRsc) for a HUD will mean:\n- the HUD will remain visible when you access the map and overlay it.\n- using the 'Direct communication' chat channel messages will interfere with the HUD by hiding it, since it appears to use the same 'resource layer'."},{"user":"Kenoxite","date":"2014-09-25T10:04:00Z","text":"In OFP/CWA any *<x>*Rsc will hide all the elements of the HUD, including the map."},{"user":"Honger","date":"2023-08-28T16:34:24Z","text":"The \"Default\" resource class does not exist in Arma 3 as of 2.12 version. Use a different class to remove resources that are not finite."}],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control","Introduced with Operation Flashpoint version 1.00","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: Scripting Commands"]}