DarkRP ULX Module

This is my first release.

This ULX Module basically adds support for DarkRP, and is great for anyone who wants to use the ULX command system, for use with DarkRP.

!addmoney [Player] [amount] Adds money to the players wallet (use -amount to take away)
!setname [Player] [name] Sets a players RPName
!setjob [Player] [job name (can be impartial)] Sets a player to a job
!jobban [Player] [job name (can be impartial)] Bans a player from a job
!jobunban [Player] [job name (can be impartial)] Unbans player from a job
!selldoor sells the door you are looking at
!doorowner [Player] sets the owner of the door to the one specified
!arrest [Player] [time (in seconds)] arrests the player for a certain amount of time
!unarrest [Player]
unarrests the player

!lockdown forces a lockdown
!unlockdown* force removes a lockdown*

To install, just place “darkrp.lua” into “/addons/ULX/lua/ulx/modules/sh/”.


Add shipment commands (like !shipment [ent] [amount])

Added Uke’s fixes to the original thread post, changes are:
**- Fixed !setjob so that it will always take the shortest job name over the longest one **
**- Added the ability to use job ID’s instead of just their name **

Ver 1.2
**- Added !arrest, !unarrest, !lockdown and !unlockdown commands **

Ver 1.1
**- Added !jobban, !jobunban, !selldoor and !doorowner commands

  • Tidied up code a little
  • Redid forum post layout a little
  • !shipment illudes me…
    Ver 1.0**
  • Initial release

I am up for suggestions if you’ve got them, otherwise, enjoy! If you have any bugs, feel free to post them below (include the error in console please).

DISCONTINUED - I am not updating this anymore :stuck_out_tongue:

I made something like this a while back but never really shared it. Also good job.

Thankyou :slight_smile:

Doesn’t fadmin already have these features?

No, but there is already commands for all these things.

This module is for ULX, so these commands are good for people who want to be able to use the ULX permissions system, and is also good for people who have disabled their fAdmin.

Does addmoney work for steamid?

The DarkRP commands work even if you’ve disabled FAdmin.

Quite useful, good release.

No, sorry. Though I may work on doing so.

If I remember correctly, the DarkRP commands are console commands. And also, the commands in the module work with the ULX permissions system.

[editline]13th October 2013[/editline]

Updated to Version 1.1

Updated to 1.2

Despite there are commands for this, Wafflecopta has made it so you can use this for any ULX group, gj.

That is what I have been trying to tell people all along!

This would only be useful if you don’t know what the console is.

Yep :DD

And like various people have said in this thread and I’m gonna say again now, this module allows server admins to better incorporate the commands with their existing group permissions - something you can’t do if you have disabled FAdmin.

This is really good.
You should keep working on this

Hello, i added this to my server but I can’t seem to get it to work. Please help?

Error when trying !doorowner:
addons/ulx/lua/ulx/modules/sh/darkrp.lua:143: attempt to call method ‘isDoor’ (a nil value)addons/ulx/lua/ulx/modules/sh/darkrp.lua:143: attempt to call method ‘isDoor’ (a nil value)ServerLog: “[GSG]Freece<2><STEAM_0:0:33471579><Black Market Dealer>” say “!doorowner freece”

When trying money:
addons/ulx/lua/ulx/modules/sh/darkrp.lua:24: attempt to call method ‘setDarkRPVar’ (a nil value)addons/ulx/lua/ulx/modules/sh/darkrp.lua:24: attempt to call method ‘setDarkRPVar’ (a nil value)ServerLog: “[GSG]Freece<2><STEAM_0:0:33471579><Black Market Dealer>” say “!addmoney freece 10000”

Because you are on the older DarkRP 2.4.3. You should consider updating.

Yes, it is worth mentioning this is for the new DarkRP.