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.dll
from the latest release - Move the
gmsv_gameevent_win32.dll
into yourgarrysmod/lua/bin
folder. - You need insert
Windows:
if file.Exists("lua/bin/gmsv_gameevent_win32.dll", "GAME") then
require("gameevent")
end
Linux:
if file.Exists("lua/bin/gmsv_gameevent_linux.dll", "GAME") then
require("gameevent")
end
Into 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.