GetTable uses in code

I saw a lot of scripts where the author edits a player or an entity variable like so
[lua]
Player:GetTable().InJail = true/false
[/lua]
I see a lot of people use it however it doesn’t seem required to edit a variable in the player
[lua]
Player.InJail = true/false
[/lua]
And from tests it only seems to take more resources.

So… what’s your question? So far all you’ve posted is some code and information.

EDIT: If your asking which is the better way to do it, the second one is. There’s no reason to return the Player’s entire table when you can just insert a new variable without getting it.

Yeah that’s a terrible way to do it. Just do it how you’ve been doing it