I am trying to create my first gmod addon, a very simple script, but it doesn’t work. This is what I have now:
function joinmsg ( name ) PrintMessage( HUD_PRINTTALK, "Player " .. name .. " has connected. Welcome!" ) end hook.Add ( "GM:PlayerConnect", "PlayerJoins", joinmsg )
I probably f*cked up. But it’s my first addon. And yes, I looked at the tutorial on the wiki but I find it pretty confusing.
EDIT: Do I have to start the script or not? With a command in the console or something, or does the addon start by itself, like other addons?