Don't show nametags if in vehicle on Mafia 1
This commit is contained in:
@@ -215,6 +215,12 @@ function processNameTagRendering(event) {
|
|||||||
// return false;
|
// return false;
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
if (getGame() == V_GAME_MAFIA_ONE) {
|
||||||
|
if (localPlayer.vehicle != null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
getElementsByType(ELEMENT_PED).forEach(function (ped) {
|
getElementsByType(ELEMENT_PED).forEach(function (ped) {
|
||||||
if (ped != localPlayer) {
|
if (ped != localPlayer) {
|
||||||
updateNametag(ped);
|
updateNametag(ped);
|
||||||
|
|||||||
Reference in New Issue
Block a user