0 Üye ve 1 Ziyaretçi konuyu incelemekte.
local screenW,screenH = guiGetScreenSize()local resW,resH = 1500,727local sW,sH = (screenW/resW), (screenH/resH) local turn = true local alpha = 255 addEventHandler( "onClientResourceStart", resourceRoot, function() setPlayerHudComponentVisible ( "radar", false ) hudMaskFX = dxCreateShader("mask.fx") radarTexture = dxCreateTexture("img/map.png") maskTexture = dxCreateTexture("img/radar_mask.png") checkTextures = ( hudMaskFX and radarTexture and maskTexture ) if not ( checkTextures ) then outputChatBox( "" ) else dxSetShaderValue( hudMaskFX, "sPicTexture", radarTexture ) dxSetShaderValue( hudMaskFX, "sMaskTexture", maskTexture ) end end) function drawRadar() if not ( checkTextures ) then return end dxSetShaderValue( hudMaskFX, "sMaskTexture", maskTexture ) local x,y = getElementPosition( localPlayer ) local zoom = 18 x = ( x ) / 6000 y = ( y ) / -6000 dxSetShaderValue( hudMaskFX, "gUVPosition", x,y ) dxSetShaderValue( hudMaskFX, "gUVScale",0.8/zoom, 1/zoom ) local _, _, c_Rot = getElementRotation( getCamera()); local _, _, p_Rot = getElementRotation( localPlayer ) dxSetShaderValue( hudMaskFX, "gUVRotAngle", math.rad( -c_Rot )) -- if getElementData(getLocalPlayer(),"GPS") >= 1 then setPlayerHudComponentVisible ( "radar", false ) dxDrawImage(0*sW, 592*sH, 216*sW, 183*sH, "img/radar_cover.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(0*sW, 598*sH, 197*sW, 125*sH, hudMaskFX, 0,0,0, tocolor(255,255,255,255)) dxDrawImage(90*sW, 655*sH, 21*sW, 21*sH, "img/radar_player.png", -p_Rot+c_Rot, 0, 0, tocolor(255, 255, 255, 220)) endaddEventHandler( "onClientRender", root, drawRadar)addEventHandler( "onClientResourceStop", resourceRoot, function() setPlayerHudComponentVisible ( "radar", true ) end)
start playerblips
Serverdaki oyuncuları radarda göstermiyor yardım edebilcek var mı ?? Kodlocal screenW,screenH = guiGetScreenSize()local resW,resH = 1500,727local sW,sH = (screenW/resW), (screenH/resH) local turn = true local alpha = 255 addEventHandler( "onClientResourceStart", resourceRoot, function() setPlayerHudComponentVisible ( "radar", false ) hudMaskFX = dxCreateShader("mask.fx") radarTexture = dxCreateTexture("img/map.png") maskTexture = dxCreateTexture("img/radar_mask.png") checkTextures = ( hudMaskFX and radarTexture and maskTexture ) if not ( checkTextures ) then outputChatBox( "" ) else dxSetShaderValue( hudMaskFX, "sPicTexture", radarTexture ) dxSetShaderValue( hudMaskFX, "sMaskTexture", maskTexture ) end end) function drawRadar() if not ( checkTextures ) then return end dxSetShaderValue( hudMaskFX, "sMaskTexture", maskTexture ) local x,y = getElementPosition( localPlayer ) local zoom = 18 x = ( x ) / 6000 y = ( y ) / -6000 dxSetShaderValue( hudMaskFX, "gUVPosition", x,y ) dxSetShaderValue( hudMaskFX, "gUVScale",0.8/zoom, 1/zoom ) local _, _, c_Rot = getElementRotation( getCamera()); local _, _, p_Rot = getElementRotation( localPlayer ) dxSetShaderValue( hudMaskFX, "gUVRotAngle", math.rad( -c_Rot )) -- if getElementData(getLocalPlayer(),"GPS") >= 1 then setPlayerHudComponentVisible ( "radar", false ) dxDrawImage(0*sW, 592*sH, 216*sW, 183*sH, "img/radar_cover.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(0*sW, 598*sH, 197*sW, 125*sH, hudMaskFX, 0,0,0, tocolor(255,255,255,255)) dxDrawImage(90*sW, 655*sH, 21*sW, 21*sH, "img/radar_player.png", -p_Rot+c_Rot, 0, 0, tocolor(255, 255, 255, 220)) endaddEventHandler( "onClientRender", root, drawRadar)addEventHandler( "onClientResourceStop", resourceRoot, function() setPlayerHudComponentVisible ( "radar", true ) end)
Bu kodlar sadece tasarımı göstermek amaçlı, blip fonksiyonu görmüyorum ben burada.