Don't show nametags if in vehicle on Mafia 1

This commit is contained in:
Vortrex
2023-03-04 23:45:42 -06:00
parent 38e60a4837
commit f843e43d66

View File

@@ -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);