Jump to content

[Release] Anti-Theft from locked vehicles by F507DMT [Working]


Recommended Posts

Anti-Theft from locked vehicles by F507DMT

 

 

add in variables.sqf:

GearStorags = ["WeaponHolder","WoodCrate_DZ","Wooden_shed_DZ","WoodShack_DZ","StorageShed_DZ","GunRack_DZ","VaultStorage","LockboxStorage"];

add in dayz_spaceInterrupt.sqf:

//Esc
if (_dikCode == 0x01) then {
	_nill = execvm "scripts\esc.sqf"; //if use Anti-Duping by F507DMT (http://epochmod.com/forum/index.php?/topic/32889-release-anti-duping-by-f507dmt-working/)
	DZE_cancelBuilding = true;
	call dayz_EjectPlayer;
	OpenGear = nil;
};

//Anti-Theft from locked vehicles by F507DMT
if ((_dikCode in actionKeys "Gear") && !(vehicle player != player)) then {
	if (isNil "OpenGear") then {
		(findDisplay 106) closeDisplay 1;
		if (!(cursorTarget isKindOf "Man") and (player distance cursorTarget <= 7) and ((typeOf cursorTarget in GearStorags) or (cursortarget isKindOf "AllVehicles"))) then {
			player action ["gear", cursortarget];
			} else {
			createGearDialog [player, "RscDisplayGear"];
		};
		OpenGear = true;
	} else {
		(findDisplay 106) closeDisplay 1;
		OpenGear = nil;
	};
	_handled = true;
};

P.S.

I recomend add "Open self Backpack" on button "H"

add in  dayz_spaceInterrupt.sqf:

//open backpack on H button
if (_dikCode == 0x23) then {
	if (isNil "OpenGear") then {
		(findDisplay 106) closeDisplay 1;
		player action ["gear", unitBackpack player];
		OpenGear = true;
		} else {
		(findDisplay 106) closeDisplay 1;
		OpenGear = nil;
	};
	_handled = true;
};

with: Losing connection, drop loot, Esc, exit yes and Esc + G, losing connection, drop loot, exit yes.

Link to comment
Share on other sites

am lost... Dose this allow you to access gear while vehicle is locked?

Epoch have a bug, anyone can open gear vehicles, when vehicle locked! Dose this fix this bug.

+ And now if you near vehicle, jast press G and open vehicle gear, if it unlocked.

Link to comment
Share on other sites

This didn't work for me. Before I installed this, I spawned in a vehicle, put a crow bar in it, saw that I can remove it from the vehicle, even if the vehicle is locked. I then installed this, went back to the vehicle (it was locked) and the option to remove the crow bar was still there.

if you out in vehicles 1 item, or loot. and this inem have scroll menu "take"(if intem on a floor). bandage, knife, crowbar, some ammo. U put only 1 item in vehecle, u can take this from locked vehicle.

 

CH53 can acsess to gear every time(locked or not), scroll rotor))

Link to comment
Share on other sites

  • 6 months later...
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...