Announcement

Collapse
No announcement yet.

Disable Sound of EngineStart

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Disable Sound of EngineStart

    Hi Onset Comunity

    is there a way to disable/interupt the sound (of the engine) when a player enters a vehicle?

    Background:
    I'v wrote a script which disabled the engine imidently (after entering as a driver). The player have to start the engine manually.
    After entering the car, the car can't drive (as aspected because the stopped engine) but the sound of a starting engine is played.

    Maybe there is a better solution to stop an engine after entering (?)

    Code:
    AddEvent("OnPlayerEnterVehicle", function(player, vehicle, seat)
        Delay(500,function()
            if(seat == 1) then
                StopVehicleEngine(vehicle)
            end
        end)    
    end)



    Sry for my english, I'm from germany (greetings )

    #2
    Hey, since 1.1.0 the engine no longer starts automatically anyway. See VehicleEngine.lua in the default package. You can modify that so that the engine only starts when pressing a key for example.

    Comment


      #3
      Ah,
      thank you.

      Comment

      Working...
      X