Jump to content

Burak5312

Members
  • Content Count

    28
  • Joined

  • Last visited

  • Days Won

    1

Burak5312 last won the day on February 6

Burak5312 had the most liked content!

Community Reputation

6 Neutral

About Burak5312

  • Rank
    Advanced Member

Recent Profile Visitors

448 profile views
  1. rica ederim dxDrawImage ve diğer dx fonksiyonların postGUI parametresi var sonunda true veya false onları true olarak değiştirdim bu şekilde diğer tüm yazıların ekranda ne varsa hepsinin üstüne yazıyor yani öncelik veriyor bunların hepsinin sonundaki parametreleri true yaptım dxDrawImage(x,y,hSize,vSize,mapFile,0,0,0,mapDrawColor,true) dxDrawImage(x,y,hSize,vSize,mapFile,0,0,0,mapDrawColor,true) dxDrawRectangle(hx1,hy1,width,height,tocolor(r,g,b,a),true) dxDrawImage(x-halfsize,y-halfsize,size,size,"images/blips/"..icon..".png",0,0,0,tocolor(r,g,b,a),true) dxDrawImage(mapX-8,mapY-8
  2. local screenW,screenH = guiGetScreenSize() local middleX,middleY = screenW/2,screenH/2 local localPlayer = getLocalPlayer() local thisResource = getThisResource() local toggle = false local zoom = 1 local zoomRate = 0.1 local movementSpeed = 5 local minZoomLimit = 1 local maxZoomLimit = 5 local xOffset = 0 local yOffset = 0 local x,y = 0,0 local hSize,vSize = 0,0 local R,G,B,A = 255,255,255,175 local mapDrawColor = tocolor(R,G,B,A) local normalColor = tocolor(255,255,255,255) local mapFile = ":maximap/images/radar.png" local
  3. hmmm ozaman postgui parametresini true yap bakalım ne olcak function drawMap() if not toggle then dxDrawImage(0,0,0,0,mapFile,0,0,0,0,true) -- This is actually important, because otherwise you'd get huge lag when opening the maximap after a while (it seems to unload the image after a short while) else checkMovement() hSize=pixelsPerMeter*mapWidth*zoom vSize=pixelsPerMeter*mapHeight*zoom x=middleX-hSize/2+xOffset*zoom y=middleY-vSize/2+yOffset*zoom dxDrawImage(x,y,hSize,vSize,mapFile,0,0,0,mapDrawColor,false) drawRadarAreas() drawBlips() drawLocalPlayerArr
  4. if getElementData(getLocalPlayer(),"logedin") then toggleControl ("radar",false) setPlayerHudComponentVisible ("clock",false) if(isPlayerMapVisible() == true) then setPlayerHudComponentVisible ("radar",false) end setPlayerHudComponentVisible ("money",false) setPlayerHudComponentVisible ("health",false) setPlayerHudComponentVisible ("weapon",false) setPlayerHudComponentVisible ("breath",false) setPlayerHudComponentVisible ("area_name", false ) setPlayerHudComponentVisible ("vehicle_name", false ) setPedTargetingMarkerEnabled(false) --(true) olarak ya
  5. function toggleMap() if not getElementData(getLocalPlayer(),"logedin") then return end if not getElementData(getLocalPlayer(),"mapRender") then return end if getElementData(getLocalPlayer(),"Harita") < 1 then return end --Eğer Harita var ise F11 Haritayı Açar. if toggle then showChat(true) setPlayerHudComponentVisible("radar", true) if triggerEvent("onClientPlayerMapHide",getRootElement(),false) then toggle=false end else showChat(false) setPlayerHudComponentVisible("radar", false) if triggerEvent("onClientPlayerMapShow",getRootElement(),false) then
  6. hi I want to check if the player is dead but it gives me an error function savePlayerData(player) if (player) then local account = getPlayerAccount(player) if(isGuestAccount(account) == false) then local accountName = getAccountName(account) local playerLevel = getPlayerLevel(player) local playerEXP = getPlayerEXP(player) local tempEXP = getPlayerTempEXP(player) local barEXP = getPlayerBarEXP(player) local playerMoney = getPlayerMoney(player) local playerWeapons if(isPeadDead(player)) then
  7. local tech = dxCreateShader("shader.fx") local elegy = dxCreateTexture( "elegy1.png") function REPLACE_ELEGY() engineApplyShaderToWorldTexture(tech, "elegy1body256") dxSetShaderValue(tech, "gTexture", elegy) end addEventHandler("onClientResourceStart", resourceRoot, REPLACE_ELEGY) shader.fx texture gTexture; technique TexReplace { pass P0 { Texture[0] = gTexture; } } bu şekilde yapabilirsin alltaki kodu shader.fx olarak kaydet üstteki kodda elegy1.png adlı dosyayı kendi resmin ile değiştir elegy1body256 yazan yeride değiştireceğin txd dosyasının içindeki resim
  8. emin değilim ama isimle ilgili olan bölüme 2 nokta arasını hesaplayan bir if ekle böylece istediğine varabilirsin aynı şekilde ne kadar mesafede görüneceğini ayarlamak için tekrar 5 i arttır veya azalt kodda doğru yeri yapmamış olabilirim ama isim bölümünü if içine alcaksın if (getDistanceBetweenPoints3D(x, y, z, px, py, pz) <= 5 or getPedTarget(localPlayer) == v) then end örnek: local x,y,z = getElementPosition(localPlayer); for _,v in ipairs(getElementsByType("player")) do setPlayerNametagShowing(v, false); if (v ~= localPlayer)
  9. if (getDistanceBetweenPoints3D(x, y, z, px, py, pz) <= 5 or getPedTarget(localPlayer) == v) then try increase 5
  10. maybe this work function FORCE_PLAYER_WALK( player, condition ) if( condition == true ) then bindKey(player, "w", "down", function() setControlState(player, "walk", true) setControlState(player, "forwards", true) end) bindKey(player, "w", "up", function() setControlState(player, "walk", false) setControlState(player, "forwards", false) end) toggleControl( player, "sprint", false ) toggleControl( player, "forwards", false ) toggleControl( player, "backwards", false ) toggleControl( player, "left", false ) toggleControl( player, "right", false )
  11. hello how can i detect when serverside ped damaged by player my purpose is ped turn face player and run if player not inside range function findRotation( x1, y1, x2, y2 ) local t = -math.deg( math.atan2( x2 - x1, y2 - y1 ) ) return t < 0 and t + 360 or t end function createTank( x, y, z ) if not (x) or not (y) or not (z) then return false end local THE_TANK = createPed( 0, x, y, z ) local tankX, tankY, tankZ = getElementPosition( THE_TANK ) local DETECT_RANGE = createColSphere( tankX, tankY, tankZ, 50 ) local BLIP = createBlipAttachedTo ( THE_TANK, 23 )
  12. hello there a way to show a client side ped to another player? or is this just done as server side? my purpose show one player around zombies other player thank you
  13. thanks man worked! actually i write getter setters client version will be better thank you
  14. hello im trying call text with triggerClientEvent but saying ERROR: server triggered clientside event showHUD but event not is not added clientside and my client side code draw nil on the screen im trying to 58.line in server side my purpose is transfer server side data to client side client local screenW, screenH = guiGetScreenSize() function EXP_HUD(exp) dxDrawText( tostring( exp ), screenW/2, screenH/2, screenW/2, screenH/2, tocolor( 255,255,255,255 ), 1, "bankgothic", "center", "center" ) end addEventHandler("onClientRender", root, EXP_HUD) addEvent( "showHUD",
×
×
  • Create New...