Some questions

What happens if someone gets shot while being cuffed/escorted?
What happens if they teleport?
What happens if they log off and relog back in?
What happens after server crash/restart?

Hi. These questions would require a lot to answer but I will keep it simple.

I've done my best to handle most conditions as best I possibly can.

If a player logs off in anyway either by server crash, kick, ban logout, their state when they rejoin will persist.
Players being escorted cant telelport / be teleported.
Players escorting other players can teleport and will continue to escort the player attached to them.
If a player being escorted dies while being escorted, the unrestrain / unescort functions are invoked.

There are a lot of possible conditions and although I've done my absolute best to account for the ones I've considered, I doubt I got them all. I'm actively monitoring feedback for these cases I've missed and will patch them as they come up.