MainSCR

Members
  • Content count

    5
  • Joined

  • Last visited

Community Reputation

1 Neutral

1 Follower

About MainSCR

  • Rank
    Vic

Details

  • Location
    Brazil
  1. Eu tinha visto essa função há um tempo atrás em algum resource disponível na internet, mas não estou lembrado qual resource/site que eu vi. Como andei estudando essa função, sei de có.
  2. 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.
  3. Talvez isso te ajude. https://forum.mtasa.com/topic/88782-wip-vehicle-brake-light-system/ ou tente usar isto: 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) then outputChatBox("Ré") end end end setTimer(detect, 1000, 0)