Arsilex Posted August 13, 2012 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
Arsilex Posted August 13, 2012 Author Posted August 13, 2012 es todo no hay mas solo que se inicia con un boton.
BorderLine Posted August 13, 2012 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
Recommended Posts