Don't show nametags if in vehicle on Mafia 1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user