Jump to content

send


KaMeR

Recommended Posts

Using outputChatBox of course. If you read carefully what each parameter does in this function you will find out that there is a parameter called "visibleTo". The message is sent to an element and its children. If you want to learn then read tutorials which are on the wiki and take a look into other resources.

Link to comment

here is part of my code the problem is only i see the text but i want it visible to selected player from gridlist..

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), 
        function ( ) 
            if (source == GUIEditor_Button[1]) then 
                    local playerName = guiGridListGetItemText ( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) 
                    guiSetText ( GUIEditor_Label[2], playerName ) 
  
                    local text = guiGetText ( GUIEditor_Edit[1] )--get the text from the edit box 
                    outputChatBox(playerName .. "-> " ..tostring(text), playerName, 255,255,0, true) 
  
            end 
        end 
) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...