Garry's Mod Wiki

ControlPresets:OnSelect

  ControlPresets:OnSelect( number index, any value, table data )

Description

Checks if Data is valid then uses pairs to iterate over the data parameter and run each entry using RunConsoleCommand

Index and Value parameters appear to not be used. Further testing should be done to confirm

Arguments

1 number index
Name
2 any value
3 table data