fairyoggy Posted April 30, 2022 Share Posted April 30, 2022 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
fairyoggy Posted May 1, 2022 Author Share Posted May 1, 2022 5 minutes ago, Addlibs said: Have you tried attachElements? @Addlibs finding a car is not a problem, I just don’t understand how can I find the coordinates of the back of the car - the trunk? update: I found the solution with the help of the tips above, thanks. 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