Community
All Features
Overview of all exisiting features.
Arcade
Play various games in the arcade.
Awards
Earn awards for different tasks.
Bug Tracker
Report site related bugs the right way.
Credits
Everything related to credits.
Groups
A list of user run groups you can join.
Help Center
Official regulations and help documents.
Member List
A list of all registered members.
Latest Announcements
Staff Recruitment | September 2022
Changelog #34 - 03/04/2022
April Update - Index Redesign and Unlock Content Experiment
Support
Shop
Upgrade
Log In
Create Account
NulledBB
General
Gaming
Garry's Mod
[HELP] with Lua
Create an account
Login
PrivateAlps.net - Offshore Cloud Services | VPS/RDP/VPN - Dedicated Servers - Webhosting - TOR Services - Auto Deploy
ADULTSLAYER.STORE 💎 #1 PORN SHOP | 700+ Hot Products: Brazzers, Teamskeet, Pornhub, NaughtyAmerica, Many More! | 💸 Secure PayPal & Card Payments | Satisfaction Guaranteed! 🔥
Garry's Mod
[HELP] with Lua
Submitted by Sparky148,
05-03-2022, 04:02 AM
, Thread ID: 236747
Thread Closed
Reply
05-03-2022, 04:02 AM
This post was last modified: 09-03-2022, 06:01 AM by
Sparky148
#1
I need help figuring out why everyone can see these categories even though I've added the canSee and set it to certain roles
DarkRP.createCategory{
name = "Shipments",
categorises = "shipments",
startExpanded = true,
color = Color(0, 0, 0, 255),
canSee = function(ply) table.HasValue({TEAM_GUNDEALER, TEAM_SPECARMS}, ply:Team()) end,
sortOrder = 2
}
DarkRP.createCategory{
name = "Weapons",
categorises = "shipments",
startExpanded = true,
color = Color(0, 0, 0, 255),
canSee = function(ply) table.HasValue({TEAM_GUNDEALER, TEAM_SPECARMS}, ply:Team()) end,
sortOrder = 2
}
EDIT:
the f4 menu i was using was for some reason skipping the canSee function so i made a new one and its working perfectly now
More
Users browsing this thread: 1 Guest(s)