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)
Rating:



 

Lock/Unlock Vehicle Script

by
Sgt Justin


Description:
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.

Init.sqf
//=========================== 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"],
};




Changelog:
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