Kevin8021 Posted January 21, 2019 Share Posted January 21, 2019 Ola,eu estava tentando fazer um maker para criar um carro eu queria saber como que faz um marker para destruir o carro local criar = createMarker(1604.15, -1612.056, 13.881, 'corona', 1.0, 0, 255, 255, 0 ) function vehicleSpawner(hitElement,matchingDimension) if getElementType(hitElement) == "player" then if getPedOccupiedVehicle(hitElement) == false then local 1604.15, -1612.056, 13.881 = getElementPosition(hitElement) local veh = createVehicle(599, 1604.15, -1612.056, 13.881) warpPedIntoVehicle(hitElement,veh) end end end addEventHandler("onMarkerHit",criar,vehicleSpawner) Link to comment
DNL291 Posted January 21, 2019 Share Posted January 21, 2019 (edited) local criar = createMarker(1604.15, -1612.056, 13.881, 'corona', 1.0, 0, 255, 255, 0 ) function vehicleSpawner(hitElement,matchingDimension) if getElementType(hitElement) == "player" then local vehicle = getPedOccupiedVehicle(hitElement) if vehicle == false then local veh = createVehicle(599, 1604.15, -1612.056, 13.881) warpPedIntoVehicle(hitElement,veh) elseif vehicle then destroyElement( vehicle ) end end end addEventHandler("onMarkerHit",criar,vehicleSpawner) Edited January 21, 2019 by DNL291 Link to comment
Jackdolirol021 Posted October 29, 2019 Share Posted October 29, 2019 On 21/01/2019 at 01:33, DNL291 said: Qual o meta dele? Link to comment
DNL291 Posted October 29, 2019 Share Posted October 29, 2019 https://wiki.multitheftauto.com/wiki/O_arquivo_Meta Link to comment
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