TEAM_TEST = DarkRP.createJob("Test Class", {
color = Color(0, 0, 0, 255),
model = {"models/player/Group01/female_01.mdl"},
description = [[Test Class]],
weapons = {},
command = "test",
max = 1,
salary = 90000,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Custom Classes",
customCheck = function(ply) return CLIENT or
table.HasValue({"STEAM_1:1:61642171"}, ply:SteamID())
end,
CustomCheckFailMsg = "Custom Class",
})
So I have tested using the steamid custom check on other classes and they didn't seem to work. So this was the last time I decided to try and it appears to me that it just doesn't work. I created this job code at csite.io and I am not to familiar with making a job code myself. So if anyone could help me out with this one it would be a big help.
What are you trying to make it do?
My goal is to make a custom class for users to use for themselves, but when I add their steamid it they'll try to switch to that class it wont let then even with their steam id in the job code.
Well I mean the SteamID in that table isn't the correct one, you most likely used a shitty website to get it that isn't working properly. Hence when the function attempts to match your SteamID to the strings in the table it won't work.
Okay thanks I have used another website and it's worked thanks for the help.
Don‘t do jobs based on steamid, thats bullshit. Do a real server.
otherwise there is a tool on csite.io that u can use.
Sorry, you need to Log In to post a reply to this thread.