Snow-Man Posted May 17, 2014 Share Posted May 17, 2014 i have made a vehicle spawner for all jobs but i have got a problem when i spawn vehicle, it automatic change my position to another Marker of same occupation this is part of table local Markers = { -- LS Markers {job = "Police Officer", mx=1550.3958740234, my=-1609.7741699219,mz=12.3828125,mr=41,mg=41, mb=247, rz=267.83172607422}, } after that i used getElementData to get Marker Occupation when i used getElementPosition it's change my position to another Marker mx, my, mz = getElementPosition(Marker) i used that to get Position of Marker that i entered it Link to comment
TAPL Posted May 17, 2014 Share Posted May 17, 2014 I think you should use source instead of Marker to identify the marker that you entered it. mx, my, mz = getElementPosition(source) Link to comment
Snow-Man Posted May 17, 2014 Author Share Posted May 17, 2014 I think you should use source instead of Marker to identify the marker that you entered it. mx, my, mz = getElementPosition(source) i got error Bad argument @getElementPosition Link to comment
TAPL Posted May 17, 2014 Share Posted May 17, 2014 Have you used it inside the event onMarkerHit or where did you used it? Link to comment
Snow-Man Posted May 17, 2014 Author Share Posted May 17, 2014 Have you used it inside the event onMarkerHit or where did you used it? done, 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