How to tell if demo playback is happening.

There are various parts of my gamemode that I don’t want to show up during a demo play, and a few that I want to add. How do I tell if my Luas are being run in normal play, or if they’re being run in the demo simulation?

I don’t think the Record actually takes the lua with it i tried this last time, when i played it back it was blank compared to what its meant to be.

One hacky way to do it would be to check if a player’s userid or steamid is valid, and return if it isn’t.

Probably wouldn’t work though.

Well if anyone records a demo of my gamemode, the ‘Your data hasn’t been loaded by the server’ screen shows over everything, so something is running.