ULX

Author Topic: Run !god on join?  (Read 303 times)

0 Members and 1 Guest are viewing this topic.

Offline Litleck

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Run !god on join?
« on: August 04, 2018, 03:49:51 PM »
Hello,

So I recently made a Garry's mod server and I'm trying to get it so that upon joining the server the player will be put into god mode and if they want to remove god they can just use !ungod.  If there's any addons for ULX or anything else that I could be given that would be great.

Thanks.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2696
  • Karma: 422
    • |G4P| Gman4President
Re: Run !god on join?
« Reply #1 on: August 05, 2018, 01:55:45 PM »
Easily done.

Look at the code for !God to see how it's done and put it into a playerinitialspawn hook

Offline Litleck

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Run !god on join?
« Reply #2 on: August 05, 2018, 07:27:02 PM »
I have no idea how to do hooks and coding for garrys mod.  Where would I put the lua file and what would I put in it?