credit for this goes to MRTesla I found it on dayzepoch and it workz
This will disable the functions of the R3F Artillery & Logistics addon (tow, lift, load in, and move) for vehicles that are locked.
Requirements:
-Something to unpack pbo files, such as PBO Manager.
-Text editor (Notepad++ recommended)
1. Unpack these files:
-dayz_code.pbo from your @DayZ_Epoch folder in your Arma 2 OA directory
-mission pbo
-server pbo (dayz_server.pbo)
2. In the dayz_code folder, copy the "local_lockunlock.sqf" from the "compile" folder and the "compiles.sqf" from the "init" folder and place them into your mission file. For this tutorial, they'll be placed in a folder call "Custom".
3. In the "local_lockunlock.sqf", change this:
if (local _vehicle) then {
if(_status) then {
_vehicle setVehicleLock "LOCKED";
} else {
_vehicle setVehicleLock "UNLOCKED";
};
};
to this:
if (local _vehicle) then {
if(_status) then {
_vehicle setVehicleLock "LOCKED";
_vehicle setVariable ["R3F_LOG_disabled",true,true];
} else {
_vehicle setVehicleLock "UNLOCKED";
_vehicle setVariable ["R3F_LOG_disabled",false,true];
};
};
4. In "compiles.sqf", change the file path in this line to point to your edited "local_lockunlock.sqf":
local_lockUnlock =compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_lockUnlock.sqf";//When vehicle is local to unit perform locking vehicle
So for this tutorial, it would be changed to this:
local_lockUnlock =compile preprocessFileLineNumbers "Custom\local_lockUnlock.sqf";//When vehicle is local to unit perform locking vehicle
5. In the "init.sqf" in your mission file, change the file path in this line to point to your edited "compiles.sqf":
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";//Compile regular functions
For this tutorial, it would be changed to this:
call compile preprocessFileLineNumbers "Custom\compiles.sqf";//Compile regular functions
6. Repack the mission file and upload it to the server.
7. In the server file, open "server_publishVehicle2.sqf" in the "compile" folder and "server_monitor.sqf" in the "system" folder.
8. In "server_publishVehicle2.sqf", after this line:
_object setvehiclelock "locked";
add this line:
_object setVariable ["R3F_LOG_disabled",true,true];
9. Do the same thing in the "server_monitor.sqf" in this section:
if(_ownerID != "0") then {
_object setvehiclelock "locked";
};
10. Repack the server pbo and upload it to the server.