Jump to content

No entiendo esta todo bien pero no repara el coche...


Arsilex

Recommended Posts

Posted
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) 

rsilex.png.0e6ad382b3fdc3cbe6390e3e847572c9.png
Posted

1: Quita 'thePlayer' de la funcion.

2: Tu elemento no es 'thePlayer', es 'source'.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...