Fixed a lua error, now uses net.WriteInt