This is a modified and preconfigured version of R3F's tow and lift script
-
Click Download Zip on the right sidebar of this Github page.
Recommended PBO tool for all "pack", "repack", or "unpack" steps: PBO Manager
-
Log into your server via FTP or your host's File Manager. Locate, download, and unpack (using PBO Manager or a similar PBO editor) your MPMissions/Your_Mission.pbo, and open the resulting folder.
Note: "Your_Mission.pbo" is a placeholder name. Your mission might be called "DayZ_Epoch_11.Chernarus", "DayZ_Epoch_13.Tavi", or "dayz_mission" depending on hosting and chosen map.
-
Extract the downloaded folder and copy the R3F_ARTY_AND_LOG folder into the root of your mission folder.
-
Navigate to your mission folder and open the init.sqf.
-
Open the init.sqf in the root of your mission folder and paste the following at the bottom:
//Tow and lift [] execVM "R3F_ARTY_AND_LOG\init.sqf";
-
If you do not have a custom compiles.sqf do step (A). If you have a custom compiles.sqf do step (B).
- Find the following line:
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
and replace it with:
call compile preprocessFileLineNumbers "custom\compiles.sqf";
- Copy the custom folder (in the download) into your mission folder.
- Open your custom compiles.sqf and replace this line:
local_lockUnlock = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_lockUnlock.sqf";
With this line:
local_lockUnlock = compile preprocessFileLineNumbers "custom\local_lockUnlock.sqf";
Note: If you do not already have this line in your compiles then simply add the new line to your custom compiles.
- Copy the contents of the custom folder (in the download) into your custom folder except for the compiles.sqf.
-
You are now finished with the mission file portion. If necessary package and send it to your server.
-
Now unpack your dayz_server.pbo and open it.
-
Navigate to compile\server_publishVehilce2.sqf, find this code:
if(!_donotusekey) then {
// Lock vehicle
_object setvehiclelock "locked";
};
and change it to this:
if(!_donotusekey) then {
// Lock vehicle
_object setvehiclelock "locked";
_object setVariable ["R3F_LOG_disabled",true,true];
};
Save and close the file.
- Navigate to system\server_monitor.sqf, find this code:
if(_ownerID != "0" and !(_object isKindOf "Bicycle")) then {
_object setvehiclelock "locked";
};
and change it to this:
if(_ownerID != "0" and !(_object isKindOf "Bicycle")) then {
_object setvehiclelock "locked";
_object setVariable ["R3F_LOG_disabled",true,true];
};
- Package the PBO and send it to the server. Everything is finished.