• How to make a Job only visible to one person
    7 replies, posted
How do I make a Job only visible to one person by steamID? So my Custom Jobs wouldn't be seen by other people
you could try to use customcheck with a if statement if the steam id is yours
https://cdn.discordapp.com/attachments/475069711025963018/517808000438632448/2018-11-29_23-01-16.png This Causes the following error: https://cdn.discordapp.com/attachments/475069711025963018/517808358330466344/2018-11-29_23-03-04.png (I'm not the best with lua) And a canSee function doesn't give errors but neither does work canSee = function(ply) return (ply:SteamID() == "") end, It might be something with my F4 menu, I'm using essential_darkrp_f4_menu.
try using a function instead of putting the whole if statement in the custom check. make a function that returns true if your steamid is the needed one
You can use customcheck and create jobs at csite.io
Thank you for the suggestion, I was kind of hyped but it didn't seem to work. I can still see it both ways.
your custom check is totally wrong. You first of all did a custom check, then a custom check failmsg and then the if statement. This is what I am doing: customCheck = function(ply) return table.HasValue({"URSTEAMID"}, ply:SteamID()) end, even tho I'm not using steamids, just groups and jobs. It also is depending on which F4 Menu you are using. Mine is supporting custom checks and therefor it removes jobs when the customcheck isn't passing! greets
Yeah I managed to fix it by speaking to the developer of the F4 I was using, I didn't even need an if statement as my first custom check worked fine but the f4 menu just didn't hide the job because It wasn't updated to the last version. customCheck = function(ply) return ply:GetUserGroup() == "VIP" or ply:IsSuperAdmin() end,         CustomCheckFailMsg = "This job is VIP only!" I just forgot about this post so I will select yours an answer.
Sorry, you need to Log In to post a reply to this thread.