Author: LordComfy
Author Website:

Requirements: No addons required

Version: 1.0

Short description: Lock and unlock your vehicles with a simple addaction

Date: 2017-08-30 18:36

Comments: (0)


Lock/Unlock Vehicle Script

Sgt Justin

This vehicle lock/unlock script is setup to use a UID array to allow players to call the script VIA a scroll wheel addaction.

Installation / Usage:
For usage instructions and information of how to use the Lock/Unlock Vehicle Script please refer to the included documentation and/or example mission.

//=========================== Admin UID List
_uid = getPlayerUID player;
_whitelist = ["UID1","UID2","UID3","UID4"]; //Change these to your steam64 id's

//=========================== Lock unlock vehicles script for admins only
if (_uid in _whitelist) then {
	player addAction ["[Unlock\Lock]", "execVM 'Scripts\unlock.sqf'", [], 1, false, false, "", "count nearestObjects [player, ['Armored','Car','Support','Submarine','LandVehicle', 'Ship', 'Air'], 5] > 0"],

Update 1.0 Features and Fixes
> Built the script and modified it to work on a dedicated server substiting lock for remoteExec [lock]

Enable javascript to be able to download from Armaholic please!

Tags: Script,   Action,   Lock,   Unlock,   Vehicle