Garry's Mod Wiki

Garry's Mod Wiki

  string BRANCH

Description

A variable containing a string indicating which (Beta) Branch of the game you are using.

While this variable is always available in the Client & Menu realms, it is only defined in the Server realm on local servers.

For more information on beta branches, see this page.

Branch List :

  • unknown (No beta program)

  • dev

  • prerelease

  • x86-64

  • network_test

    The Branch "network_test" might be one or more major live updates behind, as it is not merged from the other branches (e.g. prerelease) on regularly bases. This can also be true especially if the version number (VERSION) appears to be a newer date.

Returns

1 string
The current branch.

Example

if BRANCH == "dev" then print("You are using the development branch!") end

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...