lockInventory
Jump to navigation
Jump to search
Hover & click on the images for descriptions
Description
- 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 you set it true (locked), the inventory won't be accessed via hotkey or action menu.
Syntax
- Syntax:
- vehicle lockInventory lock
- Parameters:
- vehicle: Object
- lock: Boolean
- Return Value:
- Nothing
Examples
- Example 1:
-
vehicle player lockInventory true;
- Example 2:
-
backpackContainer player lockInventory true;
Additional Information
- See also:
- lockedInventory
- Groups:
- Unit Inventory
Notes
- Posted on 21. nov. 2020
- 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.