Garry's Mod Wiki

CUserCmd:IsForced

  boolean CUserCmd:IsForced()

Description

When players are not sending usercommands to the server (often due to lag), their last usercommand will be executed multiple times as a backup. This function returns true if that is happening.

This will never return true clientside.

Returns

1 boolean
isForced