Code:
call compile preprocessFileLineNumbers "DZ\functions\initFunctions.sqf";
[] spawn {
waitUntil {!isNil "clientReady"};
_clonemyass = profilenamespace getVariable["Clone_Body", true];
if (_clonemyass) then {
publicVariableServer "clientReady";
sleep 0.2;
publicVariableServer "clientReady";
sleep 0.2;
publicVariableServer "clientReady";
sleep 0.2;
systemchat "George Cloning";
profilenamespace setVariable["Clone_Body", false];
};
};
[] spawn {
while {true} do {
0 cutRsc['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable['RscTitleStructuredText', displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_ctrl ctrlsettextcolor[0, 1, 1, 1];
_ctrl ctrlSetPosition[safezonex + 0.65, safezoney + 1.1, safezonew, safezoneH];
_ctrl ctrlSetStructuredText parseText "<t color='#FFFFFF'>**************</t>";
_ctrl ctrlSetFont "AmorSerifProBold";
_ctrl ctrlcommit 0;
uiSleep 7;
};
};
[] spawn {
waitUntil {!isNull player};
toggle_1 = false;
toggle_2 = false;
toggle_3 = false;
toggle_4 = false;
toggle_5 = false;
toggle_6 = false;
toggle_7 = false;
toggle_8 = false;
toggle_9 = false;
toggle_10 = false;
toggle_11 = false;
toggle_12 = false;
JunEditDebug = {
Player_Array = [];
Vehicle_Array = [];
Heli_Array = [];
Zombie_Array = [];
Body_Array = [];
_entities = (allMissionObjects "SurvivorBase");
{
if ((alive _x) && (_x != player)) then {
Player_Array = Player_Array + [_x];
};
} foreach _entities;
_entities = (allMissionObjects "ZombieBase");
{
Zombie_Array = Zombie_Array + [_x];
} foreach _entities;
_entities = (allMissionObjects "SurvivorBase");
{
if ((_x in Body_Array) && (alive _x)) then {
Body_Array = Body_Array - [_x];
};
if ((_x != player) && (name _x != '') && (name _x == "UnKnown Entity")) then {
Body_Array = Body_Array + [_x];
};
} forEach _entities;
_entities = (allMissionObjects "V3S_Cargo") + (allMissionObjects "V3S_Chassis");
{
if (_x != player) then {
Vehicle_Array = Vehicle_Array + [_x];
};
} forEach _entities;
_entities = (allMissionObjects "land_mh_60wreck") + (allMissionObjects "Land_Mi8_Crashed") + (allMissionObjects "Land_UH1Y_Wreck");
{
Heli_Array = Heli_Array + [_x];
} forEach _entities;
All_Array = Player_Array + Vehicle_Array + Heli_Array + Body_Array;
if (isNil 'M1z') then {
M1z = 0;
};
if (M1z == 0) then {
systemchat "Monitor: ON";
M1z = 1;
_a = [];
while {M1z == 1} do {
_unit = player;
_blood = round(((_unit getVariable['blood',0])/5000)*100);
_health = round(((_unit getVariable['health',0])/5000)*100);
_shock = round(((_unit getVariable['shock',0])/5000)*100);
_temp = round(((_unit getVariable['bodytemperature',0])/100)*100);
_heat = round(((_unit getVariable['heatcomfort',0])/100)*100);
_hand = currentWeapon _unit;
_gridPos = mapGridPosition player;
_pp = getpos _unit;
_GUID = (getplayeruid (_unit));
if (_hand == "") then {
_wName = typeof itemInHands _unit;
};
_wName = getText(configFile >> "cfgWeapons" >> _hand >> "displayName");
if(_wName == "") then {
_wName = _hand;
};
hintSilent parseText format
["
<t size='1.4' align='Center' color='#FE2EF7'>Jme Menu 2.mothafucka1</t><br/>
<t size='1.4' align='Center' color='#FE2EF7'>Debug Monitor</t><br/>
<t size='1.4' align='Center' color='#FE2EF7'>Jme I Love You</t><br/>
<br/>
<t size='1.10' align='Center' color='#A90000'>Name: </t><br/>
<t size='1.10' align='Center' color='#FE2EF7'>%3</t><br/>
<t size='1.10' align='Center' color='#A90000'>GUID: </t><br/>
<t size='1.10' align='Center' color='#FE2EF7'>%13</t><br/>
<br/>
<t size='1.10' align='Left' color='#A90000'>Health: </t> <t size='1.10' align='Right' color='#FE2EF7'>%5</t><br/>
<t size='1.10' align='Left' color='#A90000'>Blood: </t> <t size='1.10' align='Right' color='#FE2EF7'>%9</t><br/>
<t size='1.10' align='Left' color='#A90000'>Shock Value: </t> <t size='1.10' align='Right' color='#FE2EF7'>%8</t><br/>
<t size='1.10' align='Left' color='#A90000'>Body Temp: </t> <t size='1.10' align='Right' color='#FE2EF7'>%7</t><br/>
<t size='1.10' align='Left' color='#A90000'>Heat Index: </t> <t size='1.10' align='Right' color='#FE2EF7'>%6</t><br/>
<br/>
<t size='1.10' align='Left' color='#A90000'>Players in 1000m: </t> <t size='1.10' align='Right' color='#FE2EF7'>%2</t><br/>
<t size='1.10' align='Left' color='#A90000'>Zombies in 1000m: </t> <t size='1.10' align='Right' color='#FE2EF7'>%1</t><br/>
<t size='1.10' align='Left' color='#A90000'>Bodies in 1000m: </t> <t size='1.10' align='Right' color='#FE2EF7'>%14</t><br/>
<t size='1.10' align='Left' color='#A90000'>Vehicles in 1000m: </t> <t size='1.10' align='Right' color='#FE2EF7'>%12</t><br/>
<t size='1.10' align='Left' color='#A90000'>Crashes in 1000m: </t> <t size='1.10' align='Right' color='#FE2EF7'>%15</t><br/>
<t size='1.10' align='Left' color='#A90000'>FPS: </t> <t size='1.10' align='Right' color='#FE2EF7'>%4</t><br/>
<t size='1.10' align='Left' color='#A90000'>GPS: </t> <t size='1.10' align='Right' color='#FE2EF7'>%11</t>
",
({alive player} count Zombie_Array),
({alive player} count Player_Array),
(name player),
(round diag_FPS),
(_health),
(_heat),
(_temp),
(_shock),
(_blood),
(_hand),
(_gridPos),
({alive player} count Vehicle_Array),
(_GUID),
({alive player} count Body_Array),
({alive player} count Heli_Array)
];
};
}
else {
systemchat "Monitor: OFF";
M1z = 0;
};
};
xxx_fn_fast_anim = {
if (toggle_8) then {
hint "Fast Animes - playerinjured ON";
playeraction "playerinjuredl";
} else {
hint "Fast Animes - playerinjured OFF";
playeraction "playerhealthy";
};
};
xxx_fn_speedhack = {
if (toggle_1) then {
hint "Speed ON";
xxx_car1 = "car_hatchback"
createvehiclelocal getposatl player;
xxx_car2 = "car_hatchback"
createvehiclelocal getposatl player;
while {toggle_1} do {
_pos = player modeltoworld[0, -2, 0];
xxx_car1 setdir getdir player + 180;
xxx_car2 setdir getdir player + 180;
xxx_car1 setpos _pos;
xxx_car2 setpos _pos;
};
} else {
hint "Speed OFF";
deletevehicle xxx_car1;
deletevehicle xxx_car2;
};
};
xxx_fn_dupe = {
profilenamespace setVariable["Clone_Body", true];
saveprofilenamespace;
hint 'Clone Ready! Please log out and back into the server, you should see your dupe next to you, knock them out to steal the gear, then relog again.';
};
xxx_fn_view_dis = {
if (toggle_7) then {
setViewDistance 600;
hint "View Distance Low";
} else {
setViewDistance 1500;
hint "View Distance High";
};
};
xxx_fn_map_markerz = {
hint "Scanning Map, please be patient";
closeDialog 0;
for "_j" from 1 to 100 do {deleteMarkerLocal("marker" + str(_j));};
_viewdist = viewDistance;
_viewdist2 = objectviewdistance;
setViewDistance 1;
setobjectviewdistance 1;
setTerrainGrid 50;
_start = [1000, 2300, 500];
_max = 15300;
_i = 1;
_u = 1;
_c = 0;
_arr = [];
_local = "camera"
camCreate(getPos player);
_local cameraEffect["INTERNAL", "BACK"];
cutText["0%", "BLACK FADED"];
while {((_start select 0 < _max)) && ((_start select 1 < _max))} do {
while {(_start select 0 < _max)} do {
_local = "camera"
camCreate _start;
_local cameraEffect["INTERNAL", "BACK"];
sleep 0.01;
_obj = (allMissionObjects "LandVehicle") + (allMissionObjects "Land_UH1Y_Wreck") + (allMissionObjects "Land_Mi8_Crashed");
_obj1 = (entities "SurvivorBase");
_obj2 = (allMissionObjects "TentMedium_Pitched") + (allMissionObjects "TentLarge_Pitched") + (allMissionObjects "TentMedium_Packed") + (allMissionObjects "TentLarge_Backpack");
_obj3 = (allMissionObjects "attachment_handguard_mp5_rail") + (allMissionObjects "attachment_compensator_mp5") + (allMissionObjects "attachment_buttstock_mp5_stock") + (allMissionObjects "prisonuniformpants") + (allMissionObjects "prisonuniformjacket") + (allMissionObjects "prisonercap") + (allMissionObjects "gasmask") + (allMissionObjects "MilitaryRifle") + (allMissionObjects "wolfmask") + (allMissionObjects "firefighteraxebase") + (allMissionObjects "mp5k") + (allMissionObjects "sword") + (allMissionObjects "rocketaviators");
if (count _obj != 0) then {
{
if !((getPos _x) in _arr) then {
_marker = createMarkerLocal["marker" + str(_i), getPos _x];
_marker setMarkerTypeLocal "hd_objective";
_marker setMarkerColorLocal "ColorGreen";
_marker setMarkerSizeLocal[0.5, 0.5];
_marker setMarkerTextLocal(typeOf _x);
_i = _i + 1;
_arr set[count _arr, getPos _x];
};
}
forEach _obj;
};
if (count _obj1 != 0) then {
{
if !((getPos _x) in _arr) then {
_marker1 = createMarkerLocal["marker" + str(_i), getPos _x];
_marker1 setMarkerTypeLocal "hd_destroy";
_marker1 setMarkerColorLocal "ColorRed";
_marker1 setMarkerSizeLocal[0.5, 0.5];
_marker1 setMarkerTextLocal(Name _x);
_i = _i + 1;
_arr set[count _arr, getPos _x];
};
}
forEach _obj1;
};
if (count _obj2 != 0) then {
{
if !((getPos _x) in _arr) then {
_marker2 = createMarkerLocal["marker" + str(_i), getPos _x];
_marker2 setMarkerTypeLocal "hd_join";
_marker2 setMarkerColorLocal "ColorOrange";
_marker2 setMarkerSizeLocal[0.5, 0.5];
_marker2 setMarkerTextLocal(typeOf _x);
_i = _i + 1;
_arr set[count _arr, getPos _x];
};
}
forEach _obj2;
};
if (count _obj3 != 0) then {
{
if !((getPos _x) in _arr) then {
_marker3 = createMarkerLocal["marker" + str(_i), getPos _x];
_marker3 setMarkerTypeLocal "hd_join";
_marker3 setMarkerColorLocal "ColorBlue";
_marker3 setMarkerSizeLocal[0.5, 0.5];
_marker3 setMarkerTextLocal(typeOf _x);
_i = _i + 1;
_arr set[count _arr, getPos _x];
};
}
forEach _obj3;
};
camDestroy _local;
_start = [(_start select 0) + 1000, (_start select 1), 0];
};
_start = [1000, (_start select 1) + 1000, 0];
sleep 0.01;
};
setViewDistance _viewdist;
setobjectviewdistance _viewdist2;
camDestroy _local;
player cameraEffect["TERMINATE", "BACK"];
cutText["Search finished", "BLACK IN"];
};
xxx_fn_noblur_colour = {
if (toggle_6) then {
hint "No Blur - Full Color ON";
} else {
hint "No Blur - Full Color OFF";
};
_realblood = 0;
while {toggle_6} do {
resetCamShake;
_realblood = player getVariable['blood', -1];
player setVariable['blood', 5000];
waitUntil {player getVariable['blood', -1] != 5000};
};
};
xxx_fn_bullet_cam = {
if (toggle_9) then {
player addEventHandler["Fired", {
_null = _this spawn {
_missile = _this select 6;
_cam = "Camera"
camCreate(position player);
_cam CameraEffect["External", "Back"];
waitUntil {
if (isNull _missile) exitWith {1};
_cam camSetTarget _missile;
_cam camSetRelPos[0, -3, 0];
_cam camCommit 0;
};
sleep 0.4;
_cam CameraEffect["Terminate", "Back"];
camDestroy _cam;
};
}];
hint "Bullet Camera ON";
} else {
(vehicle player) removeAllEventHandlers "Fired";
hint "Bullet Camera OFF";
};
};
xxx_fnc_gun_god = {
if (toggle_10) then {
player setWeaponReloadingTime[player, currentWeapon player, 0];
player setUnitRecoilCoefficient 0;
hint "Gun God ON";
} else {
player setWeaponReloadingTime[player, currentWeapon player, 1];
player setUnitRecoilCoefficient 1;
hint "Gun God OFF";
};
};
xxx_fn_no_grass = {
if (toggle_5) then {
setTerrainGrid 50.0;
hint "No Grass ON";
} else {
setTerrainGrid 12.5;
hint "No Grass OFF";
};
};
xxx_fn_get_my_guid = {
systemchat format["UID is %1", (getplayeruid(player))];
};
xxx_fn_view_gear = {
_entities = (positionCameraToWorld[0, 0, 0] nearObjects["SurvivorBase", 1000]); {
if (name _x == _this select 0) then {
createGearDialog[(_x), "RscDisplayGear"];
};
} forEach _entities;
};
xxx_fn_spectate = {
_entities = (positionCameraToWorld[0, 0, 0] nearObjects["SurvivorBase", 1000]); {
if (name _x == _this select 0) then {
vehicle _x switchCamera "EXTERNAL";
systemchat format["Spectating %1, press F10 to cancel", name _x];
};
}
forEach _entities;
(findDisplay 46) displayAddEventHandler['KeyDown', 'if ((_this select 1) == 0x44) then {vehicle player switchCamera "EXTERNAL";}'];
};
xxx_fn_executor = {
disableSerialization;
createDialog 'rscdisplaynote';
ctrlSetText[1600, "Execute"];
ctrlSettext[1601, "Clear"];
ctrlSetText[1300, "Executor"];
buttonSetAction[1600, "[] spawn compile (ctrlText 1400)"];
buttonSetAction[1601, "ctrlSetText[1400,""""];"];
hint "Execute Scripts";
};
xxx_fn_nightlight = {
if (toggle_3) then {
xxx_fn_nightlight2 = "#lightpoint"
createVehicleLocal getpos player;
xxx_fn_nightlight2 setLightBrightness 1;
xxx_fn_nightlight2 setLightAmbient[0.8, 1, 0.2];
xxx_fn_nightlight2 setLightColor[.4, 1, 0];
xxx_fn_nightlight2 lightAttachObject[player, [10, 10, 10]];
hint "Night Light ON";
} else {
deleteVehicle xxx_fn_nightlight2;
hint "Night Light OFF";
};
};
xxx_fn_max_view_dis = {
if (toggle_11) then {
setViewDistance 10000;
hint "Max View Distance ON";
} else {
setViewDistance 1500;
hint "Max View Distance OFF";
};
};
xxx_fn_no_buildings = {
if (toggle_4) then {
hint "No Buildings ON";
} else {
hint "No Buildings OFF";
};
while {toggle_4} do {
_entities = (positionCameraToWorld[0, 0, 0]) nearObjects 1000; {
if ((_x != player) && !(_x isKindOf "Man")) then {
_typeof = toArray typeof _x;
_typeof resize 4;
_typeof;
_typeof = toString _typeof;
if (_typeof == "land") then {
hideObject _x;
};
};
}
forEach _entities;
sleep 5;
};
while {!toggle_4} do {
_entities = (positionCameraToWorld[0, 0, 0]) nearObjects 1000; {
if ((_x != player) && !(_x isKindOf "Man")) then {
_typeof = toArray typeof _x;
_typeof resize 4;
_typeof;
_typeof = toString _typeof;
if (_typeof == "land") then {
_x hideObject false;
};
};
}
forEach _entities;
sleep 5;
};
};
xxx_fn_3rd_person = {
player switchCamera "External";
hint "Third Person Mode ON";
};
xxx_fn_break_free = {
actionReleased = player;
publicVariableServer 'actionReleased';
player setCaptive false;
player playAction "cancelAction";
hint "Broke Free";
};
xxx_fn_view_map = {
disableSerialization;
closeDialog 0;
if (isNil "xxx_fn_view_map1") then {
xxx_fn_view_map2 = {
_ctrl = _this select 0; {
_ctrl drawIcon["DZuidatamapmarkersmilitaryStart_CA.paa",
if (_x == player) then {
[0, 0, 1, 1]
} else {
[1, 0, 0, 1]
}, getPos _x, ((1 - ctrlMapScale _ctrl) max 0.2) * 30, ((1 - ctrlMapScale _ctrl) max 0.2) * 30, getDir _x, "herro", 2];
}
forEach(entities "SurvivorBase");
};
};
createDialog "RscDisplayMainMap";
_map = (findDisplay 12) displayCtrl 51;
_map ctrlAddEventhandler["mousebuttondblclick", "((_this select 0) posScreenToWorld [_this select 2, _this select 3]) spawn xxx_fn_view_map1"];
_map ctrlAddEventHandler["Draw", "_this call xxx_fn_view_map2"];
for "_i" from 0 to 9999 do {
if (_i != 51) then {
((findDisplay 12) displayCtrl _i) ctrlShow false;
};
};
};
xxx_fn_list_inventory = {
hintc format["%1", (itemsInInventory(player))];
hintsilent "";
};
xxx_fn_HUD = {
if (toggle_12) then {
hint "HUD ON";
} else {
hint "HUD OFF";
};
while {toggle_12} do {
0 cutRsc['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable['RscTitleStructuredText', displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = player;
_blood = round(((_unit getVariable['blood', 0]) / 5000) * 100);
_health = round(((_unit getVariable['health', 0]) / 5000) * 100);
_shock = round(((_unit getVariable['shock', 0]) / 5000) * 100);
_temp = round(((_unit getVariable['bodytemperature', 0]) / 100) * 100);
_heat = round(((_unit getVariable['heatcomfort', 0]) / 100) * 100);
_hand = currentWeapon _unit;
if (_hand == "") then {
_wName = typeof itemInHands _unit;
};
_pp = getpos _unit;
_wName = getText(configFile >> "cfgWeapons" >> _hand >> "displayName");
if (_wName == "") then {
_wName = _hand;
};
_ctrl ctrlSetPosition[safezonex, safezoney, safezonew, safezoneH];
_text = parseText format['<t size=''1'' color=''#8DFF00''> [Name: %1] [Pos: %8] [Health: %2%] [Blood: %3%] [Shock: %4%] [Body Temperature: %5%] [Heat Comfort: %6%] [Item In Hands: %7] </t>', name _unit, _health, _blood, _shock, _temp, _heat, _wName, _pp];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlcommit 0;
uisleep 5;
};
};
xxx_fn_shit = {
playerAction 'PlayerPoo';
hint "You Are Taking A Shit";
[]spawn {while{true} do {vehicle player engineOn true;vehicle player setfuel 1;}};
};
xxx_fn_speedhack2 = {
if (toggle_2) then {
hint "speedhack 2 on";
} else {
hint "speedhack 2 off";
};
while {toggle_2} do {
player setVehiclePosition [[(getPos player select 0) + (0.001 * sin(getDir player)), (getPos player select 1) + (0.001 * cos(getDir player)), getPos player select 2], ["","",""], 0];
};
};
xxx_fn_televeh = {
disableSerialization;
closeDialog 0;
if (isNil "tele") then
{
tele = {
if (player != vehicle player) then
{
vehicle player setPos _this;
closeDialog 0;
hint format ["Teleported to: %1", _this];
}
else
{
hint str _this;
};
};
dmap =
{
_ctrl = _this select 0;
{_ctrl drawIcon ["\DZ\ui\data\map\markers\military\triangle_CA.paa", if (_x == player) then {[1,0,1,1]} else {[1,0.7,0,1]}, getPos _x, ((1 - ctrlMapScale _ctrl) max 0.2)*30, ((1 - ctrlMapScale _ctrl) max 0.2)*30, getDir _x, "herro", 2];} forEach (entities "SurvivorBase");
};
};
createDialog "RscDisplayMainMap";
{
((findDisplay 12) displayCtrl _x) ctrlShow false;
} forEach [56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,75,77,78,101,102,103,104,106,1001,1002,1003,1013,1021,1022,1023];
((findDisplay 12) displayCtrl 51) ctrlSetEventHandler ["mousebuttondblclick","((_this select 0) posScreenToWorld [_this select 2, _this select 3]) spawn tele"];
((findDisplay 12) displayCtrl 51) ctrlSetEventHandler ["Draw", "_this call dmap"];
};
xxx_fn_teleport = {
_entities = (positionCameraToWorld [0,0,0]) nearObjects 1000;
{
if ((_x != player) && !(_x isKindOf "Man") && (typeOf _x == "V3S_Cargo")) then {
_pos = player modelToWorld [round ((random 1)),round ((random 1)),0];
_x setpos _pos;
};
if ((_x != player) && !(_x isKindOf "Man") && (typeOf _x == "v3s_cargo_blue")) then {
_pos = player modelToWorld [round ((random 1)),round ((random 1)),0];
_x setpos _pos;
};
} forEach _entities;
};
xxx_fnc_esp1 = {
xxx_fnc_esp1_list = {
if (isNil 'xxx_fnc_esp1_tog') then {
xxx_fnc_esp1_tog = 0;
};
if (xxx_fnc_esp1_tog == 0) then {
hint "Player ESP ON";
xxx_fnc_esp1_tog = 1;
_a = [];
while {xxx_fnc_esp1_tog == 1} do {
_entities = entities "SurvivorBase"; {
if ((_x in _a) && !(alive _x)) then {
_a = _a - [_x];
};
if ((_x != player) && !(_x in _a)) then {
_a = _a + [_x];
[_x] spawn xxx_fnc_esp1_draw;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Player ESP OFF";
xxx_fnc_esp1_tog = 0;
};
};
xxx_fnc_esp1_draw = {
disableSerialization;
if (isNil 'ESP_Count') then {
ESP_Count = 2733;
};
ESP_Count cutRsc['rscDynamicText', 'PLAIN'];
ESP_Count = ESP_Count + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
_hand = currentWeapon _unit;
if (_hand == "") then {
_wName = typeof itemInHands _unit;
};
_wName = getText(configFile >> "cfgWeapons" >> _hand >> "displayName");
if (_wName == "") then {
_wName = _hand;
};
while {(alive _unit) && !(isNull _unit)} do {
if (xxx_fnc_esp1_tog == 0) exitWith {
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2) + 2];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format['<t size=''0.3'' color=''#8DFF00''>%1 (%2m) %3</t>', name _unit, round(player distance _unit), _wName];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fnc_esp1_list;
};
xxx_fnc_esp2 = {
xxx_fnc_esp2_list = {
if (isNil 'xxx_fnc_esp2_tog') then {
xxx_fnc_esp2_tog = 0;
};
if (xxx_fnc_esp2_tog == 0) then {
hint "Player ESP ON";
xxx_fnc_esp2_tog = 1;
_a = [];
while {
xxx_fnc_esp2_tog == 1
}
do {
_entities = entities "SurvivorBase"; {
if ((_x in _a) && !(alive _x)) then {
_a = _a - [_x];
};
if ((_x != player) && !(_x in _a)) then {
_a = _a + [_x];
[_x] spawn xxx_fnc_esp2_draw;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Player ESP OFF";
xxx_fnc_esp2_tog = 0;
};
};
xxx_fnc_esp2_draw = {
disableSerialization;
if (isNil 'ESP_Count') then {
ESP_Count = 2733;
};
ESP_Count cutRsc['rscDynamicText', 'PLAIN'];
ESP_Count = ESP_Count + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(alive _unit) && !(isNull _unit)
}
do {
if (xxx_fnc_esp2_tog == 0) exitWith {
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2) + 2];
_pos2D = WorldToScreen _pos;
_blood = round(((_unit getVariable['blood', 0]) / 5000) * 100);
_health = round(((_unit getVariable['health', 0]) / 5000) * 100);
_shock = round(((_unit getVariable['shock', 0]) / 5000) * 100);
_temp = round(((_unit getVariable['bodytemperature', 0]) / 100) * 100);
_heat = round(((_unit getVariable['heatcomfort', 0]) / 100) * 100);
_UID = (getplayeruid(_unit));
_hand = currentWeapon _unit;
if (_hand == "") then {
_wName = typeof itemInHands _unit;
};
_wName = getText(configFile >> "cfgWeapons" >> _hand >> "displayName");
if (_wName == "") then {
_wName = _hand;
};
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format['<t size=''0.3'' color=''#8DFF00''>%1 (Range:%2m) <br/> [GUID: %9] <br/> [Health: %3%] [Blood: %4%] [Shock: %5%] [Temp: %6%] [Heat: %7%] <br/>In Hands: %8</t>', name _unit, round(player distance _unit), _health, _blood, _shock, _temp, _heat, _wName, _UID];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fnc_esp2_list;
};
xxx_fn_esp_weapons = {
xxx_fn_esp_weapons2 = {
if (isNil 'xxx_fn_esp_weapons1') then {
xxx_fn_esp_weapons1 = 0;
};
if (xxx_fn_esp_weapons1 == 0) then {
hint "Weapon ESP ON";
xxx_fn_esp_weapons1 = 1;
arr1 = [];
while {
xxx_fn_esp_weapons1 == 1
}
do {
_entities = (allMissionObjects "riflecore") + (allMissionObjects "ShotgunBase") + (allMissionObjects "pistolcore") + (allMissionObjects "FlashGrenade") + (allMissionObjects "GrenadeBase"); {
if !(_x in arr1) then {
arr1 = arr1 + [_x];
[_x] spawn xxx_fn_esp_weapons3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Weapon ESP OFF";
xxx_fn_esp_weapons1 = 0;
};
};
xxx_fn_esp_weapons3 = {
disableSerialization;
if (isNil 'ESP_Count') then {
ESP_Count = 2733;
};
ESP_Count cutRsc['rscDynamicText', 'PLAIN'];
ESP_Count = ESP_Count + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_weapons1 == 0) exitWith {
arr1 = arr1 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
arr1 = arr1 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_weapons2;
};
xxx_fn_esp_all_items = {
xxx_fn_esp_all_items2 = {
if (isNil 'xxx_fn_esp_all_items1') then {
xxx_fn_esp_all_items1 = 0;
};
if (xxx_fn_esp_all_items1 == 0) then {
hint "All Items ESP ON";
xxx_fn_esp_all_items1 = 1;
arr2 = [];
while {
xxx_fn_esp_all_items1 == 1
}
do {
_entities = (allMissionObjects "inventorybase"); {
if !(_x in arr2) then {
arr2 = arr2 + [_x];
[_x] spawn xxx_fn_esp_all_items3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "All Items ESP OFF";
xxx_fn_esp_all_items1 = 0;
};
};
xxx_fn_esp_all_items3 = {
disableSerialization;
if (isNil 'ESP_Count') then {
ESP_Count = 2733;
};
ESP_Count cutRsc['rscDynamicText', 'PLAIN'];
ESP_Count = ESP_Count + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_all_items1 == 0) exitWith {
arr2 = arr2 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.22' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
arr2 = arr2 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_all_items2;
};
xxx_fn_esp_cthulhu = {
xxx_fn_esp_cthulhu2 = {
if (isNil 'xxx_fn_esp_cthulhu1') then {
xxx_fn_esp_cthulhu1 = 0;
};
if (xxx_fn_esp_cthulhu1 == 0) then {
hint "Cthulhu ESP ON";
xxx_fn_esp_cthulhu1 = 1;
xxx_fn_esp_cthulhu5 = [];
while {
xxx_fn_esp_cthulhu1 == 1
}
do {
_entities = (allMissionObjects "highcapacityvest_olive") + (allMissionObjects "ukassvest_khaki") + (allMissionObjects "ukassvest_olive") + (allMissionObjects "smershvestbackpack") + (allMissionObjects "m65_jacket_olive") + (allMissionObjects "smershvest") + (allMissionObjects "wellies_green") + (allMissionObjects "rocketaviators") + (allMissionObjects "m_22_mkii_10rnd"); {
if !(_x in xxx_fn_esp_cthulhu5) then {
xxx_fn_esp_cthulhu5 = xxx_fn_esp_cthulhu5 + [_x];
[_x] spawn xxx_fn_esp_cthulhu3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Cthulhu ESP OFF";
xxx_fn_esp_cthulhu1 = 0;
};
};
xxx_fn_esp_cthulhu3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_cthulhu4') then {
xxx_fn_esp_cthulhu4 = 2733;
};
xxx_fn_esp_cthulhu4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_cthulhu4 = xxx_fn_esp_cthulhu4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {(!isNull _unit) && ((player distance _unit) < 1000)}do {
if (xxx_fn_esp_cthulhu1 == 0) exitWith {
xxx_fn_esp_cthulhu5 = xxx_fn_esp_cthulhu5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.3' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_cthulhu5 = xxx_fn_esp_cthulhu5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_cthulhu2;
};
xxx_fn_esp_sewing_can = {
xxx_fn_esp_sewing_can2 = {
if (isNil 'xxx_fn_esp_sewing_can1') then {
xxx_fn_esp_sewing_can1 = 0;
};
if (xxx_fn_esp_sewing_can1 == 0) then {
hint "Sewing ESP ON";
xxx_fn_esp_sewing_can1 = 1;
xxx_fn_esp_sewing_can5 = [];
while {
xxx_fn_esp_sewing_can1 == 1
}
do {
_entities = (allMissionObjects "tool_sewingkit") + (allMissionObjects "tool_leathersewingkit") + (allMissionObjects "tool_canopener"); {
if !(_x in xxx_fn_esp_sewing_can5) then {
xxx_fn_esp_sewing_can5 = xxx_fn_esp_sewing_can5 + [_x];
[_x] spawn xxx_fn_esp_sewing_can3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Sewing ESP OFF";
xxx_fn_esp_sewing_can1 = 0;
};
};
xxx_fn_esp_sewing_can3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_sewing_can4') then {
xxx_fn_esp_sewing_can4 = 2733;
};
xxx_fn_esp_sewing_can4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_sewing_can4 = xxx_fn_esp_sewing_can4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_sewing_can1 == 0) exitWith {
xxx_fn_esp_sewing_can5 = xxx_fn_esp_sewing_can5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_sewing_can5 = xxx_fn_esp_sewing_can5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_sewing_can2;
};
xxx_fn_esp_tents_veh_prt = {
xxx_fn_esp_tents_veh_prt2 = {
if (isNil 'xxx_fn_esp_tents_veh_prt1') then {
xxx_fn_esp_tents_veh_prt1 = 0;
};
if (xxx_fn_esp_tents_veh_prt1 == 0) then {
hint "Tent ESP ON";
xxx_fn_esp_tents_veh_prt1 = 1;
xxx_fn_esp_tents_veh_prt5 = [];
while {
xxx_fn_esp_tents_veh_prt1 == 1
}
do {
_entities = (allMissionObjects "TentMedium_Pitched") + (allMissionObjects "TentLarge_Pitched") + (allMissionObjects "TentMedium_Packed") + (allMissionObjects "TentLarge_Backpack") + (allMissionObjects "VehiclePartsBase") + (allMissionObjects "part_sparkplug") + (allMissionObjects "part_exhausttruck") + (allMissionObjects "part_canistergasoline") + (allMissionObjects "part_glowplug") + (allMissionObjects "part_batterytruck");
{
if !(_x in xxx_fn_esp_tents_veh_prt5) then {
xxx_fn_esp_tents_veh_prt5 = xxx_fn_esp_tents_veh_prt5 + [_x];
[_x] spawn xxx_fn_esp_tents_veh_prt3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Tent ESP OFF";
xxx_fn_esp_tents_veh_prt1 = 0;
};
};
xxx_fn_esp_tents_veh_prt3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_tents_veh_prt4') then {
xxx_fn_esp_tents_veh_prt4 = 2733;
};
xxx_fn_esp_tents_veh_prt4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_tents_veh_prt4 = xxx_fn_esp_tents_veh_prt4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_tents_veh_prt1 == 0) exitWith {
xxx_fn_esp_tents_veh_prt5 = xxx_fn_esp_tents_veh_prt5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_tents_veh_prt5 = xxx_fn_esp_tents_veh_prt5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_tents_veh_prt2;
};
xxx_fn_esp_helis = {
xxx_fn_esp_helis1 = {
tardis2 = 1000;
if (isNil 'xxx_fn_esp_helis2') then {
xxx_fn_esp_helis2 = 0;
};
if (xxx_fn_esp_helis2 == 0) then {
xxx_fn_esp_helis2 = 1;
hint "Heli ESP ON";
_a = [];
while {
xxx_fn_esp_helis2 == 1
}
do {
_entities = (positionCameraToWorld[0, 0, 0]) nearObjects 1000;
_count = count _entities; {
if (((_x in _a)) or((_x in _a) && ((positionCameraToWorld[0, 0, 0] distance _x) > tardis2))) then {
_a = _a - [_x];
};
if ((typeof _x == "land_mh_60wreck") or(typeof _x == "Land_Mi8_Crashed") or(typeof _x == "Land_UH1Y_Wreck") && ((positionCameraToWorld[0, 0, 0] distance _x) <= tardis2)) then {
_a = _a + [_x];
[_x] spawn xxx_fn_esp_helis3;
sleep 1;
};
}
forEach _entities;
sleep 2;
};
} else {
xxx_fn_esp_helis2 = 0;
hint "Heli ESP OFF";
};
};
xxx_fn_esp_helis3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_helis4') then {
xxx_fn_esp_helis4 = 2733;
};
xxx_fn_esp_helis4 cutRsc['RscTime', 'PLAIN'];
xxx_fn_esp_helis4 = xxx_fn_esp_helis4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_InfoTime') displayctrl 112301);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
((positionCameraToWorld[0, 0, 0] distance _unit) < tardis2)
}
do {
if (xxx_fn_esp_helis2 == 0) exitWith {
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2) + 2];
_pos2D = WorldToScreen _pos;
if ((count _pos2D > 0)) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format['<t size=''0.5'' color=''#0D00FF''>%1</t>', "Heli Crash"];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.05;
};
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_helis1;
};
xxx_fnc_esp_bodies = {
xxx_fnc_esp_bodies1 = {
tarDis2 = 1000;
if (isNil 'xxx_fnc_esp_bodies3') then {
xxx_fnc_esp_bodies3 = 0;
};
if (xxx_fnc_esp_bodies3 == 0) then {
xxx_fnc_esp_bodies3 = 1;
hint "Body ESP ON";
_a = [];
while {
xxx_fnc_esp_bodies3 == 1
}
do {
_entities = (positionCameraToWorld[0, 0, 0] nearObjects["SurvivorBase", 1050]);
_count = count _entities; {
if (((_x in _a) && (alive _x)) or((_x in _a) && ((positionCameraToWorld[0, 0, 0] distance _x) > tarDis2))) then {
_a = _a - [_x];
};
if ((_x != player) && (name _x != '') && !(_x in _a) && (name _X == "UnKnown Entity") && ((positionCameraToWorld[0, 0, 0] distance _x) <= tarDis2)) then {
_a = _a + [_x];
[_x] spawn xxx_fnc_esp_bodies2;
sleep 1;
};
}
forEach _entities;
sleep 10;
};
} else {
xxx_fnc_esp_bodies3 = 0;
hint "Body ESP OFF";
};
};
xxx_fnc_esp_bodies2 = {
disableSerialization;
if (isNil 'xxx_fnc_esp_bodies4') then {
xxx_fnc_esp_bodies4 = 2733;
};
xxx_fnc_esp_bodies4 cutRsc['RscDynamicText', 'PLAIN'];
xxx_fnc_esp_bodies4 = xxx_fnc_esp_bodies4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
!(alive _unit) && ((positionCameraToWorld[0, 0, 0] distance _unit) < tarDis2)
}
do {
if (xxx_fnc_esp_bodies3 == 0) exitWith {
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2) + 2];
_pos2D = WorldToScreen _pos;
_hand = primaryWeapon _unit;
_wName = getText(configFile >> "cfgWeapons" >> _hand >> "displayName");
if (_wName == "") then {
_wName = typeof itemInHands _unit;
};
if ((count _pos2D > 0) && (name _unit == "UnKnown Entity")) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format['<t size=''0.35'' color=''#ff0000''>Body (%1m) <br/>Wep: %2</t>', round(positionCameraToWorld[0, 0, 0] distance _unit), _wName];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.05;
};
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fnc_esp_bodies1;
};
xxx_fn_esp_zombies = {
xxx_fn_esp_zombies2 = {
if (isNil 'xxx_fn_esp_zombies1') then {
xxx_fn_esp_zombies1 = 0;
};
if (xxx_fn_esp_zombies1 == 0) then {
hint "Zombie ESP ON";
xxx_fn_esp_zombies1 = 1;
_a = [];
while {
xxx_fn_esp_zombies1 == 1
}
do {
_entities = (getpos player) nearObjects["ZombieBase", 850]; {
if ((_x in _a) && !(alive _x)) then {
_a = _a - [_x];
};
if ((_x != player) && !(_x in _a)) then {
_a = _a + [_x];
[_x] spawn xxx_fn_esp_zombies3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Zombie ESP OFF";
xxx_fn_esp_zombies1 = 0;
};
};
xxx_fn_esp_zombies3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_zombies4') then {
xxx_fn_esp_zombies4 = 2733;
};
xxx_fn_esp_zombies4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_zombies4 = xxx_fn_esp_zombies4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(alive _unit) && !(isNull _unit)
}
do {
if (xxx_fn_esp_zombies1 == 0) exitWith {
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2) + 2];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format['<t size=''0.2'' color=''#FCFF00''>%1 (Range:%2m)</t>', "Zombie", round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_zombies2;
};
xxx_fn_esp_food_drink = {
xxx_fn_esp_food_drink3 = {
if (isNil 'xxx_fn_esp_food_drink1') then {
xxx_fn_esp_food_drink1 = 0;
};
if (xxx_fn_esp_food_drink1 == 0) then {
hint "Food and Drink ESP ON";
xxx_fn_esp_food_drink1 = 1;
arr1 = [];
while {
xxx_fn_esp_food_drink1 == 1
}
do {
_entities = (player nearObjects["DrinksItemBase", 1000]) + (player nearObjects["FoodItemBase", 1000]) + (player nearObjects["FoodCanned", 1000]) + (player nearObjects["FoodCanned_Closed", 1000]) + (player nearObjects["FruitBase", 1000]) + (player nearObjects["MeatBase ", 1000]) + (player nearObjects["berrybase", 1000]); {
if !(_x in arr1) then {
arr1 = arr1 + [_x];
[_x] spawn xxx_fn_esp_food_drink2;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Food and Drink ESP OFF";
xxx_fn_esp_food_drink1 = 0;
};
};
xxx_fn_esp_food_drink2 = {
disableSerialization;
if (isNil 'xxx_fn_esp_food_drink4') then {
xxx_fn_esp_food_drink4 = 2833;
};
xxx_fn_esp_food_drink4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_food_drink4 = xxx_fn_esp_food_drink4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_food_drink1 == 0) exitWith {
arr1 = arr1 - [_unit];
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.2' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
arr1 = arr1 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_food_drink3;
};
xxx_fn_esp_ammo = {
xxx_fn_esp_ammo2 = {
if (isNil 'xxx_fn_esp_ammo1') then {
xxx_fn_esp_ammo1 = 0;
};
if (xxx_fn_esp_ammo1 == 0) then {
hint "Ammo ESP ON";
xxx_fn_esp_ammo1 = 1;
xxx_fn_esp_ammo4 = [];
while {
xxx_fn_esp_ammo1 == 1
}
do {
_entities = (allMissionObjects "MagazineBase") + (allMissionObjects "AmmunitionItemBase") + (allMissionObjects "AmmunitionBoxItemBase") + (allMissionObjects "ArrowsBase"); {
if !(_x in xxx_fn_esp_ammo4) then {
xxx_fn_esp_ammo4 = xxx_fn_esp_ammo4 + [_x];
[_x] spawn xxx_fn_esp_ammo3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Ammo ESP OFF";
xxx_fn_esp_ammo1 = 0;
};
};
xxx_fn_esp_ammo3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_ammo5') then {
xxx_fn_esp_ammo5 = 2733;
};
xxx_fn_esp_ammo5 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_ammo5 = xxx_fn_esp_ammo5 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_ammo1 == 0) exitWith {
xxx_fn_esp_ammo4 = xxx_fn_esp_ammo4 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_ammo4 = xxx_fn_esp_ammo4 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_ammo2;
};
xxx_fn_esp_attachments = {
xxx_fn_esp_attachments2 = {
if (isNil 'xxx_fn_esp_attachments1') then {
xxx_fn_esp_attachments1 = 0;
};
if (xxx_fn_esp_attachments1 == 0) then {
hint "Attachment ESP ON";
xxx_fn_esp_attachments1 = 1;
xxx_fn_esp_attachments5 = [];
while {
xxx_fn_esp_attachments1 == 1
}
do {
_entities = (allMissionObjects "AttachmentBase") + (allMissionObjects "SuppressorBase") + (allMissionObjects "PoweredOpticBase"); {
if !(_x in xxx_fn_esp_attachments5) then {
xxx_fn_esp_attachments5 = xxx_fn_esp_attachments5 + [_x];
[_x] spawn xxx_fn_esp_attachments3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Attachment ESP OFF";
xxx_fn_esp_attachments1 = 0;
};
};
xxx_fn_esp_attachments3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_attachments4') then {
xxx_fn_esp_attachments4 = 2733;
};
xxx_fn_esp_attachments4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_attachments4 = xxx_fn_esp_attachments4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_attachments1 == 0) exitWith {
xxx_fn_esp_attachments5 = xxx_fn_esp_attachments5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_attachments5 = xxx_fn_esp_attachments5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_attachments2;
};
xxx_fn_esp_backpacks_vests = {
xxx_fn_esp_backpacks_vests2 = {
if (isNil 'xxx_fn_esp_backpacks_vests1') then {
xxx_fn_esp_backpacks_vests1 = 0;
};
if (xxx_fn_esp_backpacks_vests1 == 0) then {
hint "BackPack ESP ON";
xxx_fn_esp_backpacks_vests1 = 1;
xxx_fn_esp_backpacks_vests5 = [];
while {
xxx_fn_esp_backpacks_vests1 == 1
}
do {
_entities = (allMissionObjects "BagBase") + (allMissionObjects "VestBase");
{
if !(_x in xxx_fn_esp_backpacks_vests5) then {
xxx_fn_esp_backpacks_vests5 = xxx_fn_esp_backpacks_vests5 + [_x];
[_x] spawn xxx_fn_esp_backpacks_vests3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "BackPack ESP OFF";
xxx_fn_esp_backpacks_vests1 = 0;
};
};
xxx_fn_esp_backpacks_vests3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_backpacks_vests4') then {
xxx_fn_esp_backpacks_vests4 = 2733;
};
xxx_fn_esp_backpacks_vests4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_backpacks_vests4 = xxx_fn_esp_backpacks_vests4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_backpacks_vests1 == 0) exitWith {
xxx_fn_esp_backpacks_vests5 = xxx_fn_esp_backpacks_vests5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_backpacks_vests5 = xxx_fn_esp_backpacks_vests5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_backpacks_vests2;
};
xxx_fn_esp_all_clothing = {
xxx_fn_esp_all_clothing2 = {
if (isNil 'xxx_fn_esp_all_clothing1') then {
xxx_fn_esp_all_clothing1 = 0;
};
if (xxx_fn_esp_all_clothing1 == 0) then {
hint "Clothing ESP ON";
xxx_fn_esp_all_clothing1 = 1;
xxx_fn_esp_all_clothing5 = [];
while {
xxx_fn_esp_all_clothing1 == 1
}
do {
_entities = (allMissionObjects "ClothingBase") + (allMissionObjects "EyewearBase") + (allMissionObjects "Consumable_BandanaBase"); {
if !(_x in xxx_fn_esp_all_clothing5) then {
xxx_fn_esp_all_clothing5 = xxx_fn_esp_all_clothing5 + [_x];
[_x] spawn xxx_fn_esp_all_clothing3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Clothing ESP OFF";
xxx_fn_esp_all_clothing1 = 0;
};
};
xxx_fn_esp_all_clothing3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_all_clothing4') then {
xxx_fn_esp_all_clothing4 = 2733;
};
xxx_fn_esp_all_clothing4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_all_clothing4 = xxx_fn_esp_all_clothing4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_all_clothing1 == 0) exitWith {
xxx_fn_esp_all_clothing5 = xxx_fn_esp_all_clothing5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_all_clothing5 = xxx_fn_esp_all_clothing5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_all_clothing2;
};
xxx_fn_esp_eyewear_mask = {
xxx_fn_esp_eyewear_mask2 = {
if (isNil 'xxx_fn_esp_eyewear_mask1') then {
xxx_fn_esp_eyewear_mask1 = 0;
};
if (xxx_fn_esp_eyewear_mask1 == 0) then {
hint "Eyewear ESP ON";
xxx_fn_esp_eyewear_mask1 = 1;
xxx_fn_esp_eyewear_mask5 = [];
while {
xxx_fn_esp_eyewear_mask1 == 1
}
do {
_entities = (allMissionObjects "EyewearBase") + (allMissionObjects "MaskBase");
{
if !(_x in xxx_fn_esp_eyewear_mask5) then {
xxx_fn_esp_eyewear_mask5 = xxx_fn_esp_eyewear_mask5 + [_x];
[_x] spawn xxx_fn_esp_eyewear_mask3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Eyewear ESP OFF";
xxx_fn_esp_eyewear_mask1 = 0;
};
};
xxx_fn_esp_eyewear_mask3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_eyewear_mask4') then {
xxx_fn_esp_eyewear_mask4 = 2733;
};
xxx_fn_esp_eyewear_mask4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_eyewear_mask4 = xxx_fn_esp_eyewear_mask4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_eyewear_mask1 == 0) exitWith {
xxx_fn_esp_eyewear_mask5 = xxx_fn_esp_eyewear_mask5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_eyewear_mask5 = xxx_fn_esp_eyewear_mask5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_eyewear_mask2;
};
xxx_fn_esp_headgear = {
xxx_fn_esp_headgear2 = {
if (isNil 'xxx_fn_esp_headgear1') then {
xxx_fn_esp_headgear1 = 0;
};
if (xxx_fn_esp_headgear1 == 0) then {
hint "Headgear ESP ON";
xxx_fn_esp_headgear1 = 1;
xxx_fn_esp_headgear5 = [];
while {
xxx_fn_esp_headgear1 == 1
}
do {
_entities = (allMissionObjects "HeadgearBase"); {
if !(_x in xxx_fn_esp_headgear5) then {
xxx_fn_esp_headgear5 = xxx_fn_esp_headgear5 + [_x];
[_x] spawn xxx_fn_esp_headgear3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Headgear ESP OFF";
xxx_fn_esp_headgear1 = 0;
};
};
xxx_fn_esp_headgear3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_headgear4') then {
xxx_fn_esp_headgear4 = 2733;
};
xxx_fn_esp_headgear4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_headgear4 = xxx_fn_esp_headgear4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_headgear1 == 0) exitWith {
xxx_fn_esp_headgear5 = xxx_fn_esp_headgear5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_headgear5 = xxx_fn_esp_headgear5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_headgear2;
};
xxx_fn_esp_topwear = {
xxx_fn_esp_topwear2 = {
if (isNil 'xxx_fn_esp_topwear1') then {
xxx_fn_esp_topwear1 = 0;
};
if (xxx_fn_esp_topwear1 == 0) then {
hint "Topwear ESP ON";
xxx_fn_esp_topwear1 = 1;
xxx_fn_esp_topwear5 = [];
while {
xxx_fn_esp_topwear1 == 1
}
do {
_entities = (allMissionObjects "TopwearBase"); {
if !(_x in xxx_fn_esp_topwear5) then {
xxx_fn_esp_topwear5 = xxx_fn_esp_topwear5 + [_x];
[_x] spawn xxx_fn_esp_topwear3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Topwear ESP OFF";
xxx_fn_esp_topwear1 = 0;
};
};
xxx_fn_esp_topwear3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_topwear4') then {
xxx_fn_esp_topwear4 = 2733;
};
xxx_fn_esp_topwear4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_topwear4 = xxx_fn_esp_topwear4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_topwear1 == 0) exitWith {
xxx_fn_esp_topwear5 = xxx_fn_esp_topwear5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_topwear5 = xxx_fn_esp_topwear5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_topwear2;
};
xxx_fn_esp_bottomware = {
xxx_fn_esp_bottomware2 = {
if (isNil 'xxx_fn_esp_bottomware1') then {
xxx_fn_esp_bottomware1 = 0;
};
if (xxx_fn_esp_bottomware1 == 0) then {
hint "Bottomwear ESP ON";
xxx_fn_esp_bottomware1 = 1;
xxx_fn_esp_bottomware5 = [];
while {
xxx_fn_esp_bottomware1 == 1
}
do {
_entities = (allMissionObjects "BottomwearBase"); {
if !(_x in xxx_fn_esp_bottomware5) then {
xxx_fn_esp_bottomware5 = xxx_fn_esp_bottomware5 + [_x];
[_x] spawn xxx_fn_esp_bottomware3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Bottomwear ESP OFF";
xxx_fn_esp_bottomware1 = 0;
};
};
xxx_fn_esp_bottomware3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_bottomware4') then {
xxx_fn_esp_bottomware4 = 2733;
};
xxx_fn_esp_bottomware4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_bottomware4 = xxx_fn_esp_bottomware4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_bottomware1 == 0) exitWith {
xxx_fn_esp_bottomware5 = xxx_fn_esp_bottomware5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_bottomware5 = xxx_fn_esp_bottomware5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_bottomware2;
};
xxx_fn_esp_footwear = {
xxx_fn_esp_footwear2 = {
if (isNil 'xxx_fn_esp_footwear1') then {
xxx_fn_esp_footwear1 = 0;
};
if (xxx_fn_esp_footwear1 == 0) then {
hint "Footwear ESP ON";
xxx_fn_esp_footwear1 = 1;
xxx_fn_esp_footwear5 = [];
while {
xxx_fn_esp_footwear1 == 1
}
do {
_entities = (allMissionObjects "FootwearBase"); {
if !(_x in xxx_fn_esp_footwear5) then {
xxx_fn_esp_footwear5 = xxx_fn_esp_footwear5 + [_x];
[_x] spawn xxx_fn_esp_footwear3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Footwear ESP OFF";
xxx_fn_esp_footwear1 = 0;
};
};
xxx_fn_esp_footwear3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_footwear4') then {
xxx_fn_esp_footwear4 = 2733;
};
xxx_fn_esp_footwear4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_footwear4 = xxx_fn_esp_footwear4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_footwear1 == 0) exitWith {
xxx_fn_esp_footwear5 = xxx_fn_esp_footwear5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_footwear5 = xxx_fn_esp_footwear5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_footwear2;
};
xxx_fn_esp_vests = {
xxx_fn_esp_vests2 = {
if (isNil 'xxx_fn_esp_vests1') then {
xxx_fn_esp_vests1 = 0;
};
if (xxx_fn_esp_vests1 == 0) then {
hint "Vest ESP ON";
xxx_fn_esp_vests1 = 1;
xxx_fn_esp_vests5 = [];
while {
xxx_fn_esp_vests1 == 1
}
do {
_entities = (allMissionObjects "VestBase"); {
if !(_x in xxx_fn_esp_vests5) then {
xxx_fn_esp_vests5 = xxx_fn_esp_vests5 + [_x];
[_x] spawn xxx_fn_esp_vests3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Vest ESP OFF";
xxx_fn_esp_vests1 = 0;
};
};
xxx_fn_esp_vests3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_vests4') then {
xxx_fn_esp_vests4 = 2733;
};
xxx_fn_esp_vests4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_vests4 = xxx_fn_esp_vests4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_vests1 == 0) exitWith {
xxx_fn_esp_vests5 = xxx_fn_esp_vests5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_vests5 = xxx_fn_esp_vests5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_vests2;
};
xxx_fn_esp_gloves = {
xxx_fn_esp_gloves2 = {
if (isNil 'xxx_fn_esp_gloves1') then {
xxx_fn_esp_gloves1 = 0;
};
if (xxx_fn_esp_gloves1 == 0) then {
hint "Gloves ESP ON";
xxx_fn_esp_gloves1 = 1;
xxx_fn_esp_gloves5 = [];
while {
xxx_fn_esp_gloves1 == 1
}
do {
_entities = (allMissionObjects "GlovesBase"); {
if !(_x in xxx_fn_esp_gloves5) then {
xxx_fn_esp_gloves5 = xxx_fn_esp_gloves5 + [_x];
[_x] spawn xxx_fn_esp_gloves3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Gloves ESP OFF";
xxx_fn_esp_gloves1 = 0;
};
};
xxx_fn_esp_gloves3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_gloves4') then {
xxx_fn_esp_gloves4 = 2733;
};
xxx_fn_esp_gloves4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_gloves4 = xxx_fn_esp_gloves4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_gloves1 == 0) exitWith {
xxx_fn_esp_gloves5 = xxx_fn_esp_gloves5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_gloves5 = xxx_fn_esp_gloves5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_gloves2;
};
xxx_fn_esp_containers = {
xxx_fn_esp_containers2 = {
if (isNil 'xxx_fn_esp_containers1') then {
xxx_fn_esp_containers1 = 0;
};
if (xxx_fn_esp_containers1 == 0) then {
hint "Container ESP ON";
xxx_fn_esp_containers1 = 1;
xxx_fn_esp_containers5 = [];
while {
xxx_fn_esp_containers1 == 1
}
do {
_entities = (allMissionObjects "ContainerBase"); {
if !(_x in xxx_fn_esp_containers5) then {
xxx_fn_esp_containers5 = xxx_fn_esp_containers5 + [_x];
[_x] spawn xxx_fn_esp_containers3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Container ESP OFF";
xxx_fn_esp_containers1 = 0;
};
};
xxx_fn_esp_containers3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_containers4') then {
xxx_fn_esp_containers4 = 2733;
};
xxx_fn_esp_containers4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_containers4 = xxx_fn_esp_containers4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_containers1 == 0) exitWith {
xxx_fn_esp_containers5 = xxx_fn_esp_containers5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_containers5 = xxx_fn_esp_containers5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_containers2;
};
xxx_fn_esp_cookware_crafting = {
xxx_fn_esp_cookware_crafting2 = {
if (isNil 'xxx_fn_esp_cookware_crafting1') then {
xxx_fn_esp_cookware_crafting1 = 0;
};
if (xxx_fn_esp_cookware_crafting1 == 0) then {
hint "Cookware ESP ON";
xxx_fn_esp_cookware_crafting1 = 1;
xxx_fn_esp_cookware_crafting5 = [];
while {
xxx_fn_esp_cookware_crafting1 == 1
}
do {
_entities = (allMissionObjects "CookwareBase") + (allMissionObjects "CookerBase") + (allMissionObjects "CraftingItemBase") + (allMissionObjects "Consumable_Netting") + (allMissionObjects "Consumable_BurlapStrips") + (allMissionObjects "Consumable_Hook");
{
if !(_x in xxx_fn_esp_cookware_crafting5) then {
xxx_fn_esp_cookware_crafting5 = xxx_fn_esp_cookware_crafting5 + [_x];
[_x] spawn xxx_fn_esp_cookware_crafting3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Cookware ESP OFF";
xxx_fn_esp_cookware_crafting1 = 0;
};
};
xxx_fn_esp_cookware_crafting3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_cookware_crafting4') then {
xxx_fn_esp_cookware_crafting4 = 2733;
};
xxx_fn_esp_cookware_crafting4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_cookware_crafting4 = xxx_fn_esp_cookware_crafting4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {(!isNull _unit) && ((player distance _unit) < 1000)} do {
if (xxx_fn_esp_cookware_crafting1 == 0) exitWith {
xxx_fn_esp_cookware_crafting5 = xxx_fn_esp_cookware_crafting5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_cookware_crafting5 = xxx_fn_esp_cookware_crafting5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_cookware_crafting2;
};
xxx_fn_esp_medical = {
xxx_fn_esp_medical2 = {
if (isNil 'xxx_fn_esp_medical1') then {
xxx_fn_esp_medical1 = 0;
};
if (xxx_fn_esp_medical1 == 0) then {
hint "Medical ESP ON";
xxx_fn_esp_medical1 = 1;
xxx_fn_esp_medical5 = [];
while {
xxx_fn_esp_medical1 == 1
}
do {
_entities = (allMissionObjects "MedicalItemBase"); {
if !(_x in xxx_fn_esp_medical5) then {
xxx_fn_esp_medical5 = xxx_fn_esp_medical5 + [_x];
[_x] spawn xxx_fn_esp_medical3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Medical ESP OFF";
xxx_fn_esp_medical1 = 0;
};
};
xxx_fn_esp_medical3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_medical4') then {
xxx_fn_esp_medical4 = 2733;
};
xxx_fn_esp_medical4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_medical4 = xxx_fn_esp_medical4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_medical1 == 0) exitWith {
xxx_fn_esp_medical5 = xxx_fn_esp_medical5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_medical5 = xxx_fn_esp_medical5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_medical2;
};
xxx_fn_esp_melee = {
xxx_fn_esp_melee2 = {
if (isNil 'xxx_fn_esp_melee1') then {
xxx_fn_esp_melee1 = 0;
};
if (xxx_fn_esp_melee1 == 0) then {
hint "Melee ESP ON";
xxx_fn_esp_melee1 = 1;
xxx_fn_esp_melee5 = [];
while {
xxx_fn_esp_melee1 == 1
}
do {
_entities = (allMissionObjects "MeleeItemBase") + (allMissionObjects "Sword") + (allMissionObjects "KnifeBase"); {
if !(_x in xxx_fn_esp_melee5) then {
xxx_fn_esp_melee5 = xxx_fn_esp_melee5 + [_x];
[_x] spawn xxx_fn_esp_melee3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Melee ESP OFF";
xxx_fn_esp_melee1 = 0;
};
};
xxx_fn_esp_melee3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_melee4') then {
xxx_fn_esp_melee4 = 2733;
};
xxx_fn_esp_melee4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_melee4 = xxx_fn_esp_melee4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_melee1 == 0) exitWith {
xxx_fn_esp_melee5 = xxx_fn_esp_melee5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_melee5 = xxx_fn_esp_melee5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_melee2;
};
xxx_fn_esp_vehicles = {
xxx_fn_esp_vehicles2 = {
if (isNil 'xxx_fn_esp_vehicles1') then {
xxx_fn_esp_vehicles1 = 0;
};
if (xxx_fn_esp_vehicles1 == 0) then {
hint "Vehicle ESP ON";
xxx_fn_esp_vehicles1 = 1;
xxx_fn_esp_vehicles5 = [];
while {
xxx_fn_esp_vehicles1 == 1
}
do {
_entities = (allMissionObjects "V3S_Cargo") + (allMissionObjects "v3s_cargo_blue") + (allMissionObjects "Car_DZ"); {
if !(_x in xxx_fn_esp_vehicles5) then {
xxx_fn_esp_vehicles5 = xxx_fn_esp_vehicles5 + [_x];
[_x] spawn xxx_fn_esp_vehicles3;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Vehicle ESP OFF";
xxx_fn_esp_vehicles1 = 0;
};
};
xxx_fn_esp_vehicles3 = {
disableSerialization;
if (isNil 'xxx_fn_esp_vehicles4') then {
xxx_fn_esp_vehicles4 = 2733;
};
xxx_fn_esp_vehicles4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_vehicles4 = xxx_fn_esp_vehicles4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {
(!isNull _unit) && ((player distance _unit) < 1000)
}
do {
if (xxx_fn_esp_vehicles1 == 0) exitWith {
xxx_fn_esp_vehicles5 = xxx_fn_esp_vehicles5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#7200FC'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_fn_esp_vehicles5 = xxx_fn_esp_vehicles5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_vehicles2;
};
xxx_fn_esp_animal = {
xxx_fn_esp_animal2 = {
if (isNil 'xxx_esp_animal_tog') then {
xxx_esp_animal_tog = 0;
};
if (xxx_esp_animal_tog == 0) then {
hint "Animal ESP ON";
xxx_esp_animal_tog = 1;
xxx_esp_animal_list = [];
while {xxx_esp_animal_tog == 1}
do {
_entities = (allMissionObjects "DZ_AnimalBase"); {
if !(_x in xxx_esp_animal_list) then {
xxx_esp_animal_list = xxx_esp_animal_list + [_x];
[_x] spawn xxx_esp_animal_draw;
sleep 0.25;
};
}
forEach _entities;
sleep 5;
};
} else {
hint "Animal ESP OFF";
xxx_esp_animal_tog = 0;
};
};
xxx_esp_animal_draw = {
disableSerialization;
if (isNil 'xxx_fn_esp_animal4') then {
xxx_fn_esp_animal4 = 2733;
};
xxx_fn_esp_animal4 cutRsc['rscDynamicText', 'PLAIN'];
xxx_fn_esp_animal4 = xxx_fn_esp_animal4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = _this select 0;
while {(!isNull _unit) && ((player distance _unit) < 1000)} do {
if (xxx_esp_animal_tog == 0) exitWith {
xxx_esp_animal_list = xxx_esp_animal_list - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then {
_ctrl ctrlSetPosition[(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format["<t size='0.25' color='#B7FF00'>%1 (%2m)</t>", typeOf _unit, round(player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
xxx_esp_animal_list = xxx_esp_animal_list - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn xxx_fn_esp_animal2;
};
subMenu = [];
genSubMenu = {hint "holder";};
menuScripts = [
[" ESP Menu",{ tempArray = subMenu; subMenu spawn genSubMenu; },false,"",true],
[" Player (simple)",xxx_fnc_esp1,false,""],
[" Vehicles",xxx_fn_esp_vehicles,false,""],
[" Map",xxx_fn_view_map,false,"",false],
[" Map Markers",xxx_fn_map_markerz,false,"",false],
[" TP",xxx_fn_televeh,false,"",false],
[" Vehicle TP-1000m",xxx_fn_teleport,false,"",false],
[" Speedhack",xxx_fn_speedhack,true,"toggle_1",false],
[" Speedhack 2",xxx_fn_speedhack2,true,"toggle_2",false],
[" Night Light",xxx_fn_nightlight,true,"toggle_3",false],
[" No Buildings",xxx_fn_no_buildings,true,"toggle_4",false],
[" No Grass",xxx_fn_no_grass,true,"toggle_5",false],
[" No Blur Full Color",xxx_fn_noblur_colour,true,"toggle_6",false],
[" Gun God",xxx_fnc_gun_god,true,"toggle_10",false],
[" Fast Animations",xxx_fn_fast_anim,true,"toggle_8",false],
[" Bullet Cam",xxx_fn_bullet_cam,true,"toggle_9",false],
[" Low View Distance",xxx_fn_view_dis,true,"toggle_7",false],
[" Max View Distance",xxx_fn_max_view_dis,true,"toggle_11",false],
[" Debug Menu :D",JunEditDebug,true,"toggle_11",false],
[" HUD",xxx_fn_HUD,true,"toggle_12",false],
[" Dupe Me",xxx_fn_dupe,false,"",false],
[" Take a Shit",xxx_fn_shit,false,"",false],
[" 3rd Person",xxx_fn_3rd_person,false,"",false],
[" Executor",xxx_fn_executor,false,"",false]
];
subMenu = [
[" Player (full)",xxx_fnc_esp2,false,""],
[" Weapons",xxx_fn_esp_weapons,false,""],
[" Ammo",xxx_fn_esp_ammo,false,""],
[" Attachments",xxx_fn_esp_attachments,false,""],
[" Cthulhu",xxx_fn_esp_cthulhu,false,""],
[" Sewing - Can Opener",xxx_fn_esp_sewing_can,false,""],
[" Tents - Vehicle Parts",xxx_fn_esp_tents_veh_prt,false,""],
[" Helicopters",xxx_fn_esp_helis,false,""],
[" Bodies",xxx_fnc_esp_bodies,false,""],
[" Zombies",xxx_fn_esp_zombies,false,""],
[" Food Drink",xxx_fn_esp_food_drink,false,""],
[" Backpacks - Vests",xxx_fn_esp_backpacks_vests,false,""],
[" All Items",xxx_fn_esp_all_items,false,""],
[" All Clothing",xxx_fn_esp_all_clothing,false,""],
[" Glasses-Masks",xxx_fn_esp_eyewear_mask,false,""],
[" Headgear",xxx_fn_esp_headgear,false,""],
[" Body",xxx_fn_esp_topwear,false,""],
[" Legs",xxx_fn_esp_bottomware,false,""],
[" Feet",xxx_fn_esp_footwear,false,""],
[" Gloves",xxx_fn_esp_gloves,false,""],
[" Containers",xxx_fn_esp_containers,false,""],
[" Cooking - Crafting",xxx_fn_esp_cookware_crafting,false,""],
[" Medical",xxx_fn_esp_medical,false,""],
[" Melee",xxx_fn_esp_melee,false,""],
[" Animals",xxx_fn_esp_animal,false,""]
];
shiftMenu = {
if ((typeName _this) == "ARRAY") then {
_control = _this select 0;
_pos = ctrlPosition _control;
_control ctrlSetPosition [(_pos select 0)+0.5, (_pos select 1),(_pos select 2)+(_this select 1), (_pos select 3) + (_this select 2)];
_control ctrlCommit 0;
} else {
_control = _this;
_pos = ctrlPosition _control;
_control ctrlSetPosition [(_pos select 0)+0.5, (_pos select 1),(_pos select 2), (_pos select 3)];
_control ctrlCommit 0;
};
};
fixMenu = {
_display = _this;
_controlScripts = (_display displayCtrl 1021);
_pos = ctrlPosition _controlScripts;
_controlPlayers = (_display displayCtrl 1002);
_controlPlayers ctrlSetPosition [(_pos select 0)+(_pos select 2)+0.06, (_pos select 1)];
_controlPlayersBG = (_display displayCtrl 1022);
_controlPlayersBG ctrlSetPosition [(_pos select 0)+(_pos select 2)+0.06, (_pos select 1)];
_controlPlayers ctrlCommit 0;
_controlPlayersBG ctrlCommit 0;
[(_display displayCtrl 1021),0.05,0] call shiftMenu;
(_display displayCtrl 1022) call shiftMenu;
_mcontrol = (_this displayCtrl 1001);
_mpos = ctrlPosition _mcontrol;
_control = (_display displayCtrl 1023);
_pos = ctrlPosition _control;
_widthScripts = ctrlPosition (_display displayCtrl 1021) select 2;
_widthPlayers = ctrlPosition (_display displayCtrl 1022) select 2;
_control ctrlSetText " Jme Menu";
_control ctrlSetfont "AmorSerifProBold";
_control ctrlSetBackgroundColor [0, 0, 0, 0.8];
_control ctrlSetPosition [(_mpos select 0)+0.5, (_pos select 1)-0.08, (_widthScripts + _widthPlayers + 0.009),0.08];
_control ctrlCommit 0;
(_display displayCtrl 1013) ctrlShow false;
(_display displayCtrl 1013) ctrlSetScale 3;
(_display displayCtrl 1013) ctrlCommit 1;
};
genPlayers = {
_control = (_this displayCtrl 1002);
_control call shiftMenu;
_control ctrlSetfont "AmorSerifProBold";
_control lbAdd "Players:";
_control lbSetColor [0, [1,0.1,0.66,1]];
_control lbAdd "-----------------------------";
_control lbSetColor [1, [1,0.1,0.66,1]];
_list = player nearEntities ["SurvivorBase",1000];
{
_control lbAdd format["%1",name _x];
}forEach _list;
};
dbClicked = {
disableserialization;
_index = _this;
_item = tempArray select _index;
_text = _item select 0;
_cmd = _item select 1;
_isToggle = _item select 2;
_toggleVar = _item select 3;
[] spawn _cmd;
if(_isToggle) then {
call compile format["%1 = !%1",_toggleVar];
_bool= call compile _toggleVar;
if(_bool) then {
lbSetColor [1001,_index,[0,1,0,1]];
} else {
lbSetColor [1001,_index,[1,0,0,1]];
};
};
};
genScripts = {
_control = (_this displayCtrl 1001);
_control ctrlRemoveAllEventHandlers "LBSelChanged";
_control ctrlRemoveAllEventHandlers "LBDblClick";
_control ctrlRemoveAllEventHandlers "MouseButtonDown";
_control ctrlRemoveAllEventHandlers "KeyDown";
_control ctrlAddEventHandler ["LBDblClick","(_this select 1) spawn dbClicked;"];
_control ctrlCommit 0;
_control = (_this displayCtrl 1001);
_pos = ctrlPosition _control;
_control ctrlSetfont "AmorSerifProBold";
[_control,0.05,0] call shiftMenu;
disableSerialization;
_display = _this;
_left = _display displayctrl 1001;
_counter = 0;
lbClear _left;
{
_left lbAdd (_x select 0);
if((_x select 2)) then {
_bool= call compile (_x select 3);
if(_bool) then {
_left lbSetColor [_counter,[0.28,0.99,0.19,1]];
} else {
_left lbSetColor [_counter,[0.99,0.18,0.17,1]];
};
} else {
if (_x select 4) then {
_left lbSetColor [_counter,[0.04,0.8,0.92,1]];
} else {
_left lbSetColor [_counter,[1,1,1,1]];
};
};
_counter = _counter + 1;
} forEach menuScripts;
_left ctrlCommit 0;
};
genSubMenu = {
disableSerialization;
_display = findDisplay 129;
_left = _display displayctrl 1001;
_subscripts = _this;
_counter = 0;
lbClear _left;
{
_left lbAdd (_x select 0);
if((_x select 2)) then {
_bool= call compile (_x select 3);
if(_bool) then {
_left lbSetColor [_counter,[0,1,0,1]];
} else {
_left lbSetColor [_counter,[1,0,0,1]];
};
} else {
if (_x select 4) then {
_left lbSetColor [_counter,[0,0,0.75,1]];
} else {
_left lbSetColor [_counter,[1,1,1,1]];
};
};
_counter = _counter + 1;
} forEach _subscripts;
_left ctrlCommit 0;
};
startMenu = {
_ok = createDialog "RscDisplayDiary";
disableSerialization;
waitUntil{!isNull (findDisplay 129)};
_display = findDisplay 129;
_display call fixMenu;
_display call genScripts;
_display call genPlayers;
tempArray = menuScripts;
if (_ok) then {
};
disableUserInput false;
};
[] spawn {
_count = 0;
while{true} do {
if(inputAction "NightVision" > 0) then {
if(isNull (findDisplay 129)) then {
[] spawn startMenu;
};
sleep 0.5;
};
sleep 0.001;
_count = _count + 1;
};
};
[] spawn {
while {true} do {
if (inputAction "moveRight" > 0) then {
[] spawn almagnet;
waitUntil{inputAction "moveRight" == 0};
};
sleep 0.001;
};
};
[] spawn {
while {true} do {
if (inputAction "buldSwitchCamera" > 0) then {
[] spawn jme_healthometer;
waitUntil{inputAction "buldSwitchCamera" == 0};
};
sleep 0.001;
};
};
_Stxt = parseText format["<t color='#FFFFFF'>Welcome to</t><br/><br/><t color='#ffff00'>Jme Menu v2</t><br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/><t color='#99D5FF'>Press </t><t color='#FFFFFF'>N</t><t color='#99D5FF'> to open the menu!</t> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/><t color='#FF3B3E'>CREDITS</t><br/><t color='#FFFFFF'>m0nky, Necro, Lystic, Raiin, Bowen, Fonzy, Vince and Jme</t>"];
hintSilent _Stxt; systemchat "Jme Menu v2 Loaded";
};