justn Posted March 10, 2014 Posted March 10, 2014 (edited) Okay, can anyone help me with adding more locations for marker1 and getCar ? ^.^ Code: addEventHandler ( "onResourceStart", getRootElement(), function ( started ) getCar = createVehicle ( 411, 2062.91138, -1570.18054, 12.95983, 0, 0, 272 ) startBlip = createBlipAttachedTo ( getCar, 12 ) Marker1 = createMarker ( 2062.82886, -1568.31702, 12.43865, "cylinder", 2, 0, 0, 255, 85 ) setVehicleLocked ( getCar, true ) setElementFrozen ( getCar, true ) setVehicleDamageProof ( getCar, true ) exports["TopBarChat"]:sendClientMessage ("Car Jacker: Go get the car at the 'C' blip on the radar",root,0,0,255,true) end ) Edited March 12, 2014 by Guest
فاّرس Posted March 11, 2014 Posted March 11, 2014 You can do this : local Positions = { -- { -2423.77856,-606.54840,132.56250 }, { x , y , z }, { x , y , z }, { x , y , z } } for k,v in ipairs(Positions) do veh = createVehicle(422,v[1],v[2],v[3]) 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