[YARDIM] Buton İşlevi

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı CastiaL

  • Yeni Üye
  • *
    • İleti: 62
: 12 Temmuz 2018, 12:00:25
GUIEditor.button[3] e tıklandığında dj = .... ve textis = istekisim yazısı herkesde görünücek bunu nasıl yapabilirim.

Kod: lua
		addEventHandler ( "onClientGUIClick", GUIEditor.button[3], function ()
radioURL = guiGetText(GUIEditor.edit[1])
istekisim = guiGetText(GUIEditor.edit[3])
url_len = string.len(radioURL)
if url_len <= 12 then
outputChatBox("#ff0000Lütfen Tüm Alanları Doldurun.", 255, 0, 0, true)
elseif guiGetText(GUIEditor.edit[3]) ~= "" and guiGetText(GUIEditor.edit[3]) ~= " " and guiGetText(GUIEditor.edit[3]) ~= "Şarkı ismi örn: Kate Linn - Your Love" then
setElementData(resourceRoot, "radio.url", radioURL, true)
triggerServerEvent("onRadioChanged", root, radioURL)
dj = "#00FF00İstek Parça Çalınıyor!"
textis = istekisim
            else
            outputChatBox("#FF0000Lütfen Tüm Alanları Doldurun.", 255, 0, 0, true)
end

end
, false)
« Son Düzenleme: 16 Temmuz 2018, 00:45:00 Gönderen: Narkoz »
 


MTASATURK

[YARDIM] Buton İşlevi
« : 12 Temmuz 2018, 12:00:25 »