Arsilex Posted June 16, 2012 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)
Castillo Posted June 16, 2012 Posted June 16, 2012 1: Quita 'thePlayer' de la funcion. 2: Tu elemento no es 'thePlayer', es 'source'. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts