Jump to content

Marker remover veiculo


Recommended Posts

  • 2 years later...
On 21/01/2019 at 04:28, eugene said:

Por favor, alguém me ensina a criar um marker que o jogador passe com o carro em cima exclui o veiculo?

markerDestroy = createMarker(x,y,z) -- nomeia o marker

function DestruirVeiculoMarker(veiculo)
	if getElementType(veiculo) == "vehicle" then -- vericifa se o tipo de elemento que hitou e um veiculo
		destroyElement(veiculo) -- destroi o veiculo
	end
end
addEventHandler("onMarkerHit", markerDestroy, DestruirVeiculoMarker)

 

Link to comment

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...