• Inventory
    1 replies, posted
Hey. I have an inventory I worked on, and I cant for the love of me make it so that the "Accept" buttin is only available when both sides have the "ready" checkbox ticked. [lua]self.Accept:SetDisabled( true ) self.LeftReady:SetPos( 10, 270 ) self.LeftReady:SetText( "Ready?" ) self.LeftReady:SizeToContents() self.LeftReady.OnChange = function( ready ) if self.LeftReady:GetChecked() and dont know what to put here then self.Accept:SetDisabled( false ) else self.Accept:SetDisabled( true ) end[/lua] [lua] trade:SetMoneyOffer( left.pl, left.money ) trade:SetReady( left.pl, left.ready ) trade:SetMoneyOffer( right.pl, right.money ) trade:SetReady( right.pl, right.ready ) [/lua]
When they press ready, network it to the other client. add a check to see if both people are ready.
Sorry, you need to Log In to post a reply to this thread.