[YARDIM] Skin Panel Kodu Çalışmıyor

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı Strong

  • Deneyimli Üye
  • *
    • İleti: 455
  • After Roleplay Developer
: 01 Ocak 2019, 13:56:41
Burada ne yanlış, çoğaltamadım 9 tane yapıcaktım da olmadı bir yardım edermisiniz?

client.lua

Kod
marker = createMarker(  -1549.7037353516, 377.18084716797, 13.571598052979 -1.1,"cylinder",1,255,0,0,255)
-- Markerin Kordinatlarını Değiştiriniz. "Yoksa Görünmez"
          --Panel'de Yaptığımız Ayarlar
 local screenW, screenH = guiGetScreenSize()
  pencere = guiCreateStaticImage((screenW - 293) / 2, (screenH - 202) / 2, 293, 202, "resimler/pencerearka.png", false)
   guiSetVisible(pencere,false)
    pencerebaslik = guiCreateStaticImage (0,0,293,15,"resimler/buton.png", false, pencere)
      kapatbuton = guiCreateStaticImage(275, 0, 15, 15, "resimler/cikis.png", false , pencere)   
       pencerebaslikyazi = guiCreateLabel(0, 0, 293, 15, "Kıyafet Paneli - CRP", false ,pencerebaslik)
        guiLabelSetColor(pencerebaslikyazi, math.random(0, 255), math.random(0, 255), math.random(0, 255))   
          guiLabelSetVerticalAlign(pencerebaslikyazi, "center")
            guiLabelSetHorizontalAlign(pencerebaslikyazi, "center", false)
   
    skin1buton = guiCreateStaticImage(12, 35, 66, 49, "resimler/buton.png", false, pencere)
skin1yazi = guiCreateLabel(3, 6, 59, 33, "Operasyon 1 ", false, skin1buton)
guiLabelSetColor(skin1yazi, math.random(0, 255), math.random(0, 255), math.random(0, 255))
guiLabelSetVerticalAlign(skin1yazi, "center")
    guiLabelSetHorizontalAlign(skin1yazi, "center", false)


   skin2buton = guiCreateStaticImage(111, 36, 67, 48, "resimler/buton.png", false, pencere)
    skin2yazi = guiCreateLabel(5, 5, 57, 33, "Komutan", false, skin2buton)
  guiLabelSetColor(skin2yazi, math.random(0, 255), math.random(0, 255), math.random(0, 255))
    guiLabelSetVerticalAlign(skin2yazi, "center")
    guiLabelSetHorizontalAlign(skin2yazi, "center", false)
   
   
   skin4buton = guiCreateStaticImage(204, 38, 66, 46, "resimler/buton.png", false, pencere)
    skin4yazi = guiCreateLabel(3, 6, 58, 30, "Operasyon 2", false, skin4buton)
    guiLabelSetColor(skin4yazi, math.random(0, 255), math.random(0, 255), math.random(0, 255))
    guiLabelSetVerticalAlign(skin4yazi, "center")
    guiLabelSetHorizontalAlign(skin4yazi, "center", false)
   

      skin3buton = guiCreateStaticImage(100, 36, 40, 45, "resimler/buton.png", false, pencere)
    skin3yazi = guiCreateLabel(1, 5, 60, 15, "Eğitmen", false, skin5buton)
    guiLabelSetColor(skin3yazi, math.random(0, 255), math.random(0, 255), math.random(0, 255))
    guiLabelSetVerticalAlign(skin3yazi, "center")
    guiLabelSetHorizontalAlign(skin3yazi, "center", false)
   

      skin4buton = guiCreateStaticImage(203, 16, 0, 31, "resimler/buton.png", false, pencere)
    skin4yazi = guiCreateLabel(4, 3, 28, 29, "İçtima", false, skin4buton)
    guiLabelSetColor(skin4yazi, math.random(0, 255), math.random(0, 255), math.random(0, 255))
    guiLabelSetVerticalAlign(skin4yazi, "center")
    guiLabelSetHorizontalAlign(skin4yazi, "center", false)
   
   
   -- Markere Girince --

addEventHandler("onClientMarkerHit",marker,function(giren)
if giren == localPlayer then
guiSetVisible(pencere,true)
showCursor(true)
    triggerServerEvent("setPedSkin", localPlayer, skin)
end
end)

-- Tıklama Functionlarımız. --

addEventHandler("onClientGUIClick",root,function() -- Tıklama Fonskiyonları
if source == kapatbuton then
guiSetVisible(pencere,false)
showCursor(false)
elseif source == skin1yazi  then
triggerServerEvent("Skin:SkinGiydir",localPlayer, 299)  -- 31 Kıyafetin SS-Dir "Değişe Bilirsiniz"
        outputChatBox("Kiyafeti Giydiniz",0,255,0,true)
guiSetVisible(pencere,false)
showCursor(false)
elseif source == skin2yazi  then
triggerServerEvent("Skin:SkinGiydir",localPlayer, 158)
outputChatBox("Kiyafeti Giydiniz",0,255,0,true)
guiSetVisible(pencere,false)
showCursor(false)
elseif source == skin5yazi  then
triggerServerEvent("Skin:SkinGiydir",localPlayer, 141)
outputChatBox("Kiyafeti Giydiniz",0,255,0,true)
guiSetVisible(pencere,false)
showCursor(false)
elseif source == skin3yazi  then
triggerServerEvent("Skin:SkinGiydir",localPlayer, 124)
outputChatBox("Kiyafeti Giydiniz",0,255,0,true)
guiSetVisible(pencere,false)
showCursor(false)
elseif source == skin4yazi then
triggerServerEvent("Skin:SkinGiydir",localPlayer, 287)
outputChatBox("Kiyafeti Giydiniz",0,255,0,true)
guiSetVisible(pencere,false)
showCursor(false)
end
end)
« Son Düzenleme: 08 Ocak 2019, 08:03:07 Gönderen: Narkoz »
 


MTASATURK

[YARDIM] Skin Panel Kodu Çalışmıyor
« : 01 Ocak 2019, 13:56:41 »