Jump to content

attach coordinates to car


fairyoggy

Recommended Posts

how to attach coordinates to the back of the car?

I mean to make the marker appear on the side of the trunk?

function findcar(player, cmd)
		local carx, cary, carz = getElementPosition(getElementByID("car1"))	
		local marker = createMarker(carx,cary,carz, "cylinder", 1.5, 255, 0, 0, 255)
end
addCommandHandler("ff", findcar)

The car can be located in different places, but I need the marker to always be at the trunk, how can I do this?

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