Matty Posted September 5, 2012 Share Posted September 5, 2012 Buenas, Necesito de su ayuda; que funciones y eventos tengo que usar para atachar los objetos al vehiculo como se muestra en esta imagen: A mi criterio creería que estas: getElementModel getElementPosition attachElements createObject "onResourceStart" Ustedes que dicen ?? Link to comment
Castillo Posted September 6, 2012 Share Posted September 6, 2012 Si, con esas deberia ser suficiente. Link to comment
Matty Posted September 6, 2012 Author Share Posted September 6, 2012 Cual es el error ? Code: function HeliTable(theVehicle, seat, jacked) local id = getElementModel (theVehicle) if id == 487 or id == 497 then table1 = createObject (1698, 0, 0, 0) table2 = createObject (1698, 0, 0, 0) ----------------------------------------------------- attachElements(table1, theVehicle, 1.5, 1, -1) attachElements(table2, theVehicle, -1.5, 1, -1) ----------------------------------------------------- outputChatBox ( "#00FF00Paneles Creados.", getRootElement(), 255, 255, 255, true ) else outputChatBox ( "#FF0000No funco!.", getRootElement(), 255, 255, 255, true ) end end addCommandHandler("paneles", HeliTable) Link to comment
Castillo Posted September 6, 2012 Share Posted September 6, 2012 function HeliTable ( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if ( theVehicle ) then local id = getElementModel ( theVehicle ) if ( id == 487 or id == 497 ) then table1 = createObject ( 1698, 0, 0, 0 ) table2 = createObject ( 1698, 0, 0, 0 ) ----------------------------------------------------- attachElements ( table1, theVehicle, 1.5, 1, -1 ) attachElements ( table2, theVehicle, -1.5, 1, -1 ) ----------------------------------------------------- outputChatBox ( "#00FF00Paneles Creados.", getRootElement(), 255, 255, 255, true ) else outputChatBox ( "#FF0000No funco!.", getRootElement(), 255, 255, 255, true ) end end end addCommandHandler ( "paneles", HeliTable ) Link to comment
Recommended Posts