DarkRP Help Thread V1


Hello Everybody and Welcome to the DarkRP Help thread.
This forum covers everything related to DarkRP.

This is the list of things that you can help others or get help from.

  1. Lua=this includes HUD’S, lua errors, and lua code.

  2. Jobs=generally just creating jobs and improving them.

  3. Addons=you can ask about addons that improve DarkRP this includes cars, sweeps, and ect…

  4. Modules= you can ask about how to make modules or help, you can also link people modules.
    P.S Please tell people where to put the code if you post some. I see too many people having to ask where do I put this.
    This is the list of things that are not allowed on the thread.

  5. Server Ads=please don’t post ads for your server here this is a HELP thread.

  6. Paying for code=please don’t charge money for any code on this forum it’s helping not selling.

Thanks for reading before posting. Have a nice day and have fun helping or getting help.

Official Dark Role Play site: http://www.darkrp.com

I have this problem on my darkrp server were when I pocket a shipment, it still is technically in the same spot I pocketed it. It is just invisible and I can hit ‘e’ on the spot where I pocketed the shipment, and the weapon will spawn. Does anyone know what is the fix for this. Sorry it isn’t the best explanation.

It’s with every entity, that’s how pocket handles them, it makes them invisible, but they still collide and are useable.

(You should change the thread picture to LUA…)
Anyway, I would need some to make printers visible for users but they can’t use it if they are not in the VIP group.
I have this code
if t == TEAM_CAR and not self:IsUserGroup(“vip”) then
GAMEMODE:Notify(self, 1, 4, string.format(“You’re not VIP, visit the website for more information.”))

THAT is for jobs, how do I make it for entities?
Please help.

-snip, I was wrong-

But then if I use customCheck inside the entity it will spam errors, lol…
Why not just do the same inside this: https://github.com/FPtje/DarkRP/blob/master/gamemode/client/showteamtabs.lua#L613
but edit the code so it fits to the entities? :stuck_out_tongue:

Couldn’t I do like this:

and (if v.ent == "myentity" and not self:IsUserGroup("vip")) then

but then the problem is, what should I do behind the ‘then’?

Oh you want the client to see the entity even if they can’t buy it?

Have some examples, these should work:
[lua]customCheck = function(ply) return CLIENT or ply:IsAdmin() end[/lua]
[lua]customCheck = function(ply) return CLIENT or ply:IsUserGroup(“vip”) end[/lua]
[lua]customCheck = function(ply) return CLIENT or (ply:Team() = TEAM_CAR and ply:IsUserGroup(“vip”)) end[/lua]

[editline]26th February 2013[/editline]

Don’t do what this guy says. It fucks shit up.

Here, I updated the wiki:

Also, I just pushed an update to DarkRP in which you can change the message it sends to the player when they try to get something they can’t get.

Here’s a full example:
[lua]TEAM_HOBO = AddExtraTeam(“Hobo”, {
color = Color(80, 45, 0, 255),
model = “models/player/corpse1.mdl”,
description = [[The lowest member of society. All people see you laugh.
You have no home.
Beg for your food and money
Sing for everyone who passes to get money
Make your own wooden home somewhere in a corner or
outside someone else’s door]],
weapons = {“weapon_bugbait”},
command = “hobo”,
max = 5,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return CLIENT or ply:IsUserGroup(“Asshole”) end,
CustomCheckFailMsg = “You need to be an asshole to become a hobo.”



When I click hobo:


You need the latest DarkRP for this to work.

Thank you. :slight_smile:

I have another question, does my files that I have edited go away and go to default if I do a svn update with TortieseSVN?

Just update your DarkRP, FPtje fixed this after I asked.


Thank you, again! :smiley:

Uhh, I noticed this asked for ‘Jobs’ as well.

I’m asking someone to do a Job for me…
I need a custom scoreboard, because no offense to Falco or Drake, the replacement one is shit.
I’ve got a base code for one already if that helps, but I need stuff changing on it.
The guy says no payment, but tbh, you can’t get anyone to do a job for you without payment, so discuss on steam about that… Add me on steam for further discussion.


He meant jobs, like DarkRP jobs… Mayor etc. Creating custom jobs.
Not hire jobs, look in this thread:

To be honest, he made the thread for anything DarkRP based…

And I need something DarkRP based.

Define “shit”.

Okay, Shit was the wrong word. It’s basic, boring and unappealing.

With all its bright colours!?

I just don’t like it…I would have FAdmin, but every time I rejoin my server, my rank is reset. When I set my rank back, it isnt the full rank, so I have to stay with ULX and a bad scoreboard :confused:

Setting myself as Superadmin with FAdmin fixed that for me.

Okey I just read what should and shouldn’t be in this thread.