0 Üye ve 1 Ziyaretçi konuyu incelemekte.
----------------------------Oyuncu Paneli----------------------------CONTROL_MARGIN_RIGHT = 5LINE_MARGIN = 3LINE_HEIGHT = 22g_Root = getRootElement()g_ResRoot = getResourceRootElement(getThisResource())g_Me = getLocalPlayer()server = createServerCallInterface()guiSetInputMode("no_binds_when_editing")----------------------ZIPLAMA----------------------function setPosCommand(cmd, x, y, z, r)if getElementData(g_Me, ByCash.gorevdata_) then return false endlocal x, y, z, r = string.gsub(x or "", ",", " "), string.gsub(y or "", ",", " "), string.gsub(z or "", ",", " "), string.gsub(r or "", ",", " ")if (x and y == "" and not tonumber(x)) thenx, y, z, r = unpack(split(x, " "))endlocal px, py, pz = getElementPosition(localPlayer)local pr = getPedRotation(localPlayer)local message = ""message = message .. (tonumber(x) and "" or "X ")message = message .. (tonumber(y) and "" or "Y ")message = message .. (tonumber(z) and "" or "Z ")setPlayerPosition(tonumber(x) or px, tonumber(y) or py, tonumber(z) or pz)if (isPedInVehicle(localPlayer)) thenlocal vehicle = getPedOccupiedVehicle(localPlayer)if (vehicle and isElement(vehicle) and getVehicleController(vehicle) == localPlayer) thensetElementRotation(vehicle, 0, 0, tonumber(r) or pr)endelsesetPedRotation(localPlayer, tonumber(r) or pr)endendaddCommandHandler(ByCash.Zipla_, setPosCommand)-----------------------------------------------Araçları Yok Et------------------------------function respawnExplodedVehicle()setTimer(respawnVehicle, 5000, 1, source)endaddEventHandler("onVehicleExplode", getRootElement(), respawnExplodedVehicle)-----------------------------Sınırsız Nitro-----------------------------g_Me = getLocalPlayer();g_Root = getRootElement( );g_ResRoot = getResourceRootElement( );addEventHandler( "onClientResourceStart", g_ResRoot,function( )bindKey( "vehicle_fire", "both", toggleNOS );bindKey( "vehicle_secondary_fire", "both", toggleNOS );end)function toggleNOS( key, state )local veh = getPedOccupiedVehicle( g_Me );if veh and not isEditingPosition thenif state == "up" thenremoveVehicleUpgrade( veh, 1010 );setControlState( "vehicle_fire", false );elseaddVehicleUpgrade( veh, 1010 );endendend---------------------------Ekranı Gizle---------------------------function ekrangizle()showChat(false)guiCheckBoxSetSelected(getControl(wndMain, "Ekranı Göster"), false)triggerServerEvent("EkranGizle", getLocalPlayer(), thePlayer)setPlayerHudComponentVisible("all", false)endfunction ekrangoster()showChat(true)guiCheckBoxSetSelected(getControl(wndMain, "Ekranı Gizle"), false)triggerServerEvent("EkranGoster", getLocalPlayer(), thePlayer)setPlayerHudComponentVisible("all", true)end---------------------Cam Aç---------------------function openVehicleWindow(cmd, number)if (isPedInVehicle(localPlayer)) thenlocal vehicle = getPedOccupiedVehicle(localPlayer)if number and tonumber(number) thenif tonumber(number) > 0 and tonumber(number) < 7 thensetVehicleWindowOpen(vehicle, tonumber(number), not isVehicleWindowOpen(vehicle, tonumber(number)))endendendendaddCommandHandler(ByCash.CamAc_,openVehicleWindow)----------------------------Yürüyüş Stili----------------------------function showWalkingID(leaf)if leaf.id thensetControlNumber(wndWalking, "walkingid", leaf.id)endendfunction WalkingInit()setControlNumber(wndWalking, "walkingid", getPedWalkingStyle(g_Me) )endfunction applyWalking( WalkingID )local WalkingID = getControlNumber(wndWalking, "walkingid")if WalkingID then server.setWalking(WalkingID)fadeCamera(true)endendwndWalking = {"wnd",width = 250,x = -20,y = 0.3,controls = {{"lst",id="walkinglist",width=230,height=290,columns={{text="Stiller", attr="name"}},rows={xml="y_stilleri.xml", attrs={"id", "name"}},onitemclick=showWalkingID,onitemdoubleclick=applyWalking},{"txt", id="walkingid", text="", width=50},{"btn", id="Kullan", onclick=applyWalking},{"btn", id="Kapat", closeswindow=true}},oncreate = WalkingInit}--------------------------Dövüş Stili--------------------------function showFGID(leaf)if leaf.id thensetControlNumber(wndFG, "fightingID", leaf.id)endendfunction FGInit()setControlNumber(wndFG, "fightingID", tonumber( getElementData(g_Me,"XEnergy.Fighting")) )endfunction applyFG( FGID ) local FGID = getControlNumber(wndFG, "fightingID") if FGID then server.setFighting(FGID)fadeCamera(true)endendwndFG = {"wnd",width = 250,x = -20,y = 0.3,controls = {{"lst",id="fightinglist",width=230,height=290,columns={{text="Stiller", attr="name"}},rows={xml="d_stilleri.xml", attrs={"id", "name"}},onitemclick=showFGID,onitemdoubleclick=applyFG},{"txt", id="fightingID", text="", width=50},{"btn", id="Kullan", onclick=applyFG},{"btn", id="Kapat", closeswindow=true}},oncreate = FGInit}------------------------Karakterler----------------------function skinInit()setControlNumber(wndSkin, "skinid", getElementModel(g_Me))endfunction showSkinID(leaf)if leaf.id thensetControlNumber(wndSkin, "skinid", leaf.id)endendfunction applySkin()local skinID = getControlNumber(wndSkin, "skinid")if skinID thenif skinID == 299 thenerrMsg("Bu karakteri kullanmak için Vip panelini açmalısınız.")returnendserver.setMySkin(skinID)endendwndSkin = {"wnd",width = 250,x = -20,y = 0.3,controls = {{"lst",id="skinlist",width=230,height=290,columns={{text="Karakterler", attr="name"}},rows={xml="skins.xml", attrs={"id", "name"}},onitemclick=showSkinID,onitemdoubleclick=applySkin},{"txt", id="skinid", text="", width=50},{"btn", id="Kullan", onclick=applySkin},{"btn", id="Kapat", closeswindow=true}},oncreate = skinInit}function skinver(cmd, skin)skin = skin and tonumber(skin)if skin thenserver.setMySkin(skin)fadeCamera(true)closeWindow(wndSpawnMap)closeWindow(wndSetPos)endendaddCommandHandler(ByCash.Karakter_, skinver)---------------------------Temel Esyalar---------------------------function applyAnimation(leaf)if type(leaf) ~= "table" thenleaf = getSelectedGridListLeaf(wndAnim, "animlist")if not leaf thenreturnendendserver.setPedAnimation(g_Me, leaf.parent.name, leaf.name, true, true)endwndtemel = {"wnd",width = 250,x = -20,y = 0.3,controls = {{"lst",id="temel esya",width=230,height=290,columns={{text="Temel Esyalar", attr="name"}},rows={xml="temelesya.xml", attrs={"name"}},expandlastlevel=false,onitemdoubleclick=applyAnimation},{"btn", id="Al", onclick=giveWeapon},{"btn", id="Kapat", closeswindow=true}}}-------------------------Kıyafetler-------------------------function clothesInit()if getElementModel(g_Me) ~= 0 thenerrMsg("Carl Johnson karakterini kullanmadan kıyafetler bölümüne erişemezsiniz.")closeWindow(wndClothes)returnendif not g_Clothes thentriggerServerEvent("onClothesInit", g_Me)endendaddEvent("onClientClothesInit", true)addEventHandler("onClientClothesInit", g_Root,function(clothes)g_Clothes = clothes.allClothesfor i,typeGroup in ipairs(g_Clothes) dofor j,cloth in ipairs(typeGroup.children) doif not cloth.name thencloth.name = cloth.model .. " - " .. cloth.textureendcloth.wearing =clothes.playerClothes[typeGroup.type] andclothes.playerClothes[typeGroup.type].texture == cloth.texture andclothes.playerClothes[typeGroup.type].model == cloth.modelor falseendtable.sort(typeGroup.children, function(a, b) return a.name < b.name end)endbindGridListToTable(wndClothes, "clothes", g_Clothes, false)end)function clothListClick(cloth)setControlText(wndClothes, "addremove", cloth.wearing and "Çıkart" or "Giyin")endfunction applyClothes(cloth)if not cloth thencloth = getSelectedGridListLeaf(wndClothes, "clothes")if not cloth thenreturnendendif cloth.wearing thencloth.wearing = falsesetControlText(wndClothes, "addremove", "Giyin")server.removePlayerClothes(g_Me, cloth.parent.type)elselocal prevClothIndex = table.find(cloth.siblings, "wearing", true)if prevClothIndex thencloth.siblings[prevClothIndex].wearing = falseendcloth.wearing = truesetControlText(wndClothes, "addremove", "Çıkart")server.addPedClothes(g_Me, cloth.texture, cloth.model, cloth.parent.type)endendwndClothes = {"wnd",x = -20,y = 0.3,width = 350,controls = {{"lst",id="clothes",width=330,height=390,columns={{text="Kıyafetler", attr="name", width=0.6},{text="Durum", attr="wearing", enablemodify=true, width=0.3}},rows={{name="Kıyafetler yükleniyor..."}},onitemclick=clothListClick,onitemdoubleclick=applyClothes},{"br"},{"btn", text="Giyin", id="addremove", width=60, onclick=applyClothes},{"btn", id="Kapat", closeswindow=true}},oncreate = clothesInit}---------------------Harita---------------------dolocal screenWidth, screenHeight = guiGetScreenSize()g_MapSide = (screenHeight * 0.85)endfunction setPosInit()local x, y, z = getElementPosition(g_Me)setControlNumbers(wndSetPos, { x = x, y = y, z = z })addEventHandler("onClientRender", g_Root, updatePlayerBlips)endfunction fillInPosition(relX, relY, btn)if (btn == "right") thencloseWindow (wndSetPos)returnendlocal x = relX*6000 - 3000local y = 3000 - relY*6000local hit, hitX, hitY, hitZhit, hitX, hitY, hitZ = processLineOfSight(x, y, 3000, x, y, -3000)setControlNumbers(wndSetPos, { x = x, y = y, z = hitZ or 0 })endfunction setPosClick()setPlayerPosition(getControlNumbers(wndSetPos, {"x", "y", "z"}))closeWindow(wndSetPos)endfunction setPlayerPosition(x, y, z)local elem = getPedOccupiedVehicle(g_Me)local distanceToGroundlocal isVehicleif elem thenif getPlayerOccupiedSeat(g_Me) ~= 0 thenerrMsg("Aracın konumunu sadece şöför ayarlıyabilir.")returnenddistanceToGround = getElementDistanceFromCentreOfMassToBaseOfModel(elem) + 3isVehicle = trueelseelem = g_MedistanceToGround = 0.4isVehicle = falseendlocal hit, hitX, hitY, hitZ = processLineOfSight(x, y, 3000, x, y, -3000)if not hit thenif isVehicle thenserver.fadeVehiclePassengersCamera(false)elsefadeCamera(false)endsetTimer(setCameraMatrix, 1000, 1, x, y, z)local grav = getGravity()setGravity(0.001)if g_TeleportTimer then killTimer(g_TeleportTimer) endg_TeleportTimer = setTimer(function()local hit, groundX, groundY, groundZ = processLineOfSight(x, y, 3000, x, y, -3000)if hit thenlocal waterZ = getWaterLevel(x, y, 100)z = (waterZ and math.max(groundZ, waterZ) or groundZ) + distanceToGroundif isPedDead(g_Me) thenserver.spawnMe(x, y, z)elsesetElementPosition(elem, x, y, z)endsetCameraPlayerMode()setGravity(grav)if isVehicle thenserver.fadeVehiclePassengersCamera(true)elsefadeCamera(true)endkillTimer(g_TeleportTimer)g_TeleportTimer = nilendend,500,0)elseif isPedDead(g_Me) thenserver.spawnMe(x, y, z + distanceToGround)elsesetElementPosition(elem, x, y, z + distanceToGround)if isVehicle thensetTimer(setElementVelocity, 100, 1, elem, 0, 0, 0)setTimer(setVehicleTurnVelocity, 100, 1, elem, 0, 0, 0)endendendendfunction updatePlayerBlips()if not g_PlayerData thenreturnendlocal wnd = isWindowOpen(wndSpawnMap) and wndSpawnMap or wndSetPoslocal mapControl = getControl(wnd, "map")for elem,player in pairs(g_PlayerData) doif not player.gui.mapBlip thenplayer.gui.mapBlip = guiCreateStaticImage(0, 0, 9, 9, elem == g_Me and "localPlayerblip.png" or "playerblip.png", false, mapControl)player.gui.mapLabelShadow = guiCreateLabel(0, 0, 100, 14, player.name, false, mapControl)local labelWidth = guiLabelGetTextExtent(player.gui.mapLabelShadow)guiSetSize(player.gui.mapLabelShadow, labelWidth, 14, false)guiSetFont(player.gui.mapLabelShadow, "default-bold-small")guiLabelSetColor(player.gui.mapLabelShadow, 255, 255, 255)player.gui.mapLabel = guiCreateLabel(0, 0, labelWidth, 14, player.name, false, mapControl)guiSetFont(player.gui.mapLabel, "default-bold-small")guiLabelSetColor(player.gui.mapLabel, 0, 0, 0)for i,name in ipairs({"mapBlip", "mapLabelShadow"}) doaddEventHandler("onClientGUIDoubleClick", player.gui[name],function()server.warpMe(elem)closeWindow(wnd)end,false)endendlocal x, y = getElementPosition(elem)x = math.floor((x + 3000) * g_MapSide / 6000) - 4y = math.floor((3000 - y) * g_MapSide / 6000) - 4guiSetPosition(player.gui.mapBlip, x, y, false)guiSetPosition(player.gui.mapLabelShadow, x + 14, y - 4, false)guiSetPosition(player.gui.mapLabel, x + 13, y - 5, false)endendaddEventHandler("onClientPlayerChangeNick", g_Root,function(oldNick, newNick)if (not g_PlayerData) then return endlocal player = g_PlayerData[source]player.name = newNickif player.gui.mapLabel thenguiSetText(player.gui.mapLabelShadow, newNick)guiSetText(player.gui.mapLabel, newNick)local labelWidth = guiLabelGetTextExtent(player.gui.mapLabelShadow)guiSetSize(player.gui.mapLabelShadow, labelWidth, 14, false)guiSetSize(player.gui.mapLabel, labelWidth, 14, false)endend)function closePositionWindow()removeEventHandler("onClientRender", g_Root, updatePlayerBlips)endwndSetPos = {"wnd",width = g_MapSide + 15,controls = {{"img", id="map", src="map.png", width=g_MapSide, height=g_MapSide, onclick=fillInPosition, ondoubleclick=setPosClick},{"txt", id="x", text="", width=60},{"txt", id="y", text="", width=60},{"txt", id="z", text="", width=60},{"btn", id="Git", onclick=setPosClick},{"btn", id="Kapat", closeswindow=true},{"lbl", text="Işınlanmak istediğiniz bölgeyi seçiniz."}},oncreate = setPosInit,onclose = closePositionWindow}function warpMapInit()addEventHandler("onClientRender", g_Root, updatePlayerBlips)endfunction spawnMapDoubleClick(relX, relY)setPlayerPosition(relX*6000 - 3000, 3000 - relY*6000, 0)closeWindow(wndSpawnMap)endfunction closeSpawnMap()showCursor(false)removeEventHandler("onClientRender", g_Root, updatePlayerBlips)for elem,data in pairs(g_PlayerData) dofor i,name in ipairs({"mapBlip", "mapLabelShadow", "mapLabel"}) doif data.gui[name] thendestroyElement(data.gui[name])data.gui[name] = nilendendendendwndSpawnMap = {"wnd",width = g_MapSide + 15,controls = {{"img", id="map", src="map.png", width=g_MapSide, height=g_MapSide, ondoubleclick=spawnMapDoubleClick},{"lbl", text="Işınlanmak istediğiniz bölgeyi seçin.", width=g_MapSide-60, align="center"},{"btn", id="Kapat", closeswindow=true}},oncreate = warpMapInit,onclose = closeSpawnMap}----------------------Araçlar----------------------function createSelectedVehicle(leaf)if not leaf thenleaf = getSelectedGridListLeaf(wndCreateVehicle, "vehicles")if not leaf thenreturnendendserver.giveMeVehicles(leaf.id)endwndCreateVehicle = {"wnd",width = 300,controls = {{"lst",id="vehicles",width=280,height=340,columns={{text="Araçlar", attr="name"}},rows={xml="vehicles.xml", attrs={"id", "name"}},onitemdoubleclick=createSelectedVehicle},{"btn", id="Oluştur", onclick=createSelectedVehicle},{"btn", id="Kapat", closeswindow=true}}}---------------------Yenile---------------------function repairVehicle()local vehicle = getPedOccupiedVehicle(g_Me)if vehicle thenserver.fixVehicle(vehicle)endend---------------------Döndür---------------------function flipVehicle()local vehicle = getPedOccupiedVehicle(g_Me)if vehicle thenlocal rZ = getElementRotation(vehicle)server["set" .. "VehicleRotation"](vehicle, 0, 0, (rZ + 180) or rZ)endend-----------------------Modifiye-----------------------function upgradesInit()local vehicle = getPedOccupiedVehicle(g_Me)if not vehicle thenerrMsg("Aracınıza binmeden modifiye kısmına erişemezsiniz.")closeWindow(wndUpgrades)returnendlocal installedUpgrades = getVehicleUpgrades(vehicle)local compatibleUpgrades = {}local slotName, groupfor i,upgrade in ipairs(getVehicleCompatibleUpgrades(vehicle)) doslotName = getVehicleUpgradeSlotName(upgrade)group = table.find(compatibleUpgrades, "name", slotName)if not group thengroup = { "group", name = slotName, children = {} }table.insert(compatibleUpgrades, group)elsegroup = compatibleUpgrades[group]endtable.insert(group.children, { id = upgrade, installed = table.find(installedUpgrades, upgrade) ~= false })endtable.sort(compatibleUpgrades, function(a, b) return a.name < b.name end)bindGridListToTable(wndUpgrades, "upgradelist", compatibleUpgrades, true)endfunction selectUpgrade(leaf)setControlText(wndUpgrades, "addremove", leaf.installed and "Kaldır" or "Kullan")endfunction addRemoveUpgrade(selUpgrade)local vehicle = getPedOccupiedVehicle(g_Me)if not vehicle thenreturnendif not selUpgrade thenselUpgrade = getSelectedGridListLeaf(wndUpgrades, "upgradelist")if not selUpgrade thenreturnendendif selUpgrade.installed thenselUpgrade.installed = falsesetControlText(wndUpgrades, "addremove", "Kullan")server.removeVehicleUpgrade(vehicle, selUpgrade.id)elselocal prevUpgradeIndex = table.find(selUpgrade.siblings, "installed", true)if prevUpgradeIndex thenselUpgrade.siblings[prevUpgradeIndex].installed = falseendselUpgrade.installed = truesetControlText(wndUpgrades, "addremove", "Kaldır")server.addVehicleUpgrade(vehicle, selUpgrade.id)endendwndUpgrades = {"wnd",width = 300,x = -20,y = 0.3,controls = {{"lst",id="upgradelist",width=280,height=340,columns={{text="Modifiyeler", attr="id", width=0.6},{text="Durum", attr="installed", width=0.3, enablemodify=true}},onitemclick=selectUpgrade,onitemdoubleclick=addRemoveUpgrade},{"btn", id="addremove", text="Kullan", width=60, onclick=addRemoveUpgrade},{"btn", id="Kapat", closeswindow=true}},oncreate = upgradesInit}---------------------Farlar---------------------function forceLightsOn()local vehicle = getPedOccupiedVehicle(g_Me)if not vehicle thenguiCheckBoxSetSelected(getControl(wndMain, "lightsoff"), false)returnendserver.setVehicleOverrideLights(vehicle, 2)guiCheckBoxSetSelected(getControl(wndMain, "lightsoff"), false)endfunction forceLightsOff()local vehicle = getPedOccupiedVehicle(g_Me)if not vehicle thenguiCheckBoxSetSelected(getControl(wndMain, "lightson"), false)returnendserver.setVehicleOverrideLights(vehicle, 1)guiCheckBoxSetSelected(getControl(wndMain, "lightson"), false)end-------------------Renk-------------------function openColorPicker()editingVehicle = getPedOccupiedVehicle(localPlayer)if (editingVehicle) thencolorPicker.openSelect(colors)endendfunction closedColorPicker()local r1, g1, b1, r2, g2, b2 = getVehicleColor(editingVehicle, true)server.setVehicleColor(editingVehicle, r1, g1, b1, r2, g2, b2)local r, g, b = getVehicleHeadLightColor(editingVehicle)server.setVehicleHeadLightColor(editingVehicle, r, g, b)editingVehicle = nilendfunction updateColor()if (not colorPicker.isSelectOpen) then return endlocal r, g, b = colorPicker.updateTempColors()if (editingVehicle and isElement(editingVehicle)) thenlocal r1, g1, b1, r2, g2, b2 = getVehicleColor(editingVehicle, true)if (guiCheckBoxGetSelected(checkColor1)) thenr1, g1, b1 = r, g, bendif (guiCheckBoxGetSelected(checkColor2)) thenr2, g2, b2 = r, g, bendif (guiCheckBoxGetSelected(checkColor3)) thensetVehicleHeadLightColor(editingVehicle, r, g, b)endsetVehicleColor(editingVehicle, r1, g1, b1, r2, g2, b2)endendaddEventHandler("onClientRender", root, updateColor)------------------------Ana Panel------------------------function updateGUI(updateVehicle)local x, y, z = getElementPosition(g_Me)setControlNumbers(wndMain, {xpos=math.ceil(x), ypos=math.ceil(y), zpos=math.ceil(z)})if updateVehicle thenlocal vehicle = getPedOccupiedVehicle(g_Me)if vehicle and isElement(vehicle) thensetControlText(wndMain, "curvehicle", getVehicleName(vehicle))elsesetControlText(wndMain, "curvehicle", "On foot")endendendfunction mainWndShow()setElementData(getControl(wndMain ,"Ölüm"), "tooltip-text", "İntihar edebilirsin.", false)setElementData(getControl(wndMain, "Animasyonlar"), "tooltip-text", "Animasyon kullanabilirsin.", false)setElementData(getControl(wndMain, "Karakterler"), "tooltip-text", "Karakterini değiştirebilirsin.", false)setElementData(getControl(wndMain, "Kıyafetler"), "tooltip-text", "CJ'in kıyafetlerini değiştirebilirsin.", false)setElementData(getControl(wndMain, "Yürüyüş Stilleri"), "tooltip-text", "Yürüyüş stilini değiştirebilirsin.", false)setElementData(getControl(wndMain, "Dövüş Stilleri"), "tooltip-text", "Dövüş stilini değiştirebilirsin.", false)setElementData(getControl(wndMain, "createvehicle"), "tooltip-text", "Araç oluşturabilirsin.", false)setElementData(getControl(wndMain, "Renk"), "tooltip-text", "Aracının rengini değiştirebilirsin.", false)setElementData(getControl(wndMain, "Araç Kontrol"), "tooltip-text", "Aracının ayarlarıyla oynayabilirsin.", false)setElementData(getControl(wndMain, "Modifiye"), "tooltip-text", "Aracını modifiye edebilirsin.", false)setElementData(getControl(wndMain, "lightson"), "tooltip-text", "Aracının farlarını açabilirsin.", false)setElementData(getControl(wndMain, "lightsoff"), "tooltip-text", "Aracının farlarını kapatabilirsin.", false)if not getPedOccupiedVehicle(g_Me) thenendupdateTimer = updateTimer or setTimer(updateGUI, 2000, 0)updateGUI(true)endfunction mainWndClose()killTimer(updateTimer)updateTimer = nilcolorPicker.closeSelect()endfunction onEnterVehicle(vehicle)setControlText(wndMain, "curvehicle", getVehicleName(vehicle))guiCheckBoxSetSelected(getControl(wndMain, "lightson"), getVehicleOverrideLights(vehicle) == 2)guiCheckBoxSetSelected(getControl(wndMain, "lightsoff"), getVehicleOverrideLights(vehicle) == 1)endfunction onExitVehicle(vehicle)setControlText(wndMain, "curvehicle", "On foot")closeWindow(wndUpgrades)closeWindow(wndColor)endfunction killlocalPlayer()server.killPed(g_Me)endfunction alphaCommand(command, alpha)alpha = alpha and tonumber(alpha)if alpha thenserver.setElementAlpha(g_Me, alpha)endend----------------------------Görev Sistemi----------------------------function GorevPaneli()GorevSistemiAc()end----------------------------Kumar Sistemi----------------------------function KumarPaneli()KumarSistemiAc()end-------------------------------CashTube Sistemi-------------------------------function CashTubePaneli()CashTubeSistemiAc()end-----------------------------------Araç Kontrol Sistemi-----------------------------------function AracKontrolPaneli()AracKontrolSistemiAc()end--------------------Panel--------------------wndMain = {"wnd",x = 10,y = 190,width = 300,controls = {{"btn", text= ByCash.paneladi_, id="paneladi", x=-11, y=0, width=310},{"br"},{"btn", id="Ölüm", onclick=killlocalPlayer, x=20, y=55, width=125.25},{"btn", id="Animasyonlar", window=wndAnim, x=150, y=55, width=125.25},{"btn", id="Karakterler", window=wndSkin, x=20, y=80, width=125.25},{"btn", id="Kıyafetler", window=wndClothes, x=150, y=80, width=125.25},{"btn", id="Yürüyüş Stilleri" , window=wndWalking, x=20, y=105, width=125.25},{"btn", id="Dövüş Stilleri" , window=wndFG, x=150, y=105, width=125.25},{"btn", id="Şans Oyunu", onclick = KumarPaneli, x=20, y=130, width=255},{"btn", id="createvehicle", window=wndCreateVehicle, text="Araçlar", x=20, width=125.25},{"btn", id="Görevler", onclick = GorevPaneli, x=150, width=125.25},{"btn", id="Araç Kontrol", onclick = AracKontrolPaneli, x=20, width=255},{"btn", id="Yenile", onclick=repairVehicle, x=20},{"btn", id="Döndür", onclick=flipVehicle, x=80},{"btn", id="Renk", onclick=openColorPicker, x=156, width=50},{"btn", id="Modifiye", window=wndUpgrades, x=209, width=65},{"btn", id="Youtube", onclick = CashTubePaneli, x=20, width=255},{"br"},{'lbl', text='Kordinat:', x=22},{'lbl', id='xpos', text='x', width=45},{'lbl', id='ypos', text='y', width=45},{'lbl', id='zpos', text='z', width=45},{"br"},{"chk", id="Ekranı Gizle", onclick=ekrangizle, x=20},{"chk", id="Ekranı Göster", onclick=ekrangoster, x=120},{"chk", id="lightson", text="Farları Aç", onclick=forceLightsOn, x=20},{"chk", id="lightsoff", text="Farları Kapat", onclick=forceLightsOff, x=120},},oncreate = mainWndShow,onclose = mainWndClose}---------------------------Fonksiyonlar---------------------------function errMsg(msg)outputChatBox(msg, 0, 150, 255)endaddEventHandler("onClientResourceStart", g_ResRoot,function()fadeCamera(true)setTimer(getPlayers, 1000, 1)bindKey("f1", "down", toggleFRWindow)createWindow(wndMain)hideAllWindows()triggerServerEvent("onLoadedAtClient", g_ResRoot, g_Me)end)function showMap()createWindow(wndSetPos)showCursor(true)endfunction toggleFRWindow()if getElementData(g_Me, ByCash.gorevdata_) then return false endguiSetVisible(gorevde_panel, false)if isWindowOpen(wndMain) thenshowCursor(false)hideAllWindows()colorPicker.closeSelect()elseguiSetVisible(gorevde_panel, false)showCursor(true)showAllWindows()createWindow(wndMain)endendfunction getPlayers()g_PlayerData = {}table.each(getElementsByType("player"), joinHandler)endfunction joinHandler(player)if (not g_PlayerData) then return endg_PlayerData[player or source] = { name = getPlayerName(player or source), gui = {} }endaddEventHandler("onClientPlayerJoin", g_Root, joinHandler)addEventHandler("onClientPlayerQuit", g_Root,function()if (not g_PlayerData) then return endtable.each(g_PlayerData[source].gui, destroyElement)g_PlayerData[source] = nilend)addEventHandler("onClientPlayerWasted", g_Me,function()onExitVehicle(g_Me)end)addEventHandler("onClientPlayerVehicleEnter", g_Me, onEnterVehicle)addEventHandler("onClientPlayerVehicleExit", g_Me, onExitVehicle)addEventHandler("onClientResourceStop", g_ResRoot,function()showCursor(false)setPedAnimation(g_Me, false)end)
--------------------Panel--------------------wndMain = {"wnd",x = 10,y = 190,width = 300,controls = {{"btn", text= ByCash.paneladi_, id="paneladi", x=-11, y=0, width=310},{"br"},{"btn", id="Ölüm", onclick=killlocalPlayer, x=20, y=55, width=125.25},{"btn", id="Animasyonlar", window=wndAnim, x=150, y=55, width=125.25},{"btn", id="Karakterler", window=wndSkin, x=20, y=80, width=125.25},{"btn", id="Kıyafetler", window=wndClothes, x=150, y=80, width=125.25},{"btn", id="Yürüyüş Stilleri" , window=wndWalking, x=20, y=105, width=125.25},{"btn", id="Dövüş Stilleri" , window=wndFG, x=150, y=105, width=125.25},{"btn", id="Şans Oyunu", onclick = KumarPaneli, x=20, y=130, width=255},{"btn", id="createvehicle", window=wndCreateVehicle, text="Araçlar", x=20, width=125.25},{"btn", id="Görevler", onclick = GorevPaneli, x=150, width=125.25},{"btn", id="Araç Kontrol", onclick = AracKontrolPaneli, x=20, width=255},{"btn", id="Yenile", onclick=repairVehicle, x=20},{"btn", id="Döndür", onclick=flipVehicle, x=80},{"btn", id="Renk", onclick=openColorPicker, x=156, width=50},{"btn", id="Modifiye", window=wndUpgrades, x=209, width=65},{"btn", id="Youtube", onclick = CashTubePaneli, x=20, width=255},{"br"},{'lbl', text='Kordinat:', x=22},{'lbl', id='xpos', text='x', width=45},{'lbl', id='ypos', text='y', width=45},{'lbl', id='zpos', text='z', width=45},{"br"},{"chk", id="Ekranı Gizle", onclick=ekrangizle, x=20},{"chk", id="Ekranı Göster", onclick=ekrangoster, x=120},{"chk", id="lightson", text="Farları Aç", onclick=forceLightsOn, x=20},{"chk", id="lightsoff", text="Farları Kapat", onclick=forceLightsOff, x=120},},oncreate = mainWndShow,onclose = mainWndClose}dedigim gibi butonu eklememişsin altta verdigim btn kodunu üsteki bölümden bir yere eklerse olucaktır olmassa işlevi yanlış vermişsindir scripti atıp ekleyebilriim {"btn", id="Temel Eşyalar", window=wndTemel, x=20, y=80, width=125.25},