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. This is for anyone that has a similar issue that I did.