DButton.SetConsoleCommand
From GMod Wiki
| Function | |
| Syntax | DButton:SetConsoleCommand( String Command [, String argument 1, String argument 2, ...] ) |
| Description: | |
| Set the button to execute a console command when pressed. | |
| Returns: | nil |
| In Object: | DButton |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DButton.SetConsoleCommand]DButton.SetConsoleCommand [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- SetConsoleCommand is the same as RunConsoleCommand, except set it to a DButton.