Jump to content
Sign in to follow this  

Name Tag for PvE - on map & screen

Recommended Posts

This script creates name tag on screen and on map for everyone (else than yourself and your group members) in the server.

In vanilla DZE, You can see the marker of your position by setting
dayz_markSelf = 2;
and the markers and name tags of your group members by
dayz_markGroup = 1;
, and you can see name tag of other people when you aim him properly (and maybe, you need to DETECT him) - sometime not working  and "blue on bllue" happens in a PvE server.
I don't know how to "always" show name tags for other people in the server, so I have created this

Edit 2017/5/12: New version which shows EVERY player - old script shows only team leaders


1.Create DayZ_Epoch_11.Chernarus\Custom\showplayer.sqf  which includes below;


private ["_isDisplay","_hasGPS","_hasRadio","_group","_vehname","_crewtotal","_index","_players","_count"];

if (isDedicated) exitWith {};

waitUntil {sleep 5; player getVariable ["DZE_display_name", false];};

_players = +(playableUnits);
_count = count _players;
setGroupIconsVisible [false,true];

while {true} do {
    _isDisplay = player getVariable ["DZE_display_name", false];
    _hasGPS = "ItemGPS" in items player;
    if (dayz_markGroup == 1) then {
        _hasGPS = true;
    _hasRadio = "ItemRadio" in items player;
    if (!dayz_requireRadio) then {
        _hasRadio = true;

    //delete marker
    for "_index" from 0 to (_count - 1) do {
        deleteMarkerLocal format["playerMarker%1",_index];
    {clearGroupIcons group _x;} forEach _players;

    if (_isDisplay && _hasRadio && _hasGPS) then {
        //set player list
            if (!(_x in _players)) then {
                _players set [count _players,_x];
        } forEach playableUnits;
            if (isNull _x) then {
                _players = _players - [_x];
        } forEach _players;
        _count = count _players;

        //create marker
        _group = units group player;
            if ((alive _x) && !(_x in _group) && (effectiveCommander vehicle _x == _x)) then {
                // Set group name
                if (vehicle _x == _x) then {
                    _vehname = name _x;
                } else {
                    // Get vehicle name
                    _vehname = gettext (configFile >> 'CfgVehicles' >> (typeof vehicle _x) >> 'displayName');
                    // Get crew names
                    _crewtotal = crew (vehicle _x);
                        _vehname = _vehname + ", " + (name _x);
                    } forEach _crewtotal;
                _vehname = format ["[%1]@%2m",_vehname,round(_x distance player)];

                // Add Marker
                _marker = createMarkerLocal [format["playerMarker%1",_forEachIndex],getpos _x];
                if (vehicle _x == _x) then {
                    _marker setMarkerTypeLocal "b_inf";
                    (group _x) addGroupIcon ["b_inf"];
                } else {
                    _marker setMarkerTypeLocal "b_motor_inf";
                    (group _x) addGroupIcon ["b_motor_inf"];
                _marker setMarkerTextLocal _vehname;
                _marker setMarkerColorLocal "ColorGreen";
                group _x setGroupIconParams [[0,1,0,1], _vehname, 0.35, ((player distance _x) < DZE_HumanityTargetDistance)];
        } forEach _players;

    sleep 5;


2. in the bottom (or, maybe, in the if (!isDedicated) then { *** }; section) of DayZ_Epoch_11.Chernarus\init.sqf, add


//Player tag
[] execVM "Custom\showplayer.sqf";

and also in init.sqf,
DZE_NameTags must be 1 or 2(and select "Display Name (Yes)" in game) to use this script.
You need to have a Radio and a GPS.

dayz_markGroup = 1; makes the script not to require a GPS.
dayz_requireRadio = false; makes the script not to require a Radio.

This script is based on ESPplayer of Admin tool

On 2/19/2014 at 10:52 AM, NoxSicarius said:

NOTICE For those who want to use this in 1.0.6

The tools are partially updated for the new release. Most features are working so far and it can be downloaded from here (follow the readme for install): https://github.com/noxsicarius/Epoch-Admin-Tools/tree/TestBranch





Under NO circumstances should you download this tool from a different source. I have been notified of numerous virus downloads listed as my work (usually second page of google and farther). I have petitioned to have all of the ones I know of blacklisted and have sent virus profiles to all major antivirus companies. If you find a .exe in any work claiming to be mine, it is a virus and should be shredded. 

Please only download from MY github link or the links in this post.

My github repo will NEVER be removed and if I leave the project and someone wishes to take over, they will be given rights to the repo.


For help with Administration:

  • Multiple Admin levels
  • Spectate players
  • "Display code" for locked vaults/doors
  • "Create key" for vehicles with lost keys
  • Force lock and unlock vehicles without keys
  • Base Destruction - Destroy all buildables/vehicles within a customizable radius
  • Spawnable crates with weapons, items, and supplies
  • Spawn locked or temporary vehicles via the menu or a custom-made graphical vehicle menu (screenshot)

Other features:

  • Godmode
  • Teleport self (or others to you)
  • Flying
  • Invisibility
  • Delete and repair/refuel vehicle on crosshairs
  • ESP - display players, zombies, safes, tents, vehicles, and AI on the map
  • ...and more!

Installation, changes, additional information, FAQ, credits, issues and everything else can be found at the project page on Github:

Epoch Admin Tools on GitHub

Click here for an install tutorial video for the tool

I have been informed that some places block GitHub, so here are direct links hosted by me:

Newest full release: https://www.dropbox.com/s/pjvj07u5yemo7we/Epoch-Admin-Tools-master.zip?dl=0
Beta build: https://www.dropbox.com/s/xm6t1k3gvp3t8ex/Epoch-Admin-Tools-TestBranch.zip?dl=0

If you have an improvement you would like to add, make a pull request and make these tools even better!

Error Reporting:
BEFORE posting an issue on Github or on this forum:

  • If you think you might have installed it incorrectly, follow the YouTube Video Install Tutorial
  • Try reinstalling the tool. You more than likely missed something important.
  • Do a quick search on this forum for a fix to your problem.
  • Check your server's RPT log for errors. This will identify 99% of problems with the menu. Be ready to copy/paste the RPT log into Pastebin or Gist in an issue or in the discussion forum for help with troubleshooting.

If your problem persists after doing the above:

  • Open your arma2oaserver.rpt file in a text editor and copy/paste the RPT log into Pastebin and post your issue in this forum with the rpt log. If you post something like "It doesn't work" I will not acknowledge you. Not giving all possible details in the first post simply makes it take longer to resolve and will waste everyone's time. I am hard pressed for time these days so if you won't take the initiative to provide information, I won't ask for it either. I am not trying to be mean, but I am quite tired of getting 5 or less word posts that provide no information other than this person has some kind of problem somewhere on their server that may or may not be related to this mod.
  • If the problem you are posting is a bug and not a general install problem then post it to this forum AND to the github issues page.


I have been asked by someone if they can donate to the project so I am adding the link here.

I have invested a good deal of time into this so if you find it useful please give a little donation.


I also accept Crypto Currency: 

Bitcoin: 1GkzMzwnVwVpnUCVFaAyLDsgD9cqSfigdm

Litecoin: LbUrUxXzA557VeTWXM8jP7hNf3uZHEqW5b


A sincere thanks to those who made a monetary contribution to this project.: calamityCRHASHBMovieQueenzixxel, 8BitSigdomAnariorf3cukCaveman1, Nathan, [member=WootyWoop], [member=Terrance Smith]


Please leave your name in a note if you donate so that I can list you above.


To Block damage by PvP, try:

On 8/29/2017 at 4:09 AM, salival said:

You could do it in the damage handler around here: https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/compile/fn_damageHandler.sqf#L77

if (_isPlayer) exitWith {};

Should be enough to exit it if a player shoots/damages another player.

Not tested but don't see why it wouldn't work.

Edited by Schalldampfer

Share this post

Link to post
Share on other sites
1 hour ago, kingpapawawa said:

looking to add a right click option on gps to turn this off and on... have tried doing it myself and failed miserably =)

In the show_player.sqf find this line:

while {true} do {

And replace it with

while {DZE_showplayers} do {

Then go to your rightclick actions and link the item you want to use to a script, something like toggle_showplayer.sqf (that's your choice) and then in this script simply write:

if (DZE_showplayers) then {
	DZE_showplayers = false;
} else {
	DZE_showplayers = true;


Share this post

Link to post
Share on other sites
2 minutes ago, kingpapawawa said:

  Error Undefined variable in expression: dze_showplayers

You have to define it somewhere ofcourse :D
For example in the init.sqf or the variables.sqf so it has a default value. I thought this is self explainatory, sorry.

Share this post

Link to post
Share on other sites
10 minutes ago, kingpapawawa said:

some of us are idiots =)

Wow, that's not what I meant. I just forgot to add this to my instruction because for me it was simple but that's the difference between guys that install scripts from this forum and the guys that write them. :D
That doesn't mean you are an idiot. :b

Share this post

Link to post
Share on other sites
DZE_NameTags is in \z\addons\dayz_code\configVariables.sqf


DZE_NameTags = 0; // Name displays when looking at player up close  0 = Off, 1= On, 2 = Player choice

if you set DZE_NameTags, DZE_display_name will be set in \z\addons\dayz_code\actions\display_name.sqf automatically.
In my script, I'm using DZE_display_name to show tags or not. Touching DZE_NameTags is the way to set DZE_display_name.

DZE_showplayers is a new variable that's added by @DAmNRelentless ,which is not in my version at all.

Share this post

Link to post
Share on other sites
7 hours ago, Schalldampfer said:

DZE_showplayers is a new variable that's added by @DAmNRelentless ,which is not in my version at all.

That was just an idea for the name of the variable because your script was named showplayers.sqf.
The idea was to make this available for right click options so you can toggle your script. :)

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By Snake72
      MAP: Cherno
      TS: violatown.myts.at
      Discord: discord.gg/NFmBYtt
      Rules in ENG/FRA/RUS
      ONLY PVE!
      80 Meter Plot (Zed free) 1 Step Build BuildingLimit 900+ Gem Craft Coins System & Bank Tow & Lift Bike deploy Self Blood Bag Weed (planting/smoking) Lotterie Masterkey Remote vehicle LocateVehicle GarageDoorOpener LocateVehicle Take Clothes VT Crafting Group Management Custom spawn Custom Buildings New locations and many more... AI:
      WAI DZMS DZMSHotSpots Andre Convoy Events:
      Epoch Events Buried Treasure Animated Crashspawner Flybye Labyrinth The fugitive Event Trader:
      Custom Traders Sandford and Son (buy everything with 35% discount) HAVE FUN
    • By Schalldampfer
      PvE (No PvP) server at Japan. Details on website - too many scripts to write down!
      Full mili, AI city, Virtual garage, Bank, WAI, customized traders, JSRS1.5
      Server IP -> search in lobby
      Website : http://chernarus.web.fc2.com/
      Discord : https://discord.gg/czZr3xW

    • By Adam1911
      We are pleased to announce the launch of our arma 2 Old School DayZ Epoch Server. We are a growing community that is a looking for a foot hold in the arma community. We welcome all community Suggestion, join our discord and have your say.
      We offer you a unique experience while playing on our servers with great peoples, Fair adult admins and mature staff.
      Experienced staff with experience and successful servers from Arma 2 to Arma 3, Enjoyable game experience with a lot to do. We will enforce the rules as strongly as we can to get rid of any peoples trying to break this great experience for us.

      Voting Day/Night. Build Limit : 180. Indestructible Bases. @Relentless weapon HUD (Hide it with F6) Custom AI Missions. Custom Loot. Realistic Towing. Slow Zombies (still a threat and more of them.) Self Blood Bag. Air drops. Snap Building. Coin System.  Repair/Fuel Services. Deploy Bike. Bury Body. Take Clothes. Locate Vehicle. TAB Menu. Custom Traders for Hero & Super Hero Change / Custom door codes. and much more
        Website: Website
      Discord: Discord
    • By Harkness
      Happy to announce the launch of our new custom server. 
      DayZ Epoch Chernarus 
      To connect search for "v666" in your DayZ Launcher
      Server Modes/Mods/Addons
      Romero Style Zombies
      Snow & Cold Weather Effects (temp+breath)
      Custom Intro Radio Broadcast
      Spawn Location Options
      Safe Trader Areas
      Roaming/Driving/Flying AI Excursions
      AI Mission System
      Random Events
      Auto Re-fuel at any Gas Station
      Day/Night Cycle w/6 Hourly Reboots
      ++Many more to come! Want something added? Request it here
      Don't forget to register here for your own custom load-out and access to our community forums
      This server is both PVP and PVE. We dont believe in giving players rules but cheating in any way will result in lifetime ban from whole community.
    • By LadyVal
      As I said before, I am new in all these.  We rented a GTX server with everything on and we are trying to set some costumization but.... yes, there is always a but... I would like to ask some help.
      Please, consider me as a total new in scripting and I need a "step by step for dummies"
      1.- I am trying to set the entire server into PVE so no player could harm other player or kamikaze into anybody.  How and where do you handle this "godmode" so I turn the server into PVE?
      2.- Though like I said we want the server to be PVE, the idea is to make 2 exceptions and create 2 pvp areas (in Cherno and Elektro).  How you Mark those areas in map with notifications 100 mts (for example) "you are entering a pvp area"
      3.- Admintools: I set them exactly like the step by step guide but it is giving an error (I dont have antihack), 
      4.- Since the problem with Bohemia and BE, I could never make the messages announcing the server restart again, any idea would be welcome.
      And... that's it for now.   I know it is a lot and very "dummy questions" but, what can I say, I am kinda dummy in this topic
      Thanks for any help
  • Advertisement
  • Supporters
  • Discord

  • Create New...