Jump to content

Search the Community

Showing results for tags 'radar'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

  1. Hello everyone, I have been trying to make the radar/minimap on my server less lonely. The only things that appear there are the player icons. Nothing Else, unless you are close to something. There goes my issue, is there a way to show all of the available blips in the radar? I don't mind it being crowded. I just need for all of the blips to show on the radar even if we are not close to it. I don't know why the player icons are shown no matter what and the rest are not. So any help is appreciated. I [I AM A COMPLETE NOOB AND DO NOT KNOW HOW TO CODE AT ALL] Notes: I am running a small server, just for my friends and I, nothing special. MTA 1.5.3
  2. Hi, How I can fix that black edge on the radar map ? Is there any other way without making the map bigger ?
  3. Hello everyone. I programmed a script that create VIP houses and when it does, it creates a green house blip on the map where the house was created. When this house is bought out by someone, the blip is changed to red house blip. But I want to keep an Yellow House blip instead of the green house blip. The blips only appear on the map when I hold the key " i " (example of how it should appear) The script calls the blips with this: bindKey( 'i', 'both', function( key, keyState ) if keyState == 'down' then for k, v in ipairs ( getElementsByType( 'marker', getResourceRootElement() ) ) do if getElementData( v, 'HSV_INFO' ) and getElementData( v, 'HSV_INFO' )[7] then if getElementData( v, 'HSV_INFO' )[7] ~= '' then createBlipAttachedTo( v, 32 ); --Red house blip else createBlipAttachedTo( v, 31 ); --Green house blip --createBlipAttachedTo( v, 64 ); --Yellow house blip end; end; end; else for k, v in ipairs( getElementsByType( 'marker', getResourceRootElement() ) ) do if getElementData( v, 'HSV_INFO' ) then for k, elem in ipairs( getAttachedElements( v ) ) do if getElementType( elem ) == 'blip' then destroyElement( elem ); end; end; end; end; end; end ); I tried to create a new blip and call him, but the MTA doesn't recognize it and send a white square instead of my new blip. Any idea?
  4. Hello, I have a radar on my server when I'll turn it does not appear, someone help me? local screenW,screenH = guiGetScreenSize() local resW,resH = 1366,768 local sW,sH = (screenW/resW), (screenH/resH) local turn = true local alpha = 255 addEventHandler( "onClientResourceStart", resourceRoot, function() setPlayerHudComponentVisible ( "radar", false ) --# Create Textures 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( "[Arma II DayZ Radar]: Could not create textures. Please use debugscript 3" ) 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 = 13 x = ( x ) / 6000 y = ( y ) / -6000 dxSetShaderValue( hudMaskFX, "gUVPosition", x,y ) dxSetShaderValue( hudMaskFX, "gUVScale", 1/zoom, 1/zoom ) --# Get rotations 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 ) --# Alpha --dxDrawRectangle(23.5*sW, 676.5*sH, 130.5*sW, 9.2*sH, HP_Alpha) --dxDrawRectangle(156.6*sW, 676.5*sH, 65*sW, 9.2*sH, tocolor(0, 102, 255, 100)) --dxDrawRectangle(225*sW, 676.5*sH, 62.6*sW, 9.2*sH, tocolor(255, 255, 0, 100)) --# Bars --dxDrawRectangle(23.5*sW, 676.5*sH, 130.5*sW/maxHealth*playerHealth, 9.2*sH, HP_Colour) --dxDrawRectangle(156.6*sW, 676.5*sH, 65*sW/100*playerArmor, 9.2*sH, tocolor(0, 102, 255, 190)) --dxDrawRectangle(225*sW, 676.5*sH, 62.6*sW/1000*playerOxygen, 9.2*sH, tocolor(255, 255, 0, 190)) --# Minimap x,y,w,h 21 -- dxDrawImage(-6*sW, 500*sH, 300*sW, 250*sH, "img/radar_cover.png", 0, 0, 0, tocolor(255, 255, 255, 255)) 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(200, 200, 200, 200)) end --# Wanted local g_wl = getPlayerWantedLevel( localPlayer ) if ( g_wl > 0 ) then if ( turn == true ) then alpha = alpha + 5 if ( alpha > 180 ) then alpha = 180 turn = false end elseif ( turn == false ) then alpha = alpha - 5 if ( alpha < 0 ) then alpha = 0 turn = true end end --dxDrawRectangle(23*sW, 536*sH, 265*sW, 135*sH, tocolor(0, 102, 255, alpha)) else return end end addEventHandler( "onClientRender", root, drawRadar) addEventHandler( "onClientResourceStop", resourceRoot, function() setPlayerHudComponentVisible ( "radar", true ) end)
×
×
  • Create New...