Job for specific SteamID

Hello, In the latest darkrp, would this work:

[lua]TEAM_ROSS = AddExtraTeam(“Black Mesa Mercenary”, {
color = Color(105,0,59,255),
model = “models/player/barney.mdl”,
description = [[If u want this class u, you must suck a demi gods left nut!]],
weapons = {“unarrest_stick”, “weapon_mad_m249”, “weapon_mad_knife”, “lockpick_pro”, “keypad_cracker_pro”},
command = “ross”,
max = 2,
salary = 150,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return CLIENT or ply:SteamID() == “STEAM_0:1:61931583” end,
CustomCheckFailMsg = “This is a private job for Ross!”
}) [/lua]

Thank you!


(User was banned for this post ("Missed the DarkRP help thread" - garry))

How are you planning on telling function() what ply is for it ?
Because from what I see now, it would result in “attempt to call ply a nil value”

[lua]customCheck = function(ply)[/lua]

isnt it? It works in singleplayer, does it in multiplayer?

Can you paste the “PlayerCanJoinTeam” function or whatever was it called in DarkRP ? I don’t remember how DarkRP handles it’s team releated stuff