Expand description
Re-exports§
pub use cstr;
pub use libloading;
pub use skidscan as sigscan;
pub use retour as detour;
Modules§
- hax
- Advanced dark magic utilities
- lua
- Lua interface
- msgc
- Colorful printing
- net
- Net library helpers
- userdata
- Userdata types
Macros§
- cfg_
table - A simple macro that expands to different values across compilation targets.
- colormsg
- find_
gmod_ signature - Common pattern for detouring.
- lua_
stack_ guard - Enforces a debug assertion that the Lua stack is unchanged after this block of code is executed.
- lua_
string - Converts a string literal to a Lua-compatible NUL terminated string at compile time.
- open_
library - Opens & returns a shared library loaded by Garry’s Mod. You are most likely looking for
open_library_srv!
, as this will prioritize non-_srv.so libraries on Linux main branch. - open_
library_ raw - Opens & returns a shared library loaded by Garry’s Mod using the raw path to the module.
- open_
library_ srv - Opens & returns a shared library loaded by Garry’s Mod, in “server mode” (will prioritize _srv.so on Linux main branch)
Functions§
- is_
x86_ 64 - Returns whether this client is running the x86-64 branch
- set_
lua_ ⚠state - You don’t need to use this if you are using the
#[gmod13_open]
macro.