You can also use the base or darkrp gamemode as reference.

Core

include(path)
hook.Add(event, id, fn)
hook.Remove(event, id)
hook.Run(event, ...)
hook.GetTable()
timer.Simple(delay, fn)
timer.Create(id, delay, reps, fn)
timer.Remove(id)
timer.Exists(id)
timer.Adjust(id, delay [, reps [, fn]])
timer.Pause(id)
timer.UnPause(id)
timer.Toggle(id)
timer.Stop(id)
timer.Start(id)
timer.TimeLeft(id)
timer.RepsLeft(id)
timer.Destroy(id)
print(...)
ErrorNoHalt(message)
CurTime()
RealTime()
SysTime()
FindMetaTable(name)
Color(r, g, b [, a])
Vector(x, y, z)
Angle(pitch, yaw, roll)
IsValid(value)
IsColor(value)
IsVector(value)
IsAngle(value)
math.Clamp(value, min, max)
math.Round(value [, decimals])
string.Trim(value)
string.StartWith(value, prefix)
string.EndsWith(value, suffix)
string.Explode(separator, value)
table.Count(tbl)
table.HasValue(tbl, value)
table.Copy(tbl)
table.GetKeys(tbl)
table.IsEmpty(tbl)

Realms and Hooks

AddonsLoaded()
Initialize()
Think()
PlayerInitialSpawn(ply)
PlayerSpawn(ply)
PlayerDisconnected(ply)
PlayerUse(ply, ent)
PlayerButtonDown(action)
PlayerButtonUp(action)
ContentMounted(mounted, failed)
PostDrawOpaqueRenderables(depth, skybox)
PostDrawTranslucentRenderables(depth, skybox)
HUDPaint()
ChatPrint(text)
Shutdown()

GMod Compatibility

isstring(value)
isnumber(value)
isbool(value)
istable(value)
isfunction(value)
isentity(value)
isvector(value)
isangle(value)
tobool(value)
Msg(...)
MsgN(...)
MsgC(...)
PrintTable(tbl)
string.Split(value, separator)
string.Left(value, count)
string.Right(value, count)
string.Replace(value, search, replacement)
string.PatternSafe(value)
string.TrimLeft(value [, char])
string.TrimRight(value [, char])
string.ToTable(value)
string.Comma(value)
string.FormattedTime(seconds [, format])
string.NiceTime(seconds)
string.StartsWith(value, prefix)
table.Random(tbl)
table.KeyFromValue(tbl, value)
table.RemoveByValue(tbl, value)
table.Merge(destination, source)
table.Add(destination, source)
table.SortByMember(tbl, member [, ascending])
table.Reverse(tbl)
table.Empty(tbl)
table.ClearKeys(tbl)
math.Approach(value, target, change)
math.Remap(value, inputMin, inputMax, outputMin, outputMax)
math.Rand(min, max)
math.Distance(x1, y1, x2, y2)
math.Truncate(value)
player.GetBySteamID(steamid)
player.GetBySteamID64(steamid64)
player.GetHumans()
util.TableToJSON(tbl [, pretty])
util.JSONToTable(json)
team.SetUp(id, name, color [, joinable])
team.GetName(id)
team.GetColor(id)
team.Valid(id)
team.Joinable(id)
team.GetAllTeams()
team.GetPlayers(id)
team.NumPlayers(id)
ply:Team()
ply:SetTeam(id)
net.Start(name)
net.WriteString(value)
net.WriteInt(value, bits)
net.WriteUInt(value, bits)
net.WriteFloat(value)
net.WriteDouble(value)
net.WriteBool(value)
net.WriteBit(value)
net.WriteTable(tbl)
net.WriteVector(vector)
net.WriteNormal(vector)
net.WriteAngle(angle)
net.WriteColor(color)
net.WriteEntity(ent)
net.WriteData(data, length)
net.Send(ply_or_players)
net.Broadcast()
net.SendToServer()
net.Receive(name, fn(len, ply))
util.AddNetworkString(name)
concommand.Add(name, fn(ply, cmd, args, argStr) [, autoComplete, helpText])
concommand.Remove(name)
concommand.GetTable()
RunConsoleCommand(name, ...)
file.Read(path, "DATA")
file.Write(path, text)
file.Append(path, text)
file.Delete(path)
file.CreateDir(path)
file.IsDir(path, "DATA")
file.Size(path, "DATA")
file.Exists(path, "DATA")
file.Find(pattern, "DATA")
ply:GetUserGroup()
ply:SetUserGroup(group)
ply:IsUserGroup(group)
ply:IsAdmin()
ply:IsSuperAdmin()
IsPlayer(ent)
IsBot(ent)
IsNPC(ent)
IsWorld(ent)
EyePos()
EyeAngles()
ply:PrintMessage(type, text)

