{{tag>command part}} {{htmlmetatags>metatag-keywords=(pac3, wiki, part, command) metatag-description=(Runs console commands.) metatag-og:title=(Command | Part | PAC3) metatag-og:description=(Runs console commands.) }} ====== Command ====== Allows you to run console commands. ===== Location ===== This part can be found under: * {{icon:help.png?nolink}} **Advanced** > [[:part:command]] {{page>:includes#location}} ===== Usage & Examples ===== ==== Basic Command ==== Add the [[:part:command]] part to your outfit and type the command in the [[#string]] field. ==== Chat message on button press ==== [[:part:command|Commands]] can be combined with [[:part:event|Events]]. This example sends a chat message after pressing a button. {{fa>download?color=#7ab353&fw&lg}} **Download:** {{:part:command:command_chat.txt}} ===== Properties ===== ==== Generic ==== == string == The command that you want to run. == use lua == Runs the string as client side Lua. {{fa>fas fa-exclamation-triangle?color=#FFA500&fw&lg}} Requires sv_allowcslua 1 == execute on wear == --- == execute on show == Triggers when the part is shown. Required when used with events. == name == {{section>property:name#include&inline}} == hide == {{section>property:hide#include&inline}} ==== Orientation ==== == parent name == {{section>property:parent#include&inline}}