Skip to main content Crate gmod Copy item path Source Expand description pub use cstr ;pub use libloading ;pub use skidscan as sigscan;pub use retour as detour;hax Advanced dark magic utilities lua Lua interface msgc Colorful printing net Net library helpers userdata Userdata types 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) 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. abi crates.io dllclose Marks a function as a library/executable destructor. This uses OS-specific
linker sections to call a specific function at termination time. dllopen Marks a function or static variable as a library/executable constructor.
This uses OS-specific linker sections to call a specific function at
load time. gmod13_close gmod13_open has_this crates.io lua_function null_fn crates.io type_alias crates.io