{"name":"BIS_fnc_initLeaflet","title":"BIS fnc initLeaflet","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_initLeaflet","revid":376288,"updated":"2025-09-29T12:43:15Z","groups":["Interaction"],"status":"ok","games":{"arma3":"1.76"},"since":"arma3 1.76","arma3_since":"1.76","description":"Initialise interactive leaflet.","syntaxes":[{"syntax":"[mode, parameters] call BIS_fnc_initLeaflet","params":[{"name":"mode","type":"String","description":"\"init\" for scripted initialisation, other mode (\"fired\") is used when leaflets are fired as a weapon","type_expr":"String"},{"name":"parameters","type":"Array in format:","description":"Array in format:\n\n- [leaflet, texture, text]:\n  - leaflet: Object - the leaflet object itself\n  - texture: String - texture path\n  - text: String - localized text, shown when previewing the leaflet in full screen\n- [leaflet, cfgLeafletsClass]:\n  - leaflet: Object - the leaflet object itself\n  - cfgLeafletsClass: String - class name\n- [position, cfgLeafletsClass]:\n  - position: Array format Position - desired placement position (see createVehicle)\n  - cfgLeafletsClass: String - class name","type_expr":"Array","text":"parameters: Array in format:\n\n- [leaflet, texture, text]:\n  - leaflet: Object - the leaflet object itself\n  - texture: String - texture path\n  - text: String - localized text, shown when previewing the leaflet in full screen\n- [leaflet, cfgLeafletsClass]:\n  - leaflet: Object - the leaflet object itself\n  - cfgLeafletsClass: String - class name\n- [position, cfgLeafletsClass]:\n  - position: Array format Position - desired placement position (see createVehicle)\n  - cfgLeafletsClass: String - class name"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["[\"init\", [myLeaflet, \"#(argb,8,8,3)color(1,1,0,1)\", \"Yellow pages\"]] call BIS_fnc_initLeaflet;"]},{"code":["[\"init\", [myLeaflet, \"Custom_02\"]] call BIS_fnc_initLeaflet;"]},{"code":["[\"init\", [myLeaflet, \"West\"]] call BIS_fnc_initLeaflet;"]},{"code":["[\"init\", [getPosATL player, \"Custom_02\"]] call BIS_fnc_initLeaflet;"]}],"see_also":["Arma 3: Leaflets","BIS_fnc_initInspectable"]}