Stevenn Posted April 19, 2012 Author Posted April 19, 2012 Oh, what an idiot i am, debug message: bad arguement @ 'getElementPosition'
Absence2 Posted April 19, 2012 Posted April 19, 2012 why do you need getElementPosition ? you need it to check the CURRENT location of the player?
Stevenn Posted April 19, 2012 Author Posted April 19, 2012 why do you need getElementPosition ? you need it to check the CURRENT location of the player? no, but i tried without, any i had no succes either so..
Stevenn Posted April 19, 2012 Author Posted April 19, 2012 (edited) solved, thanks. Edited April 19, 2012 by Guest
Castillo Posted April 19, 2012 Posted April 19, 2012 addEvent ( "truckerMarker", true ) addEventHandler ( 'truckerMarker', root, function ( ) x, y, z = getRandomLocation ( ); truckMarker = createMarker ( x, y, z, 'cylinder', 2, 250, 250, 250 ); truckBlip = createBlipAttachedTo ( truckMarker, 53 ); local location = getZoneName ( x, y, z ) outputChatBox ( "Drive to: ".. location .. "!" ) end ) addEventHandler ( 'onClientMarkerHit', root, function ( hitElement ) if ( hitElement == localPlayer and source == truckerMarker ) then triggerServerEvent ( 'arrivedLocation', localPlayer ) end end )
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