multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.3k stars 412 forks source link

addVehicleSirens not working correctly #3472

Open Proxy-99 opened 1 week ago

Proxy-99 commented 1 week ago

Describe the bug

addVehicleSirens when readd the Sirens to same vehicle it will not show up

Steps to reproduce

addSirens removeSirens addSirens agian to same car bug happend https://youtu.be/1AVyNDfCKG8

Version

Multi Theft Auto v1.6-release-22518

Additional context

addEventHandler('onPlayerVehicleEnter', root, function(vehicle, seat)
  addVehicleSirens(vehicle, 7, 2, false,  false, false,  true)
      setVehicleSirens(vehicle, 1, -0.3, 0, 0.8, 0, 0, 255, 255, 255)
      setVehicleSirens(vehicle, 2, 0.3, 0, 0.8, 255, 0, 0, 255, 255)
       setVehicleSirensOn(vehicle, true)

end)

addEventHandler('onPlayerVehicleExit', root, function(vehicle, seat)
   removeVehicleSirens(vehicle)
end)

Relevant log output

Security Policy