local Mover = 0
addEvent ( "setit", true ) --if the vehicle is a car
addEventHandler ( "setit", root, function ( theVeh )
Mover = 0
theVeh = getPedOccupiedVehicle(localPlayer)
outputChatBox("Working !") --tester
x, y, z = getVehicleComponentPosition( theVeh, "coveral") -- get the position of the component
Timer = setTimer ( function ( )
if ( Mover >= y ) then
if ( isTimer ( Timer ) ) then
killTimer ( Timer )
end
end
Mover = Mover + 0.001
end, 500, 0 )
setVehicleComponentPosition( theVeh, "coveral", x, y+Mover, z)
end )