Matty Posted August 24, 2012 Share Posted August 24, 2012 Bueno... Necesito ayuda para hacer que este simple teleport funcione cuando estés en un vehículo. Code: function lasv () setElementPosition ( localPlayer, 1943, 1424, 73 ) end addCommandHandler ( "lv", lasv ) ------------------------------------------------- O pasenme las funciones y eventos necesarios aunque sea, no tengo ni idea de como empezarlo Desde ya Gracias . Link to comment
-ffs-Sniper Posted August 24, 2012 Share Posted August 24, 2012 function lasv () local vehicle = getPedOccupiedVehicle( localPlayer ) local element = ( vehicle and isElement( vehicle ) ) and vehicle or localPlayer setElementPosition ( element, 1943, 1424, 73 ) end addCommandHandler ( "lv", lasv ) ------------------------------------------------- Link to comment
Matty Posted August 24, 2012 Author Share Posted August 24, 2012 function lasv () local vehicle = getPedOccupiedVehicle( localPlayer ) local element = ( vehicle and isElement( vehicle ) ) and vehicle or localPlayer setElementPosition ( element, 1943, 1424, 73 ) end addCommandHandler ( "lv", lasv ) ------------------------------------------------- Gracias Men Link to comment
Recommended Posts