Garry's Mod

FAdmin to ULX scoreboard help?

Submitted by SuperSayin234, , Thread ID: 50856

Thread Closed

RE: FAdmin to ULX scoreboard help?

OP
This post was last modified: 14-10-2017, 09:18 PM by SuperSayin234
#4
14-10-2017, 02:34 PM
LimeWar Wrote:
?

The scoreboard only supports FAdmin by default, and I'm trying to get it to ULX. The current code for each command was listed and I'm trying to figure out a way to make it into ULX.

I finally fixed my lines of code.
Previously it would look like:
Code:
gag:AddOption( "Gag", function() RunConsoleCommand( "_FAdmin", "Voicemute", self.Player:UserID() ) end ):SetIcon( "icon16/sound_delete.png" )
Although now, I have it fixed to look like:
Code:
gag:AddOption( "Gag", function() if not (IsValid(self.Player) or self.Player:IsValid()) then return end
LocalPlayer():ConCommand("ulx gag \"".. self.Player:Nick() .. "\"" ) end ):SetIcon( "icon16/email_delete.png" )
It took a lot of time but the similar lines can be used on any of the functions. Just make sure to replace all the "gag"s with whatever function you want.

Users browsing this thread: 6 Guest(s)