Skip to content

Commit

Permalink
Ensure that the spectator can move the camera.. for some servers it's…
Browse files Browse the repository at this point in the history
… necessary
  • Loading branch information
manups4e committed Sep 8, 2021
1 parent ccb9114 commit 4089b7a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ESXSpectateControl.Client/Script/MainScript.cs
Expand Up @@ -43,6 +43,12 @@ private static async Task MainTick()
Game.EnableControlThisFrame(0, Control.PushToTalk);
Game.EnableControlThisFrame(1, Control.PushToTalk);
Game.EnableControlThisFrame(2, Control.PushToTalk);
Game.EnableControlThisFrame(0, Control.LookLeftRight);
Game.EnableControlThisFrame(1, Control.LookLeftRight);
Game.EnableControlThisFrame(2, Control.LookLeftRight);
Game.EnableControlThisFrame(0, Control.LookUpDown);
Game.EnableControlThisFrame(1, Control.LookUpDown);
Game.EnableControlThisFrame(2, Control.LookUpDown);

Notifications.DrawText(0.35f, 0.7f, $"GodMode: {(ped.IsInvincible ? $"~r~{ClientMain.Texts["Enabled"]}~w~." : $"~g~{ClientMain.Texts["Disabled"]}~w~")}");
if (!ped.IsInVehicle())
Expand Down Expand Up @@ -90,7 +96,6 @@ private static async Task MainTick()
pos.Y += 0.024f;
}
}

}
}
}

0 comments on commit 4089b7a

Please sign in to comment.