From f843e43d6684061b3755dfd1b51dd4c5a903a47c Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sat, 4 Mar 2023 23:45:42 -0600 Subject: [PATCH] Don't show nametags if in vehicle on Mafia 1 --- scripts/client/nametag.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/client/nametag.js b/scripts/client/nametag.js index b28db547..bcc5a42a 100644 --- a/scripts/client/nametag.js +++ b/scripts/client/nametag.js @@ -215,6 +215,12 @@ function processNameTagRendering(event) { // return false; //} + if (getGame() == V_GAME_MAFIA_ONE) { + if (localPlayer.vehicle != null) { + return false; + } + } + getElementsByType(ELEMENT_PED).forEach(function (ped) { if (ped != localPlayer) { updateNametag(ped);