• Print

Author Topic: How do i make the ulx motd open up with tabs?  (Read 7081 times)

0 Members and 1 Guest are viewing this topic.

Offline EnderHero

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
How do i make the ulx motd open up with tabs?
« on: August 08, 2014, 08:43:56 am »
Im trying to make my motd have tabs, for rules/events/etc. But each times I failed.

Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
Re: How do i make the ulx motd open up with tabs?
« Reply #1 on: August 08, 2014, 09:33:37 am »
You should try the search feature I know I've seen a few threads about this before ;)

Edit: Yup found one that should be useful for you /index.php/topic,7076.0.html#msg35456
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline EnderHero

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: How do i make the ulx motd open up with tabs?
« Reply #2 on: August 08, 2014, 09:44:26 am »
Thx for this (: But can we add in a tab our file ulx_motd.txt ? Example, add the file ulx_motd.txt in the tab named "Main Menu" ? How can we do this?

Offline Valgoid

  • Full Member
  • ***
  • Posts: 103
  • Karma: -15
  • Wanna Be Lua King
Re: How do i make the ulx motd open up with tabs?
« Reply #3 on: August 09, 2014, 09:23:54 am »
I remember there was a thread talking about this. My server has this, just go look around your question has already been answered before.

Offline EnderHero

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: How do i make the ulx motd open up with tabs?
« Reply #4 on: August 09, 2014, 11:47:04 am »
I search everywhere but i find nothing useful for me :/

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How do i make the ulx motd open up with tabs?
« Reply #5 on: August 10, 2014, 07:51:59 pm »
Enderhero, you do not add tabs in the txt file.
You add tabs by making your own lua file.
Bender linked to a thread where someone was doing it through Lua, like you would need to do.
If you do not know Lua, you'll need to learn or have someone who knows assist with lua.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming


Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
Re: How do i make the ulx motd open up with tabs?
« Reply #7 on: August 11, 2014, 02:00:38 pm »
From the original motd scripting i found this

Code: Lua
  1. html:SetHTML( ULib.fileRead( "data/ulx_motd.txt" ) )

insted of url1,2,3 pointing to a webpage you would use that to point them to your file.
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
Re: How do i make the ulx motd open up with tabs?
« Reply #8 on: August 11, 2014, 02:57:28 pm »
I was bored and decided to do it for you. I attached it below should be straight forward just edit the files i put in data also you can find the different icons in the garrysmod_dir.vpk in materials\icon16\
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline EnderHero

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: How do i make the ulx motd open up with tabs?
« Reply #9 on: August 13, 2014, 08:02:21 am »
Thx you very much ! You're awesome ! (:

Offline EnderHero

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: How do i make the ulx motd open up with tabs?
« Reply #10 on: August 13, 2014, 08:26:07 am »
No, there is also a problem.. The modt dosen't disapear..

  • Print