ULX

Author Topic: ULX DarkRP Command  (Read 3944 times)

0 Members and 2 Guests are viewing this topic.

xxnukzxx

  • Guest
ULX DarkRP Command
« on: July 09, 2016, 05:59:36 PM »
Hello, i'm brand new to lua, and i'm trying to make a DarkRP command:
o ulx shipment <ent> <amount>

i would like to make this command because i cannot find it anywhere! If someone
could teach me how to make a command like this it would be much obliged.

Where would i use the code:

   DarkRP.createShipment(string name, table tbl)
« Last Edit: July 09, 2016, 06:51:15 PM by xxnukzxx »

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: ULX DarkRP Command
« Reply #1 on: July 09, 2016, 06:18:19 PM »
First of all, not many people here will just write code for you, unless it's something extremely simple. As I, myself, don't know much about DarkRP, I can't really help you here. I'd recommend learning Lua first, as it only takes a few hours and is very useful if you're going to continue doing this.

If you want to make a command for ULX for DarkRP, you need to check out the DarkRP functions. I found one that could pertain to what you're trying to do here.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: ULX DarkRP Command
« Reply #2 on: July 10, 2016, 05:08:41 AM »
First of all, not many people here will just write code for you, unless it's something extremely simple.

He didn't ask for anyone to code it for him:

If someone could teach me how to make a command like this it would be much obliged.

xxnukxx, I suggest you take a look at the code for the default ULX commands. You can find the code for commands in garrysmod/addons/ulx/lua/ulx/modules/sh/, or you can view the code online. You should be able to modify a command to suit your needs.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX DarkRP Command
« Reply #3 on: July 10, 2016, 07:03:39 AM »
There are also a few how to make a command threads around here.
Using the forum search should find something.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: ULX DarkRP Command
« Reply #4 on: July 10, 2016, 01:21:25 PM »
He didn't ask for anyone to code it for him:

xxnukxx, I suggest you take a look at the code for the default ULX commands. You can find the code for commands in garrysmod/addons/ulx/lua/ulx/modules/sh/, or you can view the code online. You should be able to modify a command to suit your needs.

I was just pointing that out just in case because many people just ask for this written. I didn't want it to come to that so I just said it.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.