This Project adds gameevent.Listen to the Menu State.
With this module, you also get access to the client_beginconnect, client_connect and server_spawn gameevents.
Note: This Project uses Garry's Mod Common
- You need to download the
gmsv_gameevent_win32.dllfrom the latest release - Move the
gmsv_gameevent_win32.dllinto yourgarrysmod/lua/binfolder. - You need insert
Windows:
if file.Exists("lua/bin/gmsv_gameevent_win32.dll", "GAME") then
require("gameevent")
endLinux:
if file.Exists("lua/bin/gmsv_gameevent_linux.dll", "GAME") then
require("gameevent")
endInto the garrysmod/lua/menu/menu.lua file at the bottom.
Note: If you change your Gmod branch or an update is made, your changes could get removed.