Arma 3 Scripting

lockInventory

  • Global argument
  • Local effect
  • Arma 3 v2.00

Command · Markdown · JSON · original wiki page

Description

Lock or unlock a vehicle's inventory access. This command can also lock backpack a unit is wearing to prevent access by a third party. If set to true (locked), the inventory cannot be accessed via hotkey or action menu.

Syntax

vehicle lockInventory lock

Parameters:

Returns: Nothing

Examples

Example 1

vehicle player lockInventory true;

Example 2

backpackContainer player lockInventory true;

See also

lockedInventory

Community notes

PierreMGI

This command works only on alive unit. No matter you run it before or after death, on due backpackContainer unit, the backpack will be accessible on corpse.