Nicky Posted January 24, 2019 Posted January 24, 2019 Como fasso para o maker destruí o veículo que passa por ele ? Preciso por oq?
miiguelz Posted January 24, 2019 Posted January 24, 2019 Você precisa verificar o marker, quando o player passar em cima, destruir o elemento.
Other Languages Moderators Lord Henry Posted January 24, 2019 Other Languages Moderators Posted January 24, 2019 Vc precisa de onMarkerHit, getElementType e de destroyElement. Ah, e obviamente o createMarker pra criar o marker.
Tommy. Posted January 25, 2019 Posted January 25, 2019 (edited) marker = createMarker(0, 0, 3, "cylinder", 1.5, 255, 0, 0, 175) function dVeh() if getElementType(source) == "vehicle" then destroyElement(source) end end addEventHandler("onMarkerHit", marker, dVeh) Edited January 25, 2019 by Tommy.
main Posted January 25, 2019 Posted January 25, 2019 16 minutes ago, Tommy. said: marker = createMarker(0, 0, 3, "cylinder", 1.5, 255, 0, 0, 175) function dVeh() if getElementType(source) == "vehicle" then destroyElement(source) end end addEventHandler("onMarkerHit", marker, dVeh) Você esqueceu os parâmetros do evento
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now