Jump to content

[help] Replace Blip


raynner

Recommended Posts

Posted

Hello everyone, I am creating a rpg server and I would like to use the blip Id 42 to be able to mark the places of work but I would like to replace it with a new image so I was searching the forum and found something that helped me more n me I leave satisfied

Client Sid

function ReplaceBlipInTakeJob()
	for key,hud in ipairs(huds) do
		texShader = dxCreateShader ( "shader/shader.fx" )
		createdHud = dxCreateTexture("img/hud/"..hud..".png")
		dxSetShaderValue(texShader,"gTexture",createdHud)
		engineApplyShaderToWorldTexture(texShader,tostring(hud))
	end
end
addEvent("StartJobId",true)
addEventHandler("StartJobId",root,ReplaceBlipInTakeJob)

shader.fx

texture gTexture; 
  
technique TexReplace 
{ 
    pass P0 
    { 
        Texture[0] = gTexture; 
    } 
} 

So my problem is that he even did replace the blip more only on the radar and not on the F11 map

Anyone could help me with this I have no experience in radar or shaders and .fx

don´t is necessari

Posted
11 hours ago, CodyL said:

The f11 map uses MTAs own Blip files if I'm not mistaken.

The question is how to access and replace them

don´t is necessari

Posted
2 minutes ago, ThatsMe said:

here are 2 things that i know you can do with f11 map:

1.Use maximap resource

2.script your own f11

I would be very happy to do this my own f11 but unfortunately as I said I am not very experienced in this area of radar, hud's, maps ..

But you gave me an idea..

don´t is necessari

Posted (edited)

^^ maximap resource is a custom F11 map, if you don't want to make your own one.

Edited by MrTasty

Previously known as MrTasty.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...