Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: settext
1. setText
addEvent("setText", true)
addEventHandler("setText", root,
    function(
element, text)
    
guiSetText ( element, text )
    
end
)


wywo?anie trigera
function changeMyTeamName(plr, cmd, opcja, newName)
    if 
opcja == "1" then 
        setTeamName 
( team1, newName ) 
    
triggerClientEvent ( plr, "setText", plr, lteam1, newName )  
    elseif 
opcja == "2" then                         
        setTeamName 
( team2, newName ) 
    
triggerClientEvent ( plr, "setText", plr, lteam2, newName )       
    
end
end
addCommandHandler 
( "tsn", changeMyTeamName )

team1 team2 to teamy lteam1 to labele ktore maja sie zmieniac
B?ad w linijce guiSetText element argument 1 zwraca nil