Stevenn Posted April 19, 2012 Share Posted April 19, 2012 (edited) tahnks! Edited April 19, 2012 by Guest Link to comment
Stevenn Posted April 19, 2012 Author Share Posted April 19, 2012 Oh, what an idiot i am, debug message: bad arguement @ 'getElementPosition' Link to comment
Absence2 Posted April 19, 2012 Share Posted April 19, 2012 why do you need getElementPosition ? you need it to check the CURRENT location of the player? Link to comment
Stevenn Posted April 19, 2012 Author Share 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.. Link to comment
Absence2 Posted April 19, 2012 Share Posted April 19, 2012 ok, now what is getRandomLocation Link to comment
Stevenn Posted April 19, 2012 Author Share Posted April 19, 2012 (edited) solved, thanks. Edited April 19, 2012 by Guest Link to comment
Castillo Posted April 19, 2012 Share 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 ) 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