IsServerOnly

bool IsServerOnly()

Description

Returns true if the code is executing only serverside, but not clientside. Shorthand for IsServer() && !IsClient().

Examples

The following code will not trigger the error serverside or in singleplayer: <code> if (IsServerOnly())

Error("This function needs to be executed clientside);

<code>