Toggling third-person view via flag?Solved

This line of code in the Third Person Mod I believe toggles between the two

player.SetPlayerFlag(BasePlayer.PlayerFlags.ThirdPersonViewmode, !player.HasPlayerFlag(BasePlayer.PlayerFlags.ThirdPersonViewmode));

what I want is to seperate commands that turn it off and on, I assume its something like this?

player.SetPlayerFlag(BasePlayer.PlayerFlags.ThirdPersonViewmode);
player.SetPlayerFlag(!BasePlayer.PlayerFlags.ThirdPersonViewmode);

?

You are close, but the way you use that method is player.SetPlayerFlag(flag, bool)

So in this instance you would do:

player.SetPlayerFlag(BasePlayer.PlayerFlags.ThirdPersonViewmode, true);
player.SetPlayerFlag(BasePlayer.PlayerFlags.ThirdPersonViewmode, false);
from what I have seen this forces the player into the mode or out, I have functionality for that already using the 'r' key, i just want it to become possible when entering the vehicle

edit: im an idiot and realize i need to make a permission
There's no way to really toggle it off really, as there's no flag to return to first person view.
i figured it out :)
Locked automatically