Garry's Mod Wiki


  string util.GetActivityNameByID( number id )

Recently Added

This was recently added in version (2024.01.26). It might only be available on the Dev Branch right now.


Returns a name for given activity ID. This is useful for models that define custom animation events.

See util.GetActivityIDByName for a function that does the opposite.


1 number id
The ID of an activity from some hook. See also ACT enum.


1 string
The associated name with given activity ID.