Common Code Snippets

From GMod Wiki

Jump to: navigation, search

Code Snippets

If you don't know the commands that you need, or you don't know how to implement them or if you don't want to write everything yourself, take a look in the categories below. A collection of useful code snippets, also don't hesitate to write a good snippet yourself.

Yarin Kaul Icon LuaCode48.png General Snippets
Useful general code snippets
Irayo EntHook.png Entity Snippets
Snippets for use with entities
Binary.png Files
How to detect or read and write to files
Console.png Console
Need examples for console commands, and how to manipulate the console.
Gear.png Miscellaneous
Looking for another category?
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox