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.
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;