Garry's Mod Wiki

ai.GetScheduleID

  number ai.GetScheduleID( string sched )

Description

Translates a schedule name to its corresponding ID.

Arguments

1 string sched
Then schedule name. In most cases, this will be the same as the SCHED enum name.

Returns

1 number
The schedule ID, see SCHED enum. Returns -1 if the schedule name isn't valid.