Arsilex Posted August 13, 2012 Share Posted August 13, 2012 Por que me falla este script ((Sirve para reparar las ruedas de un coche pero no repara function FIX ( theVehicle ) local theVehicle = getPedOccupiedVehicle( source ) if ( theVehicle ) then setVehicleWheelStates ( theVehicle, frontLeft, 0 ) setVehicleWheelStates ( theVehicle, frontRight, 0 ) setVehicleWheelStates ( theVehicle, rearLeft, 0 ) setVehicleWheelStates ( theVehicle, rearRight, 0 ) end end Link to comment
Castillo Posted August 13, 2012 Share Posted August 13, 2012 Postea el script completo. Link to comment
Arsilex Posted August 13, 2012 Author Share Posted August 13, 2012 es todo no hay mas solo que se inicia con un boton. Link to comment
Castillo Posted August 13, 2012 Share Posted August 13, 2012 Y donde esta definido 'source'? Link to comment
BorderLine Posted August 13, 2012 Share Posted August 13, 2012 podria ser algo como esto? function FIX (driver) local theVehicle = getPedOccupiedVehicle( driver ) if ( theVehicle ) then setVehicleWheelStates ( theVehicle, frontLeft, 0 ) setVehicleWheelStates ( theVehicle, frontRight, 0 ) setVehicleWheelStates ( theVehicle, rearLeft, 0 ) setVehicleWheelStates ( theVehicle, rearRight, 0 ) end end Link to comment
Recommended Posts