Arsilex Posted June 16, 2012 Share Posted June 16, 2012 function Reparar( theVehicle ) local vehicle = getPedOccupiedVehicle( thePlayer ) if vehicle then fixVehicle( vehicle ) if isVehicleDamageProof( vehicle ) then setVehicleDamageProof( vehicle, false ) end end end addEvent( "onFix", true ) addEventHandler( "onFix", getRootElement(), Reparar) Link to comment
Castillo Posted June 16, 2012 Share Posted June 16, 2012 1: Quita 'thePlayer' de la funcion. 2: Tu elemento no es 'thePlayer', es 'source'. Link to comment
Recommended Posts