Poll

Do You Like The New GUI Better?

Yes, Much Better!
71 (59.7%)
Yeah
22 (18.5%)
I Don't Care, I Use The Console
14 (11.8%)
No
4 (3.4%)
I Prefer The Old GUI
8 (6.7%)

Total Members Voted: 116

Author Topic: URestrict [Depreciated-author no longer supports]  (Read 483943 times)

0 Members and 3 Guests are viewing this topic.

Offline Jethro

  • Newbie
  • *
  • Posts: 45
  • Karma: 1
Re: URestrict
« Reply #165 on: July 16, 2009, 02:23:45 PM »
     - Yes, I am planning on implementing this very soon, but atm the moment the easiest way o find the correct name of a tool is to select the tool, and go into the console and type gmod_tool, and it'll autocomplete the actual name.

Thanks. That worked but urestrict is incompatible at blocking tools which have a name 3 characters long.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URestrict
« Reply #166 on: July 16, 2009, 02:46:40 PM »
I spent ~5 minutes looking around code.garrysmod.com to see if there was an easy way (already created table, etc) of grabbing a list of tools on the server.
Surely there's a way (The Q menu isn't hardcoded with tools). I just couldn't find it in the time I took.

[EDIT] - Hmm. Might find this handy.
« Last Edit: July 16, 2009, 02:49:48 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #167 on: July 16, 2009, 10:26:42 PM »
This line sparks a lot of interest
Code: [Select]
local toolmodes = file.FindInLua( SWEP.Folder.."/stools/*.lua" )
==EDIT==

Success!!!!
Code: [Select]
lua_run PrintTable(file.FindInLua( "weapons/gmod_tool/stools/*.lua" ))
> PrintTable(file.FindInLua( "weapons/gmod_tool/stools/*.lua" ))...
1       =       adv_duplicator.lua
2       =       colmat.lua
3       =       weld_ez2.lua
4       =       axis.lua
5       =       balloon.lua
6       =       ballsocket.lua
7       =       ballsocket_adv.lua
8       =       ballsocket_ez.lua
9       =       button.lua
10      =       camera.lua
11      =       colour.lua
12      =       duplicator.lua
13      =       dynamite.lua
14      =       elastic.lua
15      =       emitter.lua
16      =       example.lua
17      =       eyeposer.lua
18      =       faceposer.lua
19      =       finger.lua
20      =       hoverball.lua
21      =       hydraulic.lua
22      =       ignite.lua
23      =       inflator.lua
24      =       keepupright.lua
25      =       lamp.lua
26      =       leafblower.lua
27      =       light.lua
28      =       magnetise.lua
29      =       material.lua
30      =       motor.lua
31      =       muscle.lua
32      =       nail.lua
33      =       nocollide.lua
34      =       paint.lua
35      =       physprop.lua
36      =       pulley.lua
37      =       remover.lua
38      =       rope.lua
39      =       rtcamera.lua
40      =       slider.lua
41      =       spawner.lua
42      =       statue.lua
43      =       thruster.lua
44      =       trails.lua
45      =       turret.lua
46      =       weld.lua
47      =       weld_ez.lua
48      =       wheel.lua
49      =       winch.lua
« Last Edit: July 16, 2009, 10:32:22 PM by jay209015 »
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #168 on: July 17, 2009, 12:02:07 AM »
Revision: 28
Author: jay
Date: 2:01:14 AM, Friday, July 17, 2009
Message:
Added Tool Verification
Removed Text Box To Add Tools, Now You Select From A Drop Down
----
Modified : /lua/ULib/modules/client/URestrict_cl.lua
Modified : /lua/ULib/modules/server/URestrict.lua

Let me know what you think.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline bennie900

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 5
Re: URestrict
« Reply #169 on: July 17, 2009, 07:49:22 AM »
Good work Jay love it! Love the drop down menu, much more easier but it needs to be scrollable because I have allot of tools and I cant see them all.

Good work though!  ;D

Offline Jethro

  • Newbie
  • *
  • Posts: 45
  • Karma: 1
Re: URestrict
« Reply #170 on: July 17, 2009, 09:58:46 AM »
Much better XD

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URestrict
« Reply #171 on: July 17, 2009, 03:20:14 PM »
Good work Jay.
I figured there was a way. Just had to find it.
I wonder what other methods of items that appear in the menu (such as the Scripted Entities?) could be used/added to URestrict.
Darn ... This just keeps getting better and better.

I didn't look, does garry set up a global table in any of that code so you don't have to call FindInLua again?
That would save some server cycles.
Though you'd really only need to do it once per map change, it would be better not to have to call it.
« Last Edit: July 17, 2009, 03:22:56 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #172 on: July 18, 2009, 11:47:24 AM »
FindInLua is only ran once, since you can't change add/remove lua files and have affect ingame without restarting the server. So it only runs on initial startup, and stores to a table.

Quote
Good work Jay love it! Love the drop down menu, much more easier but it needs to be scrollable because I have allot of tools and I cant see them all.
     -Will work on it.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #173 on: July 18, 2009, 07:12:40 PM »
Revision: 30
Author: jay
Date: 9:11:06 PM, Saturday, July 18, 2009
Message:
Updated The Title Bar To Show Correct Revision
----
Modified : /lua/ULib/modules/client/URestrict_cl.lua


Revision: 29
Author: jay
Date: 9:09:13 PM, Saturday, July 18, 2009
Message:
Scrollable Window For Tool List
Refresh Button On Tools Page
Added Spacing On Loadouts Page
----
Modified : /lua/ULib/modules/client/URestrict_cl.lua

Quote
Good work Jay love it! Love the drop down menu, much more easier but it needs to be scrollable because I have allot of tools and I cant see them all.
     - Done :D

An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline bennie900

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 5
Re: URestrict
« Reply #174 on: July 19, 2009, 12:57:54 PM »
Just attempted to install this and I have some errors,
Code: [Select]
[ULIB] Loading CLIENT module: urestrict_cl.lua
[ULIB] Loading CLIENT module: urestrict_help.lua
Warning: Unhandled usermessage 'URestrict_Tools'
Warning: Unhandled usermessage 'URestrict_Tools'
Warning: Unhandled usermessage 'URestrict_Loadouts'
Warning: Unhandled usermessage 'URestrict_Loadouts'
Warning: Unhandled usermessage 'URestrict_Loadouts'
Warning: Unhandled usermessage 'URestrict_Loadout_Groups'
Warning: Unhandled usermessage 'URestrict_Loadout_Groups'
Warning: Unhandled usermessage 'URestrict_Loadout_Exclusions'
Warning: Unhandled usermessage 'URestrict_Loadout_Loadout'
Warning: Unhandled usermessage 'URestrict_Loadout_Loadout'
Warning: Unhandled usermessage 'URestrict_All_Groups'
Warning: Unhandled usermessage 'URestrict_All_Groups'
Warning: Unhandled usermessage 'URestrict_All_Groups'
Warning: Unhandled usermessage 'URestrict_All_Groups'
Warning: Unhandled usermessage 'URestrict_All_Groups'
Warning: Unhandled usermessage 'URestrict_All_Groups'
Warning: Unhandled usermessage 'URestrict_All_Groups'
Warning: Unhandled usermessage 'URestrict_All_Groups'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'
Warning: Unhandled usermessage 'URestrict_All_Tools'

I have tried reinstalling countless times but that always happens. Not sure about anyone else? Any ideas?
Thanks.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URestrict
« Reply #175 on: July 19, 2009, 01:12:12 PM »
Bennie, what version of ULib are you using on your server?
Make sure it's the latest v2.30 released 06/20/09 or latest SVN of it
Make sure you've got the latest SVN of URestrict if you haven't already.

ULib and URestrict both have code in them that help prevent usermessages being sent too early, which it looks like is happening in your case.
If you have an older version of ULib, it can cause that error...as can URestrict I believe if you have an older SVN.
« Last Edit: July 19, 2009, 01:41:07 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline bennie900

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 5
Re: URestrict
« Reply #176 on: July 19, 2009, 01:52:36 PM »
I am using v30 of URestrict, and as for Ulib its updated daily. Hmm will have to check the version.

EDIT: Im using version 2.31 of Ulib.
« Last Edit: July 19, 2009, 01:56:24 PM by bennie900 »

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #177 on: July 19, 2009, 03:45:35 PM »
Do you have any other errors? Check client and Server.

Anyone else having this problem. I Just tested with a fresh install, and it works perfectly.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #178 on: July 20, 2009, 09:17:00 AM »
Here's some useful directories :D
Code: [Select]
    lua/ - Base lua folder.
    lua/autorun - All scripts in here are run on game startup.
    lua/autorun/server - All scripts in here are run on game startup for server only.
    lua/autorun/client - All scripts in here are run on game startup for client only.
    lua/includes/modules/ - Place modules in this folder.
    lua/weapons/ - All folders in here will be loaded as SWEPS.
    lua/weapons/<weaponname>/ - SWEP code goes here!
    lua/entities/ - All folders in here will be loaded as SENTS.
    lua/entities/<entname>/ - SENT code goes here!

    addons/<addonname>/lua/ - Base lua folder for addon.
    addons/<addonname>/lua/autorun - All scripts in here are run on game startup.
    addons/<addonname>/lua/autorun/server - All scripts in here are run on game startup for server only.
    addons/<addonname>/lua/autorun/client - All scripts in here are run on game startup for client only.
    addons/<addonname>/lua/weapons/ - All folders in here will be loaded as SWEPS.
    addons/<addonname>/lua/weapons/<weaponname>/ - SWEP code goes here!
    addons/<addonname>/lua/entities/ - All folders in here will be loaded as SENTS.
    addons/<addonname>/lua/entities/<entname>/ - SENT code goes here!

    gamemodes/<gmname>/gamemode/ - Gamemode code goes here!
    gamemodes/<gmname>/entities/weapons/ - Gamemode SWEPS go here!
    gamemodes/<gmname>/entities/entities/ - Gamemode SENTS go here!
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline bennie900

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 5
Re: URestrict
« Reply #179 on: July 20, 2009, 12:50:27 PM »
Never mind it works now... just suddenly ??? I must say excelent work well done! Much more sexy add-on  :o