Garry's Mod

FAdmin to ULX scoreboard help?

Submitted by SuperSayin234, , Thread ID: 50856

Thread Closed
13-10-2017, 03:07 AM
#1
I'm using the tcb premium scoreboard that has functionality with FAdmin when right clicking on a player's name. Although, I don't use FAdmin for DarkRP, I use ULX because it's something I've always stuck to. I know there's a way to do it but I can't figure it out.

Code:
local gag, gag_pnl = Option:AddSubMenu( "Gag" )
gag_pnl:SetIcon( "icon16/sound.png" )

gag:AddOption( "Gag", function() RunConsoleCommand( "_FAdmin", "Voicemute", self.Player:UserID() ) end ):SetIcon( "icon16/sound_delete.png" )
gag:AddOption( "Ungag", function() RunConsoleCommand( "_FAdmin", "UnVoicemute", self.Player:UserID() ) end ):SetIcon( "icon16/sound_add.png" )
This is an example for the current Gag feature when right clicking. I want to know what I would need to remove or add to make it compatible with ULX.
NOTE: changing _FAdmin to ulx and Voicemute and UnVoicemute to gag and ungag don't work as they do not have a target to go to. I'm obviously doing something wrong because I don't have enough experience in LUA to make a change between two administration addons.
What do I do my guys?

Users browsing this thread: 6 Guest(s)