{"name":"enableSaving","title":"enableSaving","type":"command","url":"https://community.bistudio.com/wiki/enableSaving","revid":340305,"updated":"2023-04-28T23:04:59Z","groups":["Mission Information"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Enable / disable saving of the game with an optional autosave.","syntaxes":[{"syntax":"enableSaving enable","params":[{"name":"enable","type":"Boolean","type_expr":"Boolean"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"enable"}},{"syntax":"enableSaving [enable, save]","params":[{"name":"enable","type":"Boolean","description":"allow saveGame command usage and manual saving","type_expr":"Boolean"},{"name":"save","type":"Boolean","description":"create an autosave on command execution","type_expr":"Boolean"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"[enable, save]"}}],"examples":[{"text":"```sqf\nenableSaving false;        // saving disabled, does autosave - same as [false, true]\nenableSaving true;        // saving enabled, does not autosave - same as [true, false]\n\nenableSaving [false, false];    // saving disabled, does not autosave\nenableSaving [false, true];        // saving disabled, does autosave\nenableSaving [true, false];        // saving enabled, doesn't autosave\nenableSaving [true, true];        // saving enabled, does autosave\n```","code":["enableSaving false;\t\t// saving disabled, does autosave - same as [false, true]\nenableSaving true;\t\t// saving enabled, does not autosave - same as [true, false]\n\nenableSaving [false, false];\t// saving disabled, does not autosave\nenableSaving [false, true];\t\t// saving disabled, does autosave\nenableSaving [true, false];\t\t// saving enabled, doesn't autosave\nenableSaving [true, true];\t\t// saving enabled, does autosave"]}],"see_also":["loadGame","saveGame","savingEnabled","isSaving","BIS_fnc_enableSaving"],"notes":[{"user":"POLPOX","date":"2023-01-02T11:48:55Z","text":"Also possible to disable Save and Exit button from pause menu and replaces it with Abort. (confirmed in Arma 3 2.12)"}]}