Jump to content
  • 0

Log grim esp infistar


Hooty

Question

Does anyone know how to log grim esp in infistar I have tried this but nothing.

Spoiler
  1. admin_fnc_esp = {
  2.         if("  Grim ESP" in admin_toggled)then{ admin_toggled=admin_toggled-["  Grim ESP"];call fnc_bruno_esp; };call admin_init;
  3.         fnc_espSHOW = {
  4.             disableSerialization;
  5.             {_x ctrlShow false;_x ctrlEnable false;} forEach ctrlarray;
  6.             _camPos = positionCameraToWorld [0,0,0];
  7.             {
  8.                 if(visibleMap)exitWith{};
  9.                 _veh = vehicle _x;
  10.                 _pos = ASLtoATL eyepos _x;
  11.                 _dist = _camPos distance _pos;
  12.                 _pos2D = worldToScreen _pos;
  13.                 if(count _pos2D != 0)then
  14.                 {
  15.                     _dist = round _dist;
  16.                     _text = format['<t size=''0.45'' color=''#0B80FF''>%1 (%2m)</t>',name _x,_dist];
  17.                     if(_x != _veh)then
  18.                     {
  19.                         _crewnames = '';
  20.                         {
  21.                             _namex = name _x;
  22.                             if(_crewnames == '')then
  23.                             {
  24.                                 _crewnames = format['%1',_namex];
  25.                             }
  26.                             else
  27.                             {
  28.                                 _crewnames = format['%1, %2',_crewnames,_namex];
  29.                             };
  30.                         } forEach (crew _veh);
  31.                         _text = format['<t size=''0.45'' color=''#FF5926''>%1 (%2m) %3</t>',_crewnames,_dist,typeOf _veh];
  32.                     };
  33.                     _ctrl = ctrlarray select _forEachIndex;
  34.                     _ctrl ctrlEnable true;_ctrl ctrlShow true;
  35.                     _ctrl ctrlSetStructuredText (parseText _text);
  36.                     _ctrl ctrlSetPosition [(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1)-0.05, safezoneW, safezoneH];
  37.                     _ctrl ctrlSetFade (_dist/fnc_esp_distance)+.2;
  38.                     _ctrl ctrlCommit 0;
  39.                 };
  40.             } forEach ESP_UNIT_ARR;
  41.         };
  42.         disableSerialization;
  43.         if(isNil'ctrlarray')then
  44.         {
  45.             ctrlarray = [];
  46.             for '_i' from 0 to 100 do
  47.             {
  48.                 (random 9999) cutRsc ['rscDynamicText', 'PLAIN'];
  49.                 _ctrl = ((uiNameSpace getVariable 'BIS_dynamicText') displayctrl 9999);
  50.                 ctrlarray = ctrlarray + [_ctrl];
  51.             };
  52.         };
  53.         if(isNil'fnc_esp_stateT')then
  54.         {
  55.             fnc_esp_stateT = [] spawn {
  56.                 _puid = getPlayerUID player;
  57.                 while{true}do
  58.                 {
  59.                     ESP_UNIT_ARR=[];
  60.                     _pos = getPos (vehicle player);
  61.                     {
  62.                         if((getPlayerUID _x != _puid)&&(alive _x))then
  63.                         {
  64.                             if(_pos distance _x < 1200)then
  65.                             {
  66.                                 ESP_UNIT_ARR=ESP_UNIT_ARR+[_x];
  67.                             };
  68.                         };
  69.                     } forEach playableUnits;
  70.                     uiSleep 2;
  71.                 };
  72.             };
  73.             fnc_esp_distance = 1200;
  74.             setGroupIconsVisible [true, false];
  75.             onEachFrame {call fnc_espSHOW;};
  76.             cutText ['ESP ON', 'PLAIN DOWN'];
  77.             _sl = format["%1 GrimIcons Activated",_nameP];
  78.             PVAH_WriteLogReq = [player,toArray _sl];
  79.             publicVariableServer 'PVAH_WriteLogReq';
  80.         }
  81.         else
  82.         {
  83.             terminate fnc_esp_stateT;fnc_esp_stateT=nil;
  84.             setGroupIconsVisible [true, true];
  85.             onEachFrame {};
  86.             cutText ['ESP OFF', 'PLAIN DOWN'];
  87.             _sl = format["%1 GrimIcons Deactivated",_nameP];
  88.             PVAH_WriteLogReq = [player,toArray _sl];
  89.             publicVariableServer 'PVAH_WriteLogReq';
  90.         };
  91.         {_x ctrlShow false;_x ctrlEnable false;} forEach ctrlarray;
  92.     };

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Very strange. Well then, try this:

fnc_esp_distance = 1200;
setGroupIconsVisible [true, false];
onEachFrame {call fnc_espSHOW;};
cutText ['ESP ON', 'PLAIN DOWN'];
_nameP = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_nameP = name player;};
_sl = format["%1 GrimIcons Activated",_nameP];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
}
else
{
terminate fnc_esp_stateT;fnc_esp_stateT=nil;
setGroupIconsVisible [true, true];
onEachFrame {};
cutText ['ESP OFF', 'PLAIN DOWN'];
_nameP = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_nameP = name player;};
_sl = format["%1 GrimIcons Deactivated",_nameP];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';

Link to comment
Share on other sites

  • 0

Find this line in AT.sqf: 

if(isNil "RENDER_ESP")then{RENDER_ESP = false;};

Add this line after it:

_sl = "";

Find this line in AT.sqf: 

systemChat "ESP ON!";

Add this line after it:

_sl = format["%1 ESP ON!",name player];

Find this line in AT.sqf: 

systemChat "ESP OFF!";

Add this line after it:

_sl = format["%1 ESP OFF!",name player];

Find this code block in that function:

			onEachFrame {};
		};

Add this after it:

		PVAH_WriteLogReq = [player,toArray _sl];
		publicVariableServer 'PVAH_WriteLogReq';

 

Link to comment
Share on other sites

  • 0
On 6/2/2017 at 6:58 AM, salival said:

Find this line in AT.sqf: 


if(isNil "RENDER_ESP")then{RENDER_ESP = false;};

Add this line after it:


_sl = "";

Find this line in AT.sqf: 


systemChat "ESP ON!";

Add this line after it:


_sl = format["%1 ESP ON!",name player];

Find this line in AT.sqf: 


systemChat "ESP OFF!";

Add this line after it:


_sl = format["%1 ESP OFF!",name player];

Find this code block in that function:


			onEachFrame {};
		};

Add this after it:


		PVAH_WriteLogReq = [player,toArray _sl];
		publicVariableServer 'PVAH_WriteLogReq';

 

Thanks it works Im using @oldmatechoc way though both work perfect.

Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...