How to change DevCameraOcclussionMode through a script?

When the player is seated in a certain seat I want to change DevCameraOcclussionMode to invisicam so that the player can look through walls.
How would I do this can’t find it anywhere on the devforum, on how to change players.“playername” properties. Is this even possible? and does this property change update immediately for the client so the player can look through walls? Or would another approach be necessary?

The solution is here: