ULX

Author Topic: ULX Give - Give weapons to players.  (Read 87134 times)

0 Members and 2 Guests are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Give - Give weapons to players.
« Reply #15 on: April 05, 2010, 10:50:55 AM »
Welcome.
Syntax - a coder's worst nightmare
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Goldsun1715

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: ULX Give - Give weapons to players.
« Reply #16 on: May 02, 2010, 06:51:56 PM »
Uh... so I've got the string right here:

local give = ulx.command( CATEGORY_NAME, "ulx give", ulx.give, "!give" )

What exactly am I supposed to set CATEGORY_NAME to?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Give - Give weapons to players.
« Reply #17 on: May 02, 2010, 08:42:49 PM »
Look at "ulx help" from console...it's categorized, I forget them off the top of my head, but it's like "Utility", "Player management", "punishment"... some like that.
Change CATEGORY_NAME to the "<category>" you want from the help menu. Enclose the name in quotes.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Goldsun1715

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: ULX Give - Give weapons to players.
« Reply #18 on: May 03, 2010, 02:09:11 PM »
Look at "ulx help" from console...it's categorized, I forget them off the top of my head, but it's like "Utility", "Player management", "punishment"... some like that.
Change CATEGORY_NAME to the "<category>" you want from the help menu. Enclose the name in quotes.

Oh thank you very much. :)

Offline xynetor

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: ULX Give - Give weapons to players.
« Reply #19 on: May 17, 2010, 05:04:49 AM »
I don't know anything about LUA coding but this is the error I get.

Code: [Select]
ulx\modules/givesvn.lua:23: bad argument #1 to 'ipairs' (table expected, got nil)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Give - Give weapons to players.
« Reply #20 on: May 17, 2010, 04:21:26 PM »
Are you also getting the following error during server startup xynetor?
//  MODULE: givesvn.lua      //
ulx\sh_base.lua:182: table index is nil
If so, follow the instructions from the past few posts for editing CATEGORY_NAME
If not, when does that error occur?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline lavacano201014

  • Jr. Member
  • **
  • Posts: 83
  • Karma: 9
  • Archbishop of Cristina Scabbia worship
Re: ULX Give - Give weapons to players.
« Reply #21 on: May 29, 2010, 03:09:12 PM »
Look at "ulx help" from console...it's categorized, I forget them off the top of my head, but it's like "Utility", "Player management", "punishment"... some like that.
Change CATEGORY_NAME to the "<category>" you want from the help menu. Enclose the name in quotes.

You can also set whatever category you want in there - ULX seems to automatically adjust to it.

I have a "Madhouse" category for my server, and it works fine there.
Circle reasoning works because circle reasoning works because...

Offline specter

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: ULX Give - Give weapons to players.
« Reply #22 on: August 11, 2010, 11:21:09 AM »
I am sorry but how can I make this script available to give a weapon to everyone on the serveR?
« Last Edit: August 11, 2010, 01:08:38 PM by specter »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Give - Give weapons to players.
« Reply #23 on: August 11, 2010, 05:29:50 PM »
Pheonix, Seth wrote this to allow ULX multiple player targeting.
Easiest way is to use * in svn, <all> in non-svn
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Blah

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: ULX Give - Give weapons to players.
« Reply #24 on: March 21, 2012, 01:17:43 PM »
Code: [Select]
You do not have access to this command, Blah.
Does not seem to work anymore, I could use this :/

Offline skydive

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: ULX Give - Give weapons to players.
« Reply #25 on: March 21, 2012, 01:22:05 PM »
Nice  8)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Give - Give weapons to players.
« Reply #26 on: March 21, 2012, 02:20:04 PM »
Code: [Select]
You do not have access to this command, Blah.
Does not seem to work anymore, I could use this :/
Hey Blah, Technically, it didn't work from first release, but the posts afterward explain how to fix it.
What access are  you on your server, and does it inherit admin?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline smithy285

  • Newbie
  • *
  • Posts: 7
  • Karma: -6
Re: ULX Give - Give weapons to players.
« Reply #27 on: December 15, 2012, 03:24:05 AM »
Hey Blah, Technically, it didn't work from first release, but the posts afterward explain how to fix it.
What access are  you on your server, and does it inherit admin?
I am having the same problem to.
I am ULX admin and I have made myself admin in the server files as well (e.g userconfig and users.txt) and yet I still get the message that I don't have permission to access it. I am no good at coding and I don't know how to fix it. Any help would be appreciated.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Give - Give weapons to players.
« Reply #28 on: December 15, 2012, 05:01:37 PM »
Make sure you're trying the svn zip file.

You don't have to know how to code.
Open the only .lua file in a text editor.
Find where it says CATEGORY_NAME and change it to anything you want in quotes.
I recommend "Utility"

After doing that, if it doesn't work, then it's due to the fact this was released in December 2009.
There have been (virtually) countless number of updates to Gmod, ULX, and ULib since then.
Try PMing the original author, cause he's not been here since 2011, and would most likely not see any errors you post.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Mesmaroth

  • Newbie
  • *
  • Posts: 5
  • Karma: -1
Re: ULX Give - Give weapons to players.
« Reply #29 on: February 06, 2013, 10:01:36 PM »
Sorry for the bumb. But can someone try updating this? Don't want to use Fadmin for the weapons.