• Job Custom Check
    1 replies, posted
I am wanting to create a custom check for entities. I am wanting to make my weed system entities only able to buy by the TEAM_DRUG (drug dealer job) I have created. I am using this custom check but it doesn't seem to work: customCheck = function(ply) return table.HasValue({"TEAM_DRUG"}, ply:GetNWString("usergroup")) end, CustomCheckFailMsg = "You must be a different job to access the weed system! ",
[QUOTE=ShadowHedge;49658252]I am wanting to create a custom check for entities. I am wanting to make my weed system entities only able to buy by the TEAM_DRUG (drug dealer job) I have created. I am using this custom check but it doesn't seem to work: customCheck = function(ply) return table.HasValue({"TEAM_DRUG"}, ply:GetNWString("usergroup")) end, CustomCheckFailMsg = "You must be a different job to access the weed system! ",[/QUOTE] why do you force me to google for you? :speechless: [url]http://wiki.darkrp.com/index.php/DarkRP:CustomEntityFields[/url] -- Check the 'Allowed' field.
Sorry, you need to Log In to post a reply to this thread.