• Print

Author Topic: [UPDATE]ULX panel  (Read 6868 times)

0 Members and 1 Guest are viewing this topic.

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
[UPDATE]ULX panel
« on: December 16, 2014, 05:10:25 pm »
NEW UPDATE
Hello guys! I was really scared to put this in the addon release place so i put it in here.......

This is my First lua project and yes i know its REALLY easy. The addon is a ULXpanel that you can open by typing "ulxpanel" in your console and the panel will pop up!

VERSION: 1.5 VERSION 2.0 COMING SOON!!!
Commands:

1.) Noclip
2.) God
3.) Un-God
4.) Cloak
5.) Un-Cloak
6.) MOTD
7.) Health
8.) Run command on person your looking at
9.) Help forum ( This post )
10.) Slay
11.) Info
12.) tsay
13.) Kick ( Being worked on )
14.) Ban ( Being worked on )



Picture: Click Here



To do list:

1.) Make the panel bigger and add more commands
2.) Change the color ( need suggestions )
3.) Add to steam workshop ( coming soon! ) 
4.) Add a ulx command ( !panel WHICH I NEED HELP WITH )
5.) Upload a picture
6.) Make a Instruction tab
7.) Make a kick command ( Kinda done! )
8.) Make a ban command ( Kinda done! )

Thanks guys!! Hope you enjoy and leave comment/suggestion!

Downloads:

Link: https://www.mediafire.com/?atp6tuf7ifwczd1

Note: PLEASE WATCH FOR UPDATES!!
« Last Edit: December 23, 2014, 04:51:59 pm by XxLMM13xX »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2727
  • Karma: 430
    • |G4P| Gman4President
Re: [NEW]ULX panel
« Reply #1 on: December 16, 2014, 09:49:10 pm »
Show us.
Things like this will get you more support if you show the product.
I personally wouldn't download a UI panel addon based solely on a description.

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: [UPDATE]ULX panel
« Reply #2 on: December 18, 2014, 03:25:02 pm »
NEW VERSION!

Download: Click Here

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: [UPDATE]ULX panel
« Reply #3 on: December 20, 2014, 02:48:53 pm »
Code: Lua
  1. CATEGORY_NAME = "ULX Panel"
  2.  
  3. function ulx.panel( calling_ply )
  4.  
  5.         RunConsoleCommand( "ulxpanel" ) -- I used what I saw in your post. Change this to whatever it needs to be.
  6.  
  7. end
  8.  
  9. local panel = ulx.command( CATEGORY_NAME, "ulx panel", ulx.panel, "!panel" )
  10. panel:defaultAccess( ULib.ACCESS_ADMIN )
  11. panel:addParam{ type=ULib.cmds.PlayersArg }

You can't call the ulx command itself "ulxpanel" or the thing will just loop. But this should open your console (from how I saw your code in your post) by typing !panel in chat. I can also help you with uploading it to the workshop
« Last Edit: December 20, 2014, 02:50:26 pm by syst3M4TiK »
Once you get to know me, you'll find you'll have never met me at all.

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: [UPDATE]ULX panel
« Reply #4 on: December 20, 2014, 03:42:49 pm »
Thanks!

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: [UPDATE]ULX panel
« Reply #5 on: December 20, 2014, 04:54:20 pm »
Just add me on Steam if you want help Uploading it.
Once you get to know me, you'll find you'll have never met me at all.

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: [UPDATE]ULX panel
« Reply #6 on: December 21, 2014, 07:13:43 am »
Hello guys i had a quick question....

I used this location to put the ulx commands is this the right location?

ulxpanel/ulx/lua/ulx/modules/sh

It does not seem to work... Thanks

Also i used this code:

Code: Lua
  1. CATEGORY_NAME = "ULX Panel"
  2.  
  3. function ulx.panel( calling_ply )
  4.  
  5.         RunConsoleCommand( "ULXpanel" ) -- I used what I saw in your post. Change this to whatever it needs to be.
  6.  
  7. end
  8.  
  9. local panel = ulx.command( CATEGORY_NAME, "ulx panel", ulx.panel, "!panel" )
  10. panel:defaultAccess( ULib.ACCESS_ADMIN )
  11. panel:addParam{ type=ULib.cmds.PlayersArg }
  12.  

There are no errors but it just wont work ;( I typed !panel xxlmm in the chat and nothing happons

Thanks

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: [UPDATE]ULX panel
« Reply #7 on: December 21, 2014, 08:20:03 am »
Hello guys i had a quick question....

I used this location to put the ulx commands is this the right location?

ulxpanel/ulx/lua/ulx/module/sh

It does not seem to work... Thanks

Also i used this code:

Code: Lua
  1. CATEGORY_NAME = "ULX Panel"
  2.  
  3. function ulx.panel( calling_ply )
  4.  
  5.         RunConsoleCommand( "ULXpanel" ) -- I used what I saw in your post. Change this to whatever it needs to be.
  6.  
  7. end
  8.  
  9. local panel = ulx.command( CATEGORY_NAME, "ulx panel", ulx.panel, "!panel" )
  10. panel:defaultAccess( ULib.ACCESS_ADMIN )
  11. panel:addParam{ type=ULib.cmds.PlayersArg }
  12.  

There are no errors but it just wont work ;( I typed !panel xxlmm in the chat and nothing happons

Thanks
Get rid of the first ulx folder. It should be:
Code: [Select]
lua/ulx/modules/sh/
bw81@ulysses-forums ~ % whoami
Homepage

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: [UPDATE]ULX panel
« Reply #8 on: December 21, 2014, 08:40:32 am »
THANKS SO MUCH that saved like almost everything but the command still does not work ;(

anyway thanks!

Also another problem....

I use this code to make my ban command:

Code: Lua
  1.                                 local ban = vgui.Create( "DButton", MyDerma )
  2.                                 ban:SetPos( 120, 100 )
  3.                                 ban:SetText( "ban" )
  4.                                 ban.DoClick = function()
  5. --                              Derma_Message( "This command is being worked on", "ULXpanel", "OK" )
  6.                                 Derma_StringRequest(
  7.                                 "ULXpanel",
  8.                                 "Input the player you would like to ban!",
  9.                                 "",
  10.                                 function( text ) RunConsoleCommand( "ulx", "ban", ( text ) ) end,
  11.                                 function( text ) print( "Cancelled ban" ) end
  12.                                 )                                                      
  13.                                 MyDerma:Close()                        
  14.                                 end

it works fine but how would i make it so the Derma_StringRequest comes up with 3 boxes to input the time and reason?
If you have any questions about what i want please ask thanks!

  • Print