Jump to content

vehicle on water


yMassai

Recommended Posts

function resurgeveiculo () 
    if isElementInWater(vehicletrafic[source]) then 
        setTimer(  
        setElementPosition ( vehicletrafic[source] , 1650.54077, -1626.85131, 24.89843 ) 
        , 10000, 1, source, true,1 ) 
    end 
end 
addEventHandler("onClientResourceStart", root, resurgeveiculo) 

Link to comment
setTimer(  
    function( ) 
        for _, aVehicle in next, getElementsByType 'vehicle' do 
            if isElementInWater( aVehicle ) then 
                setElementPosition( aVehicle, 1650.54077, -1626.85131, 24.89843 ) 
            end 
        end 
    end, 5000, 0  
) 

Link to comment
  • Moderators
function resurgeveiculo () 
    if isElementInWater(vehicletrafic[source]) then 
        setTimer( setElementPosition, 1000, 1, vehicletrafic[source], 1650.54077, -1626.85131, 24.89843 ) 
    end 
end 
setTimer( resurgeveiculo, 400, 0 ) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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