![]() |
Toggle Method V2 - Printable Version +- Fearless Forums (https://fearlessrp.net) +-- Forum: CityRP Server (https://fearlessrp.net/forumdisplay.php?fid=6) +--- Forum: Roleplay and Events (https://fearlessrp.net/forumdisplay.php?fid=9) +---- Forum: Guides (https://fearlessrp.net/forumdisplay.php?fid=61) +----- Forum: Closed Guides (https://fearlessrp.net/forumdisplay.php?fid=233) +----- Thread: Toggle Method V2 (/showthread.php?tid=98251) |
Toggle Method V2 - Brikaas - 03-15-2021 Step by step guide on creating keybindings that can toggle on/off Step #1 - Locate your cfg folder ![]() Step #2 - Create a text document accordingly to what you want. ![]() Step #3 - Open your document and paste the following format; (Pre-made formats can be found on the end of the Post) Quote:alias {name}_on "{command}; alias {alias name} {name}_off" Step #4 - Saving your document. Click on file > Save As... ![]() Select "All Files" at 'Save as type' ![]() Rename and save your document accordingly, edit the .txt to .cfg on the end of your document. ![]() Step #5 - Locate the 'autoexec.cfg' file in the same folder. ![]() Step #6 - Open 'autoexec.cfg' and typ in the following; Quote:exec {name of your document} Step #7 - Ingame Console Command Open your ingame console and use the following to run your keybinding without having to restart your Garrys Mod. Quote:exec {document name} Formats for "Toggle Keybindings" Toggle Voiceradio Quote:alias radio_on "say /voiceradio on; alias toggleradio radio_off" Toggle Engine Quote:alias engine_on "say /engine on; alias toggleengine engine_off" Toggle Speaking Voiceradio Quote:alias zoom_on "+zoom; alias togglezoom zoom_off" Toggle Crouching Quote:alias crouch_on "+duck; alias togglecrouch crouch_off" RE: [GUIDE] Toggle Method V2 - max. - 03-16-2021 Amazing! RE: [GUIDE] Toggle Method V2 - Conn - 03-16-2021 Moved to Useful Docs RE: Toggle Method V2 - Slaint - 03-16-2021 This is great! Thank you! |