Skip to content
/SLASHPLAY

How to limit lag compensation in GMod

Type sv_maxunlag 0.5 in the server console so lag compensation rewinds at most half a second, so very high ping players do not get unfair hits.

sv_maxunlag

Sets the maximum lag compensation the server applies for a player's ping, in seconds.

sv_maxunlag <seconds>

Examples

sv_maxunlag 0.5

Cap compensation at half a second.

Arguments

secondsRequired
Maximum rewind time in seconds.

What it does

Lag compensation rewinds the world so hits line up with what a laggy player saw. This caps how far back it goes, so players with very high ping do not get unfair hits.

The game's own description: Maximum lag compensation in seconds

Run it on your server

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to garrysmod/cfg/server.cfg. New to this? Start a GMod server first.

Your own
GMod server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.