Game and Map

game.IsEditor()
game.GetServerName()
game.IsMultiplayer()
game.IsHost()
game.LeaveToMenu()
game.GetMap()
game.IsDedicated()
gui.ActivateGameUI()
gui.HideGameUI()
gui.OpenSettings([page])
gui.OpenBinds()
gui.OpenPlayerList()

Keyboard and Input

input.IsKeyDown(key)
input.WasKeyPressed(key)
input.WasKeyReleased(key)
input.LookupBinding(action)
input.GetMouseDelta()
input.GetMouseWheel()
input.SetLookScale(scale)
keybind.Register(id, options)
keybind.GetAll()
keybind.GetKey(id)
keybind.GetKeyName(id)
keybind.IsDown(id)
keybind.SetKey(id, key_or_nil)
keybind.Remove(id)
keybind.KeyName(key_or_action)
keybind.Capture(fn(key))
panel:SetKeyGlyph(key_or_action)

Players

player.GetAll()
player.GetCount()
LocalPlayer()
ply:Nick()
ply:Name()
ply:GetName()
ply:SteamID()
ply:SteamID64()
ply:IsValid()
ply:IsLocalPlayer()
ply:IsListenServerHost()
ply:Ping()
ply:GetPos()
ply:GetEyeAngles()
ply:GetShootPos()
ply:GetEyeTrace([dist])
ply:GetNWString(key, default)
ply:GetNWInt(key, default)
ply:GetNWFloat(key, default)
ply:GetNWBool(key, default)
ply:GetNWVar(key, default)
ply:SetNWString(key, value)
ply:SetNWInt(key, value)
ply:SetNWFloat(key, value)
ply:SetNWBool(key, value)
ply:SetNWVar(key, value)
ply:ChatPrint(text)
ply:Kick(reason)
ply:Spawn()
ply:SetPos(vector)

Networked Variables

SetGlobalVar(key, value)
GetGlobalVar(key, default)
ply:GetNWString(key, default)
ply:GetNWInt(key, default)
ply:GetNWFloat(key, default)
ply:GetNWBool(key, default)
ply:GetNWVar(key, default)
ply:SetNWString(key, value)
ply:SetNWInt(key, value)
ply:SetNWFloat(key, value)
ply:SetNWBool(key, value)
ply:SetNWVar(key, value)

Entities

ents.Create(class, options)
ents.GetAll()
ents.FindByClass(class)
ents.FindInSphere(pos, radius)
ent:IsValid()
ent:GetClass()
ent:GetId()
ent:GetPos()
ent:GetAngles()
ent:GetModel()
ent:GetKeyValue(key)
ent:SetPos(pos)
ent:SetAngles(angles)
ent:SetColor(color)
ent:Remove()
util.TraceLine(options)
Model(path)
Material(path)
util.IsValidModel(path)
util.IsValidMaterial(path)
ClientsideModel(model)
ents.CreateClientProp(model)
ent:SetModel(model)
ent:GetModel()
ent:SetMaterial(material)
ent:GetMaterial()
ent:SetSkin(index)
ent:GetSkin()
ent:SkinCount()
ent:SetBodygroup(name_or_index, value)
ent:GetBodygroup(name_or_index)
ent:GetBodygroups()
ent:SetNoDraw(bool)
ent:GetNoDraw()
ent:GetModelBounds()
ent:SetModelScale(scale)
ent:GetModelScale()
ent:SetColor(color)
ent:GetColor()
ent:WorldToLocal(pos)
ent:LocalToWorld(pos)
ent:WorldToLocalAngles(angles)
ent:LocalToWorldAngles(angles)

Models and Materials

content.AddPackage(id)
content.AddCollection(source)
content.IsMounted(id)
content.GetTitle(id)
content.GetModel(id)
content.GetPackages()
content.IsBusy()
ui.Create("image")
img:SetImage(source)
panel:SetImage(source)
panel:SetAvatar(player_or_steamid64)

Networking

net.Receive(name, fn(ply, data) [, limits])
net.Send(name, ply_or_players, data)
net.Broadcast(name, data)
net.Receive(name, fn(data))
net.SendToServer(name, data)

Storage

storage.Get(key)
storage.Set(key, value)
storage.Delete(key)
storage.Exists(key)
storage.Flush()
log.Audit(category, message)

Cookies

cookie.GetString(name [, default])
cookie.GetNumber(name [, default])
cookie.Set(name, value)
cookie.Delete(name)

UI

ui.AddStyle(css)
ui.Create(type, parent [, class])
ui.SetCursor(visible)
ui.IsTyping()
ui.ScreenSize()
ui.IsMouseDown([button])
panel:AddClass(class)
panel:RemoveClass(class)
panel:SetClass(class)
panel:HasClass(class)
panel:SetStyle(css)
panel:SetText(text)
panel:GetText()
panel:SetPlaceholder(text)
panel:SetMaxLength(length)
panel:Focus()
panel:HasFocus()
panel:OnClick(fn)
panel:OnSubmit(fn(text))
panel:OnChange(fn(text))
panel:SetImage(source)
panel:SetAvatar(player_or_steamid64)
panel:SetVisible(bool)
panel:IsVisible()
panel:Clear()
panel:Remove()
panel:IsValid()
panel:ScrollToBottom()
panel:ScrollToTop()
panel:SetParent(parent_or_nil)
panel:GetChildCount()
panel:SetTooltip(text_or_nil)
panel:OnMouseDown(fn(x, y, button))
panel:OnMouseUp(fn(x, y, button))
panel:OnMouseEnter(fn)
panel:OnMouseLeave(fn)
panel:OnRightClick(fn)
panel:GetMousePos()
panel:GetSize()
panel:IsHovered()
hud.SetLine(id, text)
hud.RemoveLine(id)
hud.Notify(text [, seconds])

UI Components

ui.Window(title, options)
ui.Button(parent, text, fn [, style])
ui.CheckBox(parent, label, checked, fn)
ui.Slider(parent, label, min, max, value, fn [, decimals])
ui.NumberEntry(parent, ...)
ui.TextField(parent, label, text, fn [, placeholder])
ui.ColorPicker(parent, color, fn [, options])
ui.ComboBox(parent, label, options, selected, fn)
ui.Tabs(parent, tabs, active, fn(id, body))
ui.Category(parent, title, expanded)
ui.ProgressBar(parent, fraction [, text])
ui.Tile(parent, image, title, fn [, size])
ui.Label(parent, text)
ui.Divider(parent)
ui.HSVToRGB(h, s, v)
ui.RGBToHSV(r, g, b)

World UI

ui.CreateWorld(options)
panel:SetWorldPos(pos)
panel:SetWorldAngles(angles)
panel:SetWorldScale(scale)
panel:AttachTo(ent_or_nil [, offset [, angles]])
panel:SetFaceCamera(bool)

Drawing

surface.CreateFont(name, options)
cam.Start3D2D(pos, angles, scale)
cam.End3D2D()
draw.SimpleText(text, font, x, y, color, xalign, yalign)
draw.SimpleTextOutlined(text, font, x, y, color, xalign, yalign, outlineWidth, outlineColor)
draw.DrawText(text, font, x, y, color, xalign)
draw.RoundedBox(radius, x, y, width, height, color)
draw.RoundedBoxEx(radius, x, y, width, height, color)
surface.SetDrawColor(color)
surface.DrawRect(x, y, width, height)
surface.DrawOutlinedRect(x, y, width, height)
surface.SetFont(font)
surface.SetTextColor(color)
surface.SetTextPos(x, y)
surface.DrawText(text)
surface.CreateFont(name, options)
surface.GetTextSize(text)
ScrW()
ScrH()

Weapons

weapons.Register(swep, class)
weapons.LoadFolder(directory)
self:ShootBullet(damage, num, cone)
self:MeleeAttack(range, damage, force)
self:DefaultReload()
self:CanPrimaryAttack()
self:TakePrimaryAmmo(amount)
self:EmitSound(path [, volume, pitch])
self:SendWeaponAnim(parameter)
self:Clip1()
self:SetClip1(amount)
self:Ammo1()
self:GetNextPrimaryFire()
self:SetNextPrimaryFire(time)
self:GetNextSecondaryFire()
self:SetNextSecondaryFire(time)
self:IsReloading()
self:GetOwner()
self:IsCarriedByLocalPlayer()
game.AddAmmoType(options)
game.GetAmmoMax(name)
ply:Give(class [, noAmmo])
ply:StripWeapon(class)
ply:StripWeapons()
ply:SelectWeapon(class)
ply:GetActiveWeapon()
ply:GetWeapon(class)
ply:GetWeapons()
ply:DropWeapon([class])
ply:GiveAmmo(amount, type)
ply:SetAmmo(amount, type)
ply:RemoveAmmo(amount, type)
ply:StripAmmo()
ply:FireBullets(options)
ply:WeaponButtonDown(button)
ply:HasWeapon(class)
ply:GetAmmoCount(type)
ply:GetActiveWeaponClass()
ply:GetWeaponClasses()
util.BlastDamage(inflictor, attacker, pos, radius, damage)
ply:SetWeaponModels(options)
ply:WeaponAnim(parameter [, skipOwner])
ply:GetMuzzlePos()
ply:SetViewModelParam(name, value)
ply:SetViewModelVisible(bool)

View and Mouse

ply:SetFOV(fov [, seconds])
ply:GetFOV()
input.GetMouseDelta()
input.GetMouseWheel()
input.SetLookScale(scale)

Physics and Effects

phys:ComputeShadowControl(options)
WorldToLocal(pos, angles, originPos, originAngles)
LocalToWorld(localPos, localAngles, originPos, originAngles)
Angle:RotateAroundAxis(axis, degrees)
Vector:Rotate(angles)
util.RotateAroundAxis(angles, axis, degrees)
util.Effect(name, pos [, scale])
constraint.Weld(...)
constraint.Ballsocket(...)
constraint.Rope(...)
constraint.NoCollide(...)
constraint.GetAll()
constraint.Remove(...)
constraint.RemoveAll(...)
constraint.RemoveConstraints(ent, type)
constraint.HasConstraints(ent) 

Addons

addons.GetAll()
addons.Get(id)
addons.IsLoaded(id)

Clothing

ply:SetOutfit(outfit_or_nil)
ply:GetOutfit()
ply:AddClothing(path [, tint])
ply:RemoveClothing(path)
ply:ClearClothing()
ply:ResetClothing()
ply:SetSkinTone(value_or_nil)
ply:GetSkinTone()
ply:SetBodyHeight(value_or_nil)
ply:GetBodyHeight()
clothing.GetAll([category])
clothing.GetCategories()
clothing.IsValid(path)
clothing.GetTitle(path)

Modules and Files

file.Find(pattern)
file.Exists(path)
AddCSLuaFile() 
edited:
Base Gamemode (Base)
chat.AddCommand(name, fn(ply, args, argString), help)
chat.Send(target, text, color)
chat.Broadcast(text, color)
chat.SendMessage(recipients, options)
GM:PlayerSay(ply, text, teamOnly)
GM:ChatRecipients(...)
GM:FormatChatMessage(...)
GM:ChatCreate()
GM:ChatOpen()
GM:ChatClose()
GM:ChatAddLine(message)
GM:ChatPrint(text)
GM:ScoreboardColumns()
GM:ScoreboardRow(ply)
GM:ScoreboardTitle()
GM:ScoreboardCreate()
GM:ScoreboardRebuild()
GM:PauseMenuButtons()
GM:PauseMenuTitle()
GM:PauseMenuSubtitle()
GM:PauseCreate()
GM:PauseOpen()
GM:PauseClose()
GM:PauseToggle()
GM:PauseIsOpen()
GM:GetPlayerDisplayName(ply)
GM:GetPlayerColor(ply)
GM:CleanChatText(text)
GM:HelpSections()
GM:CreateKeyCap(parent, text)
GM:KeyHintsFilter(bind)
GM:LoadModules(directory [, order]) 

Props and Undo (Base)

props.Spawn(ply, model)
props.Count(ply)
props.RemoveAll(ply)
props.GetOwner(ent)
props.CanTouch(ply, ent)
undo.Create(name)
undo.AddEntity(ent)
undo.AddFunction(fn, ...)
undo.SetPlayer(ply)
undo.SetCustomUndoText(text)
undo.Finish()
undo.Do(ply)
undo.GetTable(ply)
undo.ReplaceEntity(old, new)

Tool Gun (Base)

tools.Register(tool, mode)
tools.LoadFolder(directory)
tools.Select(mode)
tools.GetClientInfo(mode, key)
tools.SetClientInfo(mode, key, value)
tools.BuildPanel(parent, mode)
ply:SetToolMode(mode)
tools.GetPlayerInfo(ply, mode, key)
ply:GetToolMode()
tools.Get(mode)
tools.GetList()
TOOL:LeftClick(trace)
TOOL:RightClick(trace)
TOOL:Reload(trace)
TOOL:Think()
TOOL:Holster()
TOOL:GetOwner()
TOOL:GetWeapon()
TOOL:GetMode()
TOOL:GetClientInfo(key)
TOOL:GetClientNumber(key [, default])
TOOL:CanTouch(ent)
TOOL:SetObject(index, ent, pos)
TOOL:GetEnt(index)
TOOL:GetPos(index)
TOOL:NumObjects()
TOOL:ClearObjects()
panel:Help(text)
panel:Label(text)
panel:Button(label, fn)
panel:Slider(label, key, min, max [, decimals])
panel:CheckBox(label, key)
panel:ComboBox(label, key, options)
panel:Choices(label, key, options)
panel:Color(label, r, g, b [, a])

Spawn Menu (Base)

spawnmenu.AddPropCategory(name, models)
spawnmenu.AddEntity(id, options)
GM:SpawnMenuOpen()
GM:SpawnMenuShow()
GM:SpawnMenuHide()
GM:SpawnMenuIsOpen()
GM:SpawnMenuRefresh()
GM:SpawnMenuTabs()
content.Search(query, fn(results, err) [, type])