function detect()
local theVehicle = getPedOccupiedVehicle(localPlayer)
if theVehicle then
local getMatrix = getElementMatrix(theVehicle)
local getVelocity = Vector3(getElementVelocity(theVehicle))
local getVectorDirection = (getVelocity.x * getMatrix[2][1]) + (getVelocity.y * getMatrix[2][2]) + (getVelocity.z * getMatrix[2][3])
if (getVectorDirection == 0 or getVectorDirection > 0) then
return
end
if (getVectorDirection < 0) then
print(getVectorDirection)
outputChatBox("Ré")
end
end
end
setTimer(detect, 1000, 0)
Tenta isso.