Author Topic: LUA addon?  (Read 3323 times)

0 Members and 1 Guest are viewing this topic.

Offline Nuclear_Ice

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
LUA addon?
« on: February 06, 2009, 11:03:46 PM »
Is there any lua addons someone could teach me or make for me?

It would be simple.

Just needs to display a message at the top of the screen on all the players screens.

Not in a box just at the very very top where you can see it, but it won't bug you, in red text, and a fair font size?


thanks, facepunch was no help

Offline Nuclear_Ice

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
Re: LUA addon?
« Reply #1 on: February 06, 2009, 11:05:52 PM »
Crap sorry wrong section.  :'(

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: LUA addon?
« Reply #2 on: February 10, 2009, 06:50:38 AM »
This shouldn't be too hard to do.. give me 10 minutes.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: LUA addon?
« Reply #3 on: February 10, 2009, 07:12:47 AM »
Done.. Wasn't too hard.. Enjoy!

the lua file is attached to this post.. just open it up in a word editor and change the config section and then drop it in garrysmod/lua/autorun.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: LUA addon?
« Reply #4 on: February 10, 2009, 04:53:37 PM »
I forget...won't this follow people to the next server?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: LUA addon?
« Reply #5 on: February 10, 2009, 06:45:22 PM »
No, because it would put it in their cache folder and if the server doesn't have it it wouldn't initialize. If you physically put this in your lua/autorun folder it will follow you around everywhere... yes.