-- Define a hook function function addon:PlayerSpawn() -- Code to execute when a player spawns end
-- Create a new addon local addon = Glue.Library.CreateAddon('MyAddon') gmod glue library hot
-- Import the Glue Library include('glue/library.lua') -- Define a hook function function addon:PlayerSpawn() --
-- Register the hook addon:RegisterHook('PlayerSpawn', addon.PlayerSpawn) This example demonstrates how to create a basic addon using Glue Library. With this foundation, you can start exploring the library's features and building your own exciting addons. gmod glue library hot