I can't seem to get cvar2.ReplicateData() to work properly (it could be that I'm not using it right)
Here's what I'm trying to do:
cvar2.ReplicateData(player.GetByID(ply), mat_yuv, 1)
hook.Add( "PlayerSpawn", "playerSpawn", sendPlayerCVARFlags )
ERROR: Hook 'playerSpawn' Failed: autorun/server/cvar_unlock.lua:26: attempt to call field 'ReplicateData' (a nil value)
Removing Hook 'playerSpawn'