AssignAssassinTarget(ply, start, delay)

Assigns the target player their next assassination target (if they are the Assassin role).
Realm: Client and Server
Added in: 1.0.0
Parameters:

CRVersion(version)

Whether the current version is equal to or newer than the version number given.
Realm: Client and Server
Added in: 1.0.0
Parameters:

FindRespawnLocation(pos)

Finds a possible respawn position based on accessible areas around the given position.
Realm: Server
Added in: 1.0.0
Parameters:

Returns: An accessible position around the given position or false if none can be found

GenerateNewEventID(role)

Generates a new ID to be used for custom scoring events.
Realm: Server
Added in: 1.2.5
Parameters:

NOTE: To get this value on the client, use the TTTSyncEventIDs hook and pull the value out of the EVENTS_BY_ROLE global table

GenerateNewWinID(role)

Generates a new ID to be used for custom win conditions.
Realm: Server
Added in: 1.2.5
Parameters:

NOTE: To get this value on the client, use the TTTSyncWinIDs hook and pull the value out of the WINS_BY_ROLE global table

GetEquipmentItemById(id)

Gets an equipment item's definition by their ID.
Realm: Client and Server
Added in: 1.0.0
Parameters:

GetEquipmentItemByName(name)

Gets an equipment item's definition by their name.
Realm: Client and Server
Added in: 1.0.0
Parameters:

Get{RoleName}Filter(aliveOnly)

Dynamically created functions for each role that returns a function that filters net messages to players that are role. For example: GetTraitorFilter() and GetPhantomFilter() return a filter function that can be used to send a message to players who are a Traitor or a Phantom, respectively.
Realm: Server
Added in: Whenever each role is added
Parameters:

GetInnocentTeamFilter(aliveOnly)

Returns a function that filters net messages to players that are on the innocent team.
Realm: Server
Added in: 1.0.0
Parameters:

GetJesterTeamFilter(aliveOnly)

Returns a function that filters net messages to players that are on the jester team.
Realm: Server
Added in: 1.0.0
Parameters:

GetIndependentTeamFilter(aliveOnly)

Returns a function that filters net messages to players that are on the independent team.
Realm: Server
Added in: 1.0.0
Parameters:

GetMonsterTeamFilter(aliveOnly)

Returns a function that filters net messages to players that are on the monster team.
Realm: Server
Added in: 1.0.0
Parameters:

GetRawRoleTeamName(roleTeam)

Gets the untranslated name belonging to the specified role team (see ROLE_TEAM_* global enumeration).
Realm: Client and Server
Added in: 1.8.6
Parameters:

GetRoleTeamColor(roleTeam, type)

Gets the color belonging to the specified role team (see ROLE_TEAM_* global enumeration).
Realm: Client
Added in: 1.1.8
Parameters:

GetRoleTeamInfo(roleTeam, simpleColor)

Gets the name and color belonging to the specified role team (see ROLE_TEAM_* global enumeration).
Realm: Client
Added in: 1.2.7
Parameters:

Returns:

GetRoleTeamName(roleTeam)

Gets the name belonging to the specified role team (see ROLE_TEAM_* global enumeration).
Realm: Client and Server
Added in: 1.2.7 on Client and 1.8.2 on Server
Parameters:

NOTE: This will not use translated names when called on the server

GetSprintMultiplier(ply, sprinting)

Gets the given player's current sprint multiplier.
Realm: Client and Server
Added in: 1.0.0
Parameters:

GetTeamRoles(team_table, exclude)

Gets a table of role numbers that belong to the team whose lookup table is given.
Realm: Client and Server
Added in: 1.0.2
Parameters:

GetTraitorTeamFilter(aliveOnly)

Returns a function that filters net messages to players that are on the traitor team.
Realm: Server
Added in: 1.0.0
Parameters:

JesterTeamKilledNotification(attacker, victim, getKillString, shouldShow)

Used to display a message, play a sound, and/or create confetti when a member of the jester team is killed. Automatically checks ttt_%NAMERAW%_notify_mode, ttt_%NAMERAW%_notify_sound, and ttt_%NAMERAW%_notify_confetti convars.
Realm: Server
Added in: 1.3.1
Parameters:

OnPlayerHighlightEnabled(client, alliedRoles, showJesters, hideEnemies, traitorAllies, onlyShowEnemies)

Handles player highlighting (colored glow around players) rules for the local player.
Realm: Client
Added in: 1.2.7
Parameters:

RegisterRole(roleTable)

Registers a role with Custom Roles for TTT. See here for instructions on how to create a role and role table structure.
Realm: Client and Server
Added in: 1.0.9

SetRoleHealth(ply)

Sets the target player's health and max health based on their role convars.
Realm: Client and Server
Added in: 1.0.3
Parameters:

SetRoleMaxHealth(ply)

Sets the target player's max health based on their role convars.
Realm: Client and Server
Added in: 1.0.15
Parameters:

SetRoleStartingHealth(ply)

Sets the target player's health based on their role convars.
Realm: Client and Server
Added in: 1.0.15
Parameters:

ShouldGlitchBlockCommunications()

Whether the glitch should be blocking communications (text and voice).
Realm: Client and Server
Added in: 2.1.10

ShouldShowTraitorExtraInfo()

Whether extra information should be shown for the traitor team (e.g. teammate Assassin's target and teammate Parasite's infection).
Realm: Client and Server
Added in: 1.5.7

ShouldPromoteDetectiveLike()

Whether an unpromoted detective-like player (deputy/Impersonator) should be promoted.
Realm: Server
Added in: 1.2.5

StartsWithVowel(str)

Whether the given string starts with a vowel.
Realm: Client and Server
Added in: 1.0.8

UpdateRoleColours()/UpdateRoleColors()

Updates the role color tables based on the color convars and color type convar.
Realm: Client and Server
Added in: 1.0.0

UpdateRoleStrings()

Updates the role string tables based on the role name convars.
Realm: Client and Server
Added in: 1.0.7

UpdateRoleWeaponState()

Enables and disables weapons based on which roles are enabled.
Realm: Client and Server
Added in: 1.0.5

UpdateRoleState()

Updates the team membership, colors, and weapon state based on which roles are enabled and belong to which teams.
Realm: Client and Server
Added in: 1.0.